jorgenpt/ObjectiveMetrics — Issue #11: Crash on DMTrackingQueue save
Author: loretoparisi
Created: 2011-10-20 13:58:00+00:00
State: open

I experienced a crash when the sdk was doing operations on the inner queue.

The crash dump is the following.

Logging error (|): *** Collection <__NSArrayM: 0x108651880> was mutated while being enumerated.
(
0 CoreFoundation 0x00007fff94b12286 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff948bbd5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff94b9c1dc __NSFastEnumerationMutationHandler + 172
3 ObjectiveMetrics 0x00000001001cf96b -[DMTrackingQueue save] + 395
4 ObjectiveMetrics 0x00000001001cf195 -[DMTrackingQueue add:] + 101
5 ObjectiveMetrics 0x00000001001ce754 -[DMTracker trackEventInCategory:withName:value:] + 132
6 musiXmatch 0x000000010000455e -[AppController trackEvent:] + 206
7 musiXmatch 0x0000000100004949 __-[AppController trackEventWithDictionary:::]_block_invoke_1 + 185
8 libdispatch.dylib 0x00007fff91e808ba _dispatch_call_block_and_release + 18
9 libdispatch.dylib 0x00007fff91e81799 _dispatch_worker_thread2 + 255
10 libsystem_c.dylib 0x00007fff933cb3da _pthread_wqthread + 316
11 libsystem_c.dylib 0x00007fff933ccb85 start_wqthread + 13