Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

iOS SIGSEGV crash #215

Open
gailegurskytedbg opened this issue Dec 18, 2024 · 5 comments
Open

iOS SIGSEGV crash #215

gailegurskytedbg opened this issue Dec 18, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@gailegurskytedbg
Copy link

Description

Seeing crash logs from production users.
iOS agent is:

  • initialized on native side in app delegate:
  • Firebase Performance is disabled.

Initialization code:

@implementation AppDelegate

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {

    [self configureNewRelic];

    ....

  • (void)configureNewRelic {
    [NewRelic enableFeatures:
    NRFeatureFlag_CrashReporting |
    NRFeatureFlag_NetworkRequestEvents |
    NRFeatureFlag_RequestErrorEvents |
    NRFeatureFlag_OfflineStorage];

    [NewRelic disableFeatures:
    NRFeatureFlag_InteractionTracing |
    NRFeatureFlag_WebViewInstrumentation |
    NRFeatureFlag_NewEventSystem];

    NSString *token = [RNCConfig envFor:@"IOS_MONITORING_TOKEN"];
    [NewRelic startWithApplicationToken:token];
    [NewRelic setAttribute:@"appSessionId" value:[NewRelic currentSessionId]]; // needs to be set here, since it is undefined on RN side for unknown reasons
    }

Steps to Reproduce

Expected Behavior

Relevant Logs / Console output

0x22546c888
.()
0x19d442894
.()
0x19d5b053c
.()
0x19dea6b9c
.()
0x19d4e5f80
.()
0x1a83f5e6c
.()
NRMAReachability
NRMAReachability.m line 252 in NRMAReachability.currentReachabilityStatus()
0x102a062c4
.()
0x1029f3788
.()
0x19cf0a374
.()
0x19cf093c4
.()
0x19cf7ecb8
.()
0x1014c7e30
.()
0x1014c9f38
.()
0x1014c9b88
.()
0x1a4c40370
.()
0x1a4c420d0
.()
0x1a4c509e0
.()
0x1a4c505fc
.()
0x19cf40204
.()
0x19cf3d440
.()
0x19cf3c830
.()
0x1e8f1c1c4
.()
0x19faa2eb0
.()
0x19fb515b4
.()
0x1006ecc00
.()
0x1c292aec8
.()
0x1ed2fe410
.()
0x225470488
.()
0x1ed2fe410
.()
0x225470488
.()
0x1ed2fe49c
.()
0x19a239ec8
.()
0x102a2e604
.()
NewRelicAgentInternal
NewRelicAgentInternal.m line 520 in NewRelicAgentInternal.__44-[NewRelicAgentInternal initializeAnalytics]_block_invoke()
0x1a4c40370
.()
0x1a4c420d0
.()
0x1a4c53f60
.()
0x1a4c54590
.()
0x225473c40
.()
0x225470488
.()
0x1ed2feb7c
.()
0x1ca5013c8
.()
0x1ca5144bc
.()
0x1ca59552c
.()
0x1ca5a73dc
.()
0x1ca52dd58
.()
0x1ca525748
.()
0x100d67cf8
.()
0x100d67c2c
.()
0x100d640dc
.()
0x100ce6e88
.()
0x100cde3bc
.()
0x100d06790
.()
0x100d064bc
.()
0x100d05d20
.()
0x100d05c38
.()
0x100d5e3d4
.()
0x1a4c40370
.()
0x1a4c420d0
.()
0x1a4c496d8
.()
0x1a4c4a1e0
.()
0x1a4c55258
.()
0x1a4c54aa4
.()
0x225473c7c
.()
0x225470488
.()
0x1ed303fbc
.()
0x19bbb4534
.()
0x19bb4b548
.()
0x19c322400
.()
0x1a4c420d0
.()
0x1a4c43918
.()
0x19c322318
.()
0x1a9d9c9d0
.()
0x1a4c40370
.()
0x1a4c420d0
.()
0x1a4c496d8
.()
0x1a4c4a214
.()
0x1a4c55258
.()
0x1a4c54aa4
.()
0x225473c7c
.()
0x225470488
.()
0x1ed2fe688
.()
0x1ed301cb0
.()
0x1ed301afc
.()
0x19cf3da84
.()
0x19cf3d130
.()
0x19cf3c830
.()
0x19bbe4500
.()
0x19bbe4350
.()
0x19fab6358
.()
0x19bbf56c8
.()
0x22547537c
.()
0x225470494
.()
0x1ed2fe410
.()
0x225470488
.()
0x102a7bfe8
.()
0x102a5f584
.()
0x102a5f4d8
.()
0x102a53dcc
.()
0x102a23ca8
.()
0x102a24c40
.()
NRMAHarvester
NRMAHarvester.mm line 647 in NRMAHarvester.fireOnHarvestBefore()
NRMAHarvester
NRMAHarvester.mm line 614 in NRMAHarvester.execute()
NRMAHarvester
NRMAHarvester.mm line 544 in NRMAHarvester.transitionToConnected:()
NRMAHarvester
NRMAHarvester.mm line 625 in NRMAHarvester.execute()
NRMAHarvestController
NRMAHarvestController.m line 146 in NRMAHarvestController.__30+[NRMAHarvestController start]_block_invoke_2()
0x1a4c40370
.()
0x1a4c420d0
.()
0x1a4c496d8
.()
0x1a4c4a1e0
.()
0x1a4c55258
.()
0x1a4c54aa4
.()
0x225473c7c
.()
0x225470488
.()
0x1ed3041b0
.()
0x1ad511300
.()
0x102a2940c
FileBackedStore.hpp line 111 in .NewRelic::FileBackedStore<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>, NewRelic::BaseValue>::store(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>, std::__1::shared_ptrNewRelic::BaseValue)::'lambda'()::operator()() const()
0x102a7cafc
. NewRelic::WorkQueue::task_thread()()
0x102a7d458
. std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::)(), NewRelic::WorkQueue>>::__execute()()
0x102a7d5c8
. void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, void (std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::)(), NewRelic::WorkQueue>>::)(), std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::)(), NewRelic::WorkQueue*>>>>(void)()
0x22547537c
.()
0x225470494
.()
0x1ed303f90
.()
0x1ad50f584
.()
0x102a7ca78
. NewRelic::WorkQueue::task_thread()()
0x102a7d458
. std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::)(), NewRelic::WorkQueue>>::__execute()()
0x102a7d5c8
. void* std::__1::__thread_proxy[abi:v15006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, void (std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::)(), NewRelic::WorkQueue>>::)(), std::__1::__async_assoc_state<void, std::__1::__async_func<void (NewRelic::WorkQueue::)(), NewRelic::WorkQueue*>>>>(void)()
0x22547537c
.()

...

Your Environment

React Native Version
0.73.11
ReactNativeAgentVersion
1.4.6

@gailegurskytedbg gailegurskytedbg added the bug Something isn't working label Dec 18, 2024
@ndesai-newrelic
Copy link
Contributor

@gailegurskytedbg Can you please share package.json and the sample app if possible?

@gailegurskytedbg
Copy link
Author

@ndesai-newrelic For security and confidentiality reasons, could I share the package.json file with you via email instead of posting it on the public forum? Please let me know your email address.

Thank you for understanding!

@gailegurskytedbg
Copy link
Author

Screenshot 2025-01-10 at 09 07 47
This issue is still trending on our released app.
Can we try to solve this?

@yuriiKluban
Copy link

Screenshot 2025-01-10 at 09 07 47 This issue is still trending on our released app. Can we try to solve this?

We face the same issue with the latest relic agent in the released app. Please take a look.

@ndesai-newrelic
Copy link
Contributor

@gailegurskytedbg Could you enable the new event system for the first issue? Also, can you share the symbolicated crash log for the issue referenced in the screenshot?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants