Multiple crashes in IBGPLCrashReporter enableCrashReporterAndReturnError randomly
datoutwo opened this issue · 9 comments
Steps to Reproduce the Problem
Expected Behavior
Actual Behavior
Instabug integration code
Instabug.start(withToken: InstabugKey, invocationEvents: [.screenshot])
Instabug.enabled = isBugReportEnabled
BugReporting.promptOptionsEnabledReportTypes = [.bug, .feedback]
Replies.enabled = false
SDK Version
v10.9.3
iOS Version
up to 14.5
Device Model
Any
[Optional] Project That Reproduces the Issue
hread 2 name: Dispatch queue: NSManagedObjectContext 0x2800a07e0
Thread 2 Crashed:
0 libsystem_kernel.dylib 0x000000018e832d88 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018e74b1e8 pthread_kill$VARIANT$mp + 136
2 libsystem_c.dylib 0x000000018e69e934 abort + 100
3 Instabug 0x00000001046e3ed8 0x104400000 + 3030744
4 Instabug 0x00000001046c7b40 0x104400000 + 2915136
5 CoreFoundation 0x000000018ea3d95c __handleUncaughtException + 636
6 libobjc.A.dylib 0x000000018e75fe74 _objc_terminate+ 24180 () + 112
7 libc++abi.dylib 0x000000018e80614c std::__terminate(void (*)+ 74060 ()) + 16
8 libc++abi.dylib 0x000000018e8060e4 std::terminate+ 73956 () + 44
9 libdispatch.dylib 0x000000018e703538 _dispatch_client_callout + 36
10 libdispatch.dylib 0x000000018e6b60b0 _dispatch_lane_barrier_sync_invoke_and_complete + 56
11 CoreData 0x000000019348b8ac _perform + 196
12 CoreData 0x000000019336442c -[NSManagedObjectContext+ 58412 (_NestedContextSupport) executeRequest:withContext:error:] + 156
13 CoreData 0x000000019335f470 -[NSManagedObjectContext executeRequest:error:] + 644
14 Instabug 0x000000010450bf44 0x104400000 + 1097540
15 Instabug 0x000000010450be70 0x104400000 + 1097328
16 Instabug 0x0000000104525c84 0x104400000 + 1203332
17 Instabug 0x0000000104524a54 0x104400000 + 1198676
18 Instabug 0x000000010450d3bc 0x104400000 + 1102780
19 CoreData 0x000000019348e754 developerSubmittedBlockToNSManagedObjectContextPerform + 156
20 libdispatch.dylib 0x000000018e703524 _dispatch_client_callout + 16
21 libdispatch.dylib 0x000000018e6af8a4 _dispatch_lane_serial_drain$VARIANT$mp + 608
22 libdispatch.dylib 0x000000018e6b0294 _dispatch_lane_invoke$VARIANT$mp + 416
23 libdispatch.dylib 0x000000018e6b978c _dispatch_workloop_worker_thread + 588
24 libsystem_pthread.dylib 0x000000018e754b74 _pthread_wqthread + 272
25 libsystem_pthread.dylib 0x000000018e757740 start_wqthread + 8
Thread 8 name: Dispatch queue: NSManagedObjectContext 0x28018c9a0
Thread 8 Crashed:
0 libsystem_kernel.dylib 0x000000018e832d88 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018e74b1e8 pthread_kill$VARIANT$mp + 136
2 libsystem_c.dylib 0x000000018e69e934 abort + 100
3 Instabug 0x0000000109e1286c -[IBGPLCrashReporter enableCrashReporterAndReturnError:].cold.1 + 0
4 Instabug 0x0000000109e11054 uncaught_exception_handler + 44
5 CoreFoundation 0x000000018ea3d95c __handleUncaughtException + 636
6 libobjc.A.dylib 0x000000018e75fe74 _objc_terminate+ 24180 () + 112
7 libc++abi.dylib 0x000000018e80614c std::__terminate(void (*)+ 74060 ()) + 16
8 libc++abi.dylib 0x000000018e8060e4 std::terminate+ 73956 () + 44
9 libdispatch.dylib 0x000000018e703538 _dispatch_client_callout + 36
10 libdispatch.dylib 0x000000018e6b60b0 _dispatch_lane_barrier_sync_invoke_and_complete + 56
11 CoreData 0x000000019348b8ac _perform + 196
12 CoreData 0x000000019336442c -[NSManagedObjectContext+ 58412 (_NestedContextSupport) executeRequest:withContext:error:] + 156
13 CoreData 0x000000019335f470 -[NSManagedObjectContext executeRequest:error:] + 644
14 Instabug 0x0000000109c549c4 -[IBGBatchDelete executeBatchRequestInContext:error:] + 188
15 Instabug 0x0000000109c548f0 -[IBGBatchDelete executeInContext:error:] + 112
16 Instabug 0x0000000109c6e730 -[IBGVisualUserStepsLogger batchDelete:context:error:] + 136
17 Instabug 0x0000000109c6d500 __40-[IBGVisualUserStepsLogger purgeAllLogs]_block_invoke + 228
18 Instabug 0x0000000109c55e44 __44-[IBGDALService writeASync:completionBlock:]_block_invoke_2 + 60
19 CoreData 0x000000019348e754 developerSubmittedBlockToNSManagedObjectContextPerform + 156
20 libdispatch.dylib 0x000000018e703524 _dispatch_client_callout + 16
21 libdispatch.dylib 0x000000018e6af8a4 _dispatch_lane_serial_drain$VARIANT$mp + 608
22 libdispatch.dylib 0x000000018e6b0294 _dispatch_lane_invoke$VARIANT$mp + 416
23 libdispatch.dylib 0x000000018e6b978c _dispatch_workloop_worker_thread + 588
24 libsystem_pthread.dylib 0x000000018e754b74 _pthread_wqthread + 272
25 libsystem_pthread.dylib 0x000000018e757740 start_wqthread + 8
@datoutwo Can you please add more details on when this crash is happening and how to reproduce?
@HassanElDesouky we add this in didFinishLauch then it crash randomly. it's hard to reproduce tbh
@datoutwo just to be clear... by add this do you mean the integration code. Right?
yes, as below
Instabug.start(withToken: InstabugKey, invocationEvents: [.screenshot])
Instabug.enabled = isBugReportEnabled
BugReporting.promptOptionsEnabledReportTypes = [.bug, .feedback]
Replies.enabled = false
@datoutwo are you using multiple crash reporters? If so, can you remove them?
Also we are releasing some fixes related to this in the next release. We will update you when we release it and see how it goes from there.
Yes we are using Sentry too, but might not remove it. Thanks for letting me know there will be a new release, would love to update it and try!
Since you're using Sentry too, it's worth noting that you'll most likely be getting incomplete and corrupted frames in your crash reports.
This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed due to inactivity.