at-internet / atinternet-ios-objc-sdk

AT Internet mobile analytics solution for iOS
http://www.atinternet.com
Other
4 stars 6 forks source link

Rare Crash in ATStorage.m line 148 -[ATStorage insertHit:mhOlt:] #4

Open fabb opened 8 years ago

fabb commented 8 years ago

We observe a rare crash in 2.0.9: http://crashes.to/s/d3db1315e5e

Crashed: NSOperationQueue 0x16886110 :: NSOperation 0x1839af10 (QOS: LEGACY)
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000

CoreFoundation __CFBasicHashAddValue + 536
CoreData     _sharedIMPL_setvfk_core + 130
ATStorage.m line 148 -[ATStorage insertHit:mhOlt:]
ATSender.m line 220 __38-[ATSender sendWithCompletionHandler:]_block_invoke
evixar commented 8 years ago

Hi,

Does this happen randomly while trying to send hits ? Would you be able to send us a small project with the code that causes this crash ?

Regards

fabb commented 8 years ago

Sorry, no. It's so rare, we only observed it in production with a lot of users. If it's not easy to track down from the crash report and the source code, it's probably not worth spending too much time with it.

evixar commented 8 years ago

We will try to reproduce the bug and will let you know when we find the problem

Regards

fabb commented 8 years ago

Thanks. Here is another rare crash, no idea if these are related.

http://crashes.to/s/c1f5788aebc

Crashed: NSPersistentStoreCoordinator 0x13eac7e20
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000013ed0b58

libobjc.A.dylib objc_msgSend + 16
CoreData    -[NSManagedObjectContext save:] + 1164
ATStorage.m line 352 -[ATStorage delete:]
ATSender.m line 249 __38-[ATSender sendWithCompletionHandler:]_block_invoke
fabb commented 8 years ago

Here is another one:

http://crashes.to/s/7aec83fa5d2

Crashed: TrackerQueue :: NSOperation 0x154930750 (QOS: USER_INTERACTIVE)
0  CoreFoundation                 0x182c2fc90 __CFBasicHashDrain + 192
1  CoreData                       0x184a874e0 -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 2104
2  CoreData                       0x184a8612c -[NSManagedObjectContext save:] + 168
3 clientapp                   0x1002b7d04 -[ATStorage saveContext] (ATStorage.m:121)
4  clientapp                   0x1002b7f00 -[ATStorage insertHit:mhOlt:] (ATStorage.m:150)
5  clientapp                   0x1002b5320 -[ATSender sendWithCompletionHandler:] (ATSender.m:155)
6  clientapp                   0x10028eca8 -[ATBuilder main] (ATBuilder.m:393)
7  Foundation                     0x1834f6ed8 -[__NSOperationInternal _start:] + 
d-theo commented 8 years ago

Hi, It looks that those crashes append when using the CoreData API We worked on our CoreData implementation and believe 8ac4d43806ae28f3d980a4324ec0aaaba7e0d128 will solve your crash issue

Regards