Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Crash "Collection <__NSDictionaryM: ...> was mutated while being enumerated" at IBGImageWithDrawingBlock #502

Open
fabiendem opened this issue Sep 23, 2024 · 0 comments

Comments

@fabiendem
Copy link

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
)

SDK Version

13.2.0

iOS Version

17.5

Device Model

iPhone 15

Notes

A similar crash was reported at #500 but with a different stack trace.
We've updated the SDK to 13.3.0 to observe is the crash is still present, but it's too early to say so.
Note that we're using the iOS SDK via the React Native library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant