newrelic / newrelic-ios-agent-spm

This repository hosts the Swift Package Manager deployment of the iOS agent
Apache License 2.0
15 stars 9 forks source link

App crash #4

Closed bamohammad closed 5 months ago

bamohammad commented 2 years ago

I got repots that app crashing when starting

Description

App crashes on initializing and git this report from firbase craslaytics Thread 0 libsystem_kernel.dylib 0x290cc psynch_cvwait + 8 1 libsystem_pthread.dylib 0x5434 _pthread_cond_wait + 1248 2 libc++.1.dylib 0x9efc std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 NewRelic 0x809a8 hidden#7222 + 100088 4 NewRelic 0x80f7c hidden#7244 + 101580 5 NewRelic 0x8111c hidden#7247 + 101996 6 libsystem_pthread.dylib 0x1bfc _pthread_start + 320 7 libsystem_pthread.dylib 0xa758 thread_start + 8

Steps to Reproduce

Expected Behavior

Relevant Logs / Console output

0 libsystem_kernel.dylib 0x290cc psynch_cvwait + 8 1 libsystem_pthread.dylib 0x5434 _pthread_cond_wait + 1248 2 libc++.1.dylib 0x9efc std::__1::condition_variable::wait(std::1::unique_lock&) + 28 3 NewRelic 0x809a8 hidden#7222 + 100088 4 NewRelic 0x80f7c hidden#7244 + 101580 5 NewRelic 0x8111c hidden#7247 + 101996 6 libsystem_pthread.dylib 0x1bfc _pthread_start + 320 7 libsystem_pthread.dylib 0xa758 thread_start + 8

Your Environment

IOS

Sim-newrelic commented 2 years ago

Couple suggestions here:

  1. Could you look at how you are starting up firebase and the New relic agent may need to swap the startup order for that?
  2. Second couple you disable firebase completely if the first step does not work
  3. If the issue still persists with firebase disabled could you send us sample code of your delegate files or where the activity is being started or initialized on startup after trying with only new relic agent enabled
Sim-newrelic commented 2 years ago

If the issue continues to persist inside of new relic one there is a question mark on the top right corner of the home dashboard that will allow this issue to be seen by our entire support staff.

Thank you!

cdillard-NewRelic commented 5 months ago

Please use the latest New Relic iOS agent 7.4.11 which contains a new feature flag, NRFeatureFlag_NewEventSystem. Enable this feature flag which should remove the ~Payload() crash.