react-native-onesignal
react-native-onesignal copied to clipboard
Crash on iOS: RCTOneSignalEventEmitter getDeviceStateResolver
Description:
We have noticed a number of crashes on iOS originating from OneSignal code.
0 libobjc.A.dylib 0x00000001bd905c80 objc_retain + 16 (objc-runtime-new.h:1589)
1 CoreFoundation 0x00000001a8cdfeb8 -[__NSDictionaryM setObject:forKeyedSubscript:] + 380 (NSCollectionAux.h:40)
2 OneSignal 0x00000001018df354 0x10189c000 + 275284
3 Paired 0x0000000100ee1940 -[RCTOneSignalEventEmitter getDeviceStateResolver:rejecter:] + 96 (RCTOneSignalEventEmitter.m:194)
4 CoreFoundation 0x00000001a8e03724 __invoking___ + 148
5 CoreFoundation 0x00000001a8cd6d04 -[NSInvocation invoke] + 380 (NSForwarding.m:3448)
6 CoreFoundation 0x00000001a8cd7308 -[NSInvocation invokeWithTarget:] + 80 (NSForwarding.m:3549)
7 Paired 0x0000000100cae2dc -[RCTModuleMethod invokeWithBridge:module:arguments:] + 460 (RCTModuleMethod.mm:584)
8 Paired 0x0000000100cb070c facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext) + 540 (RCTNativeModule.mm:181)
9 Paired 0x0000000100cb0338 operator() + 56 (RCTNativeModule.mm:103)
10 Paired 0x0000000100cb0338 invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 100 (RCTNativeModule.mm:95)
11 libdispatch.dylib 0x00000001a89e9a84 _dispatch_call_block_and_release + 32 (init.c:1466)
12 libdispatch.dylib 0x00000001a89eb81c _dispatch_client_callout + 20 (object.m:559)
13 libdispatch.dylib 0x00000001a89f3004 _dispatch_lane_serial_drain + 620 (inline_internal.h:2557)
14 libdispatch.dylib 0x00000001a89f3c00 _dispatch_lane_invoke + 404 (queue.c:3862)
15 libdispatch.dylib 0x00000001a89fe4bc _dispatch_workloop_worker_thread + 764 (queue.c:6589)
16 libsystem_pthread.dylib 0x00000001f4b8a7a4 _pthread_wqthread + 276 (pthread.c:2437)
17 libsystem_pthread.dylib 0x00000001f4b9174c start_wqthread + 8
Environment react-native: ^0.64.2 react-native-onesignal: version "4.3.0" From the Podfile:
- OneSignal (3.6.1)
- OneSignalXCFramework (3.6.1)
Steps to Reproduce Issue: Haven't been able to reproduce it, only happens in the wild.
@diego-paired Thanks for reporting this issue with the stacktrace. We will look into it and get back to you in this thread.
Hi @diego-paired,
I apologize for not getting back to you earlier. Can you let us know if this is still a relevant issue for you? This looks like it may be a memory related error.
Closing due to no response. Please @ mention me if you are still experiencing issues!
we are still getting this crash, on "react-native-onesignal": "4.5.2"