grazies / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 1 forks source link

Crash in +[GAIDictionaryBuilder createTimingWithCategory:interval:name:label:] #798

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Name of affected component: Core Reporting API

Google Analytics iOS SDK 3.09

Issue summary:

Sometimes library crashes application when one uses  +[GAIDictionaryBuilder 
createTimingWithCategory:interval:name:label:].

Here is one stack trace with crash:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: 'Attempt to mutate immutable object with appendString:'
0   CoreFoundation                       0x00000001841a0f48 
__exceptionPreprocess + 124
1   libobjc.A.dylib                           0x0000000198d53f80 
objc_exception_throw + 52
2   CoreFoundation                       0x00000001841a0e90 +[NSException 
raise:format:] + 116
3   CoreFoundation                       0x0000000184149ce0 mutateError + 124
4   App                                           0x0000000100c14d5c 
+[GAIUsageTracker trackTarget:action:] + 240
5   App                                           0x0000000100c0e690 
+[GAIDictionaryBuilder createTimingWithCategory:interval:name:label:] + 124
6   App                                           0x0000000100174ef8 
+[Analytics trackDocumentSaveTime:] (Analytics.m:562)

Here is another one:
0   CoreFoundation                       0x0000000182c0ee90 
__CFStringChangeSizeMultiple + 2624
1   CoreFoundation                       0x0000000182c0ca3c 
__CFStringCheckAndReplace + 716
2   CoreFoundation                       0x0000000182b4de38 -[__NSCFString 
appendString:] + 48
3   App                                          0x0000000100c80d5c 
+[GAIUsageTracker trackTarget:action:] + 240
4   App                                          0x0000000100c7a690 
+[GAIDictionaryBuilder createTimingWithCategory:interval:name:label:] + 124
5   App                                          0x00000001001e0de8 +[Analytics 
trackDocumentOCRTime:] (Analytics.m:553)

Steps to reproduce issue:
Not possible to reproduce systematically

Expected output:
Track reporting without crashes

Actual results:
The app crashes

Original issue reported on code.google.com by constant...@doo.net on 24 Nov 2015 at 2:47