iOS crash on IBGBatchDelete.m line 42
haozhutw opened this issue · 2 comments
haozhutw commented
SDK Version
https://github.com/Instabug/Instabug-React-Native#snapshot-ios/10.9.2-INSD-5983
React Native, iOS and Android Versions
React Native: 0.61.5
iOS: 11 and above
Android: 5.0 and above
Device Model
iPhone 11 Pro with iOS 14.7.1
Crash logs
IBGBatchDelete.m line 42
-[IBGBatchDelete executeBatchRequestInContext:error:]
Fatal Exception: NSInvalidArgumentException
*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x129708 __exceptionPreprocess
1 libobjc.A.dylib 0x287a8 objc_exception_throw
2 CoreFoundation 0x19b9c8 -[__NSCFString characterAtIndex:].cold.1
3 CoreFoundation 0x1a7a20 -[__NSPlaceholderDictionary initWithCapacity:].cold.1
4 CoreFoundation 0x164c0 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
5 CoreFoundation 0x8de0 +[NSDictionary dictionaryWithObjects:forKeys:count:]
6 Instabug 0x10c058 -[IBGBatchDelete executeBatchRequestInContext:error:] + 42 (IBGBatchDelete.m:42)
7 Instabug 0x10bf30 -[IBGBatchDelete executeInContext:error:] + 29 (IBGBatchDelete.m:29)
8 Instabug 0x125d44 -[IBGVisualUserStepsLogger batchDelete:context:error:] + 587 (IBGVisualUserStepsLogger.m:587)
9 Instabug 0x125f30 -[IBGVisualUserStepsLogger trimWithContext:isParent:sessionId:error:] + 612 (IBGVisualUserStepsLogger.m:612)
10 Instabug 0x125dd8 -[IBGVisualUserStepsLogger trimParentsWithContext:sessionId:error:] + 593 (IBGVisualUserStepsLogger.m:593)
11 Instabug 0x1250e0 -[IBGVisualUserStepsLogger purgeIfNeededWithContext:] + 486 (IBGVisualUserStepsLogger.m:486)
12 Instabug 0x121f20 __224-[IBGVisualUserStepsLogger addStepWithEventType:parentScreenIdentifier:screenshotIdentifeir:screenIdentifier:view:screenshot:reproStepsButtonIcon:reproStepsButtonName:date:oreintation:topViewName:isParent:completionHandler:]_block_invoke + 127 (IBGVisualUserStepsLogger.m:127)
13 Instabug 0x10d47c __44-[IBGDALService writeASync:completionBlock:]_block_invoke_2 + 140 (IBGDALService.m:140)
14 CoreData 0x13f754 developerSubmittedBlockToNSManagedObjectContextPerform
15 libdispatch.dylib 0x481c _dispatch_client_callout
16 libdispatch.dylib 0xc004 _dispatch_lane_serial_drain
17 libdispatch.dylib 0xcc00 _dispatch_lane_invoke
18 libdispatch.dylib 0x174bc _dispatch_workloop_worker_thread
19 libsystem_pthread.dylib 0x37a4 _pthread_wqthread
20 libsystem_pthread.dylib 0xa74c start_wqthread
AliAbdelfattah commented
@haozhutw a fix is included in the below snapshot, it'll be shipped in the next RN release as well.
npm install --save https://github.com/Instabug/Instabug-React-Native#snapshot-ios/10.10.1
AliAbdelfattah commented
Fix shipped in the latest RN release.