Skip to content

tvOS Crash on launch for NewRelicInternalUtils connectionType #563

@EricDisney

Description

@EricDisney

Description

We are seeing a crash for some users on the latest version of the SDK when launching the app on tvOS devices.

Steps to Reproduce

The only trace we have says the app launch is causing the problem

Expected Behavior

App to launch and initialize without crashing

Relevant Logs / Console output

Thread 6 name:
Thread 6 Crashed:
0 libobjc.A.dylib 0x000000018e2ed050 0x18e2ec000 + 4176
1 NewRelic 0x00000001030520e0 +[NewRelicInternalUtils connectionType] (NewRelicInternalUtils.m:199)
2 NewRelic 0x00000001030320f0 __44-[NewRelicAgentInternal initializeAnalytics]_block_invoke (NewRelicAgentInternal.m:528)
3 libdispatch.dylib 0x00000001a465f77c 0x1a465e000 + 6012
4 libdispatch.dylib 0x00000001a467719c 0x1a465e000 + 102812
5 libdispatch.dylib 0x00000001a4692454 0x1a465e000 + 214100
6 libdispatch.dylib 0x00000001a466fdc8 0x1a465e000 + 73160
7 libdispatch.dylib 0x00000001a46703e0 0x1a465e000 + 74720
8 libsystem_pthread.dylib 0x00000001af197988 0x1af197000 + 2440
9 libsystem_pthread.dylib 0x00000001af197828 0x1af197000 + 2088

Your Environment

tvOS 26.1

Additional context

start up flow:
func scene(
_ scene: UIScene,
willConnectTo session: UISceneSession,
options connectionOptions: UIScene.ConnectionOptions
) {
...
NewRelic.disableFeatures([.NRFeatureFlag_DistributedTracing,
.NRFeatureFlag_RequestErrorEvents,
.NRFeatureFlag_NSURLSessionInstrumentation,
.NRFeatureFlag_SwiftAsyncURLSessionSupport,
.NRFeatureFlag_NetworkRequestEvents])
NewRelic.start(withApplicationToken: )
NRLogger.setLogLevels(NRLogLevelError.rawValue)
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions