Closed Dingo203 closed 5 years ago
Is there an exception message in debugger for this?
Sorry to tell that I can't reproduce this case when debugging this problem, it seems quite normal and there is no exception. I can only see this reported on Fabric, which occurrence probability is about one thousandth.
Which version of the library are you using?
version 0.14.0
Is this still happening with latest version of the library?
Hi, I met the similar problem. the call stack is following:
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: 0x00000000 at 0x0000000000000000 Crashed Thread: 51
// 崩溃线程 Thread 51 Crashed: 0 CoreData _fetchResultSetAllocateInitialize 1 CoreData _fetchResultSetAllocateInitialize 2 CoreData _newFetchedRowsForFetchPlan_MT 3 CoreData executeFetchRequest 4 CoreData -[NSSQLFetchRequestContext executeRequestCore:] 5 CoreData -[NSSQLStoreRequestContext executeRequestUsingConnection:] 6 CoreData ___52-[NSSQLDefaultConnectionManager handleStoreRequest:]_blockinvoke 7 CoreData 37-[NSSQLiteConnection performAndWait:]_block_invoke 8 libdispatch.dylib dispatch_client_callout 9 libdispatch.dylib dispatch_lane_barrier_sync_invoke_and_complete 10 CoreData -[NSSQLiteConnection performAndWait:] 11 CoreData -[NSSQLDefaultConnectionManager handleStoreRequest:] 12 CoreData -[NSSQLCoreDispatchManager routeStoreRequest:] 13 CoreData -[NSSQLCore dispatchRequest:withRetries:] 14 CoreData -[NSSQLCore executeRequest:withContext:error:] 15 CoreData _65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke.657 16 CoreData -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] 17 CoreData -[NSPersistentStoreCoordinator executeRequest:withContext:error:] 18 CoreData -[NSManagedObjectContext executeFetchRequest:error:] 19 HLLMQTTClient 60-[MQTTCoreDataPersistence allFlowsforClientId:incomingFlag:]_block_invoke MQTTCoreDataPersistence.m:321 20 CoreData _developerSubmittedBlockToNSManagedObjectContextPerform 21 libdispatch.dylib dispatch_client_callout 22 libdispatch.dylib dispatch_lane_barrier_sync_invoke_and_complete 23 CoreData -[NSManagedObjectContext performBlockAndWait:] 24 HLLMQTTClient -[MQTTCoreDataPersistence allFlowsforClientId:incomingFlag:] MQTTCoreDataPersistence.m:311 25 HLLMQTTClient -[MQTTSession checkTxFlows] MQTTSession.m:633 26 HLLMQTTClient 41-[MQTTSession decoder:didReceiveMessage:]_block_invoke MQTTSession.m:804 27 libdispatch.dylib dispatch_client_callout 28 libdispatch.dylib dispatch_continuation_pop$VARIANT$armv81 29 libdispatch.dylib dispatch_source_invoke$VARIANT$armv81 30 libdispatch.dylib __dispatch_lane_serial_drain$VARIANT$armv81 31 libdispatch.dylib dispatch_lane_invoke$VARIANT$armv81 32 libdispatch.dylib dispatch_workloop_worker_thread 33 libsystem_pthread.dylib __pthread_wqthread
hope to fix it
@jcavar sorry ,just notice that the issue was closed.my version is very new
I used latest version of MQTT-Client-Framework in my app and I found some occasional core data crash on Fabric. When the method [MQTTCoreDataPersistence allFlowsforClientId:incomingFlag:] was called may lead occasional core data crash at [NSManagedObjectContext executeFetchRequest:error:]. And I don't know what case would lead to this problem.