Instabug-React-Native
Instabug-React-Native copied to clipboard
Crash "Collection <__NSDictionaryM: ...> was mutated while being enumerated" at IBGImageWithDrawingBlock
Steps to Reproduce the Problem
- Start the application with Instabug enabled
Expected Behavior
No crash at start time
Actual Behavior
Crashes at start time with stacktrace:
NSGenericException
*** Collection <__NSDictionaryM: 0x6000002c5b40> was mutated while being enumerated.
[...]
3 Instabug 0x0000000105ba83f4 IBGImageWithDrawingBlock + 35276
4 Instabug 0x0000000105ba8308 IBGImageWithDrawingBlock + 35040
5 Instabug 0x00000001059fc510 cpu_usage + 81064
6 Instabug 0x0000000105a293dc cpu_usage + 265076
7 Instabug 0x0000000105b1c038 ibg_timeIntervalFromMinutesInterval + 77608
[...]
Full trace:
Exception was thrown:
NSGenericException
*** Collection <__NSDictionaryM: 0x6000002c5b40> was mutated while being enumerated.
(
0 CoreFoundation 0x00000001804ae0ec __exceptionPreprocess + 160
1 libobjc.A.dylib 0x0000000180087db4 objc_exception_throw + 56
2 CoreFoundation 0x00000001804ad530 +[__NSFastEnumerationEnumerator allocWithZone:] + 0
3 Instabug 0x0000000105ba83f4 IBGImageWithDrawingBlock + 35276
4 Instabug 0x0000000105ba8308 IBGImageWithDrawingBlock + 35040
5 Instabug 0x00000001059fc510 cpu_usage + 81064
6 Instabug 0x0000000105a293dc cpu_usage + 265076
7 Instabug 0x0000000105b1c038 ibg_timeIntervalFromMinutesInterval + 77608
8 DetoxSync 0x00000001047b3bb8 ____detox_sync_dispatch_wrapper_block_invoke + 44
9 libdispatch.dylib 0x0000000180170104 _dispatch_call_block_and_release + 24
10 libdispatch.dylib 0x0000000180171978 _dispatch_client_callout + 16
11 libdispatch.dylib 0x00000001801807c8 _dispatch_main_queue_drain + 1276
12 libdispatch.dylib 0x00000001801802bc _dispatch_main_queue_callback_4CF + 40
13 CoreFoundation 0x000000018040e960 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
14 CoreFoundation 0x0000000180409078 __CFRunLoopRun + 1936
15 CoreFoundation 0x00000001804084d4 CFRunLoopRunSpecific + 572
16 GraphicsServices 0x000000018ef2aae4 GSEventRunModal + 160
17 UIKitCore 0x00000001853d0a28 -[UIApplication _run] + 868
18 DetoxSync 0x00000001047ba034 __detox_sync_UIApplication_run + 376
19 UIKitCore 0x00000001853d46b0 UIApplicationMain + 124
20 PHX Nightly 0x00000001008bf90c main + 80
21 dyld 0x0000000103789544 start_sim + 20
22 ??? 0x0000000103946154 0x0 + 4355023188
23 ??? 0xcf12800000000000 0x0 + -3525614820789321728
)
Instabug integration code
SDK Version
13.3.0
React Native, iOS and Android Versions
RN 0.74.5
iOS Version
17.5
Device Model
iPhone 15, but not specific to this model
Notes
Issue is reported in the iOS repo as well, but we're using the RN version.