hakemhakemy / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
https://hakemhakemy-action.wix.com/action
1 stars 0 forks source link

GoogleAnalytics-iOS-SDK crashes on deep links #652

Closed GoogleCodeExporter closed 9 years ago

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

Name of related library and version: GoogleAnalytics-iOS-SDK

Issue summary:
If you open your iOS app with a deep link such as `myAppName://` Google 
analytics crashes every time.  This bug seems to have been introduced in 3.11, 
and is still in 3.12.  version 3.10 and lower are fine.

Steps to reproduce issue:
1.  Open your iOS app with deep link  `myAppName://` without any extra 
parameters
2.  GAIBatchingDispatcher crashes trying to perform a string method on an 
NSNull object

Expected output:
GAIBatchingDispatcher to not crash trying to perform a string method on an 
NSNull object

Actual results:
 GAIBatchingDispatcher crashes trying to perform a string method on an NSNull object

Notes:

Happens 100% of the time.  Floods of crash reports coming in since we updated 
Google Analytics SDK to above 3.10.

Crash dump:

-[NSNull isEqualToString:]: unrecognized selector sent to instance 0x19877de70
Thread : Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x00000001862bc2d8 __exceptionPreprocess + 132
1  libobjc.A.dylib                0x0000000197ae00e4 objc_exception_throw + 60
2  CoreFoundation                 0x00000001862c33a4 
__methodDescriptionForSelector
3  CoreFoundation                 0x00000001862c0154 ___forwarding___ + 928
4  CoreFoundation                 0x00000001861c2ccc _CF_forwarding_prep_0 + 92
5  myAppName                       0x00000001004680bc -[GAIBatchingDispatcher 
checkIAdCampaignAttributionWithHitParameters:]
6  myAppName                       0x0000000100467f3c -[GAIBatchingDispatcher 
queueDispatch:]
7  myAppName                       0x0000000100467bf8 -[GAIBatchingDispatcher 
queueModel:]
8  Foundation                     0x00000001871bdf9c __NSThreadPerformPerform + 
372
9  CoreFoundation                 0x0000000186274240 
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
10 CoreFoundation                 0x00000001862734e4 __CFRunLoopDoSources0 + 264
11 CoreFoundation                 0x0000000186271594 __CFRunLoopRun + 712
12 CoreFoundation                 0x000000018619d2d4 CFRunLoopRunSpecific + 396
13 Foundation                     0x00000001870d54c8 -[NSRunLoop(NSRunLoop) 
runMode:beforeDate:] + 316
14 Foundation                     0x000000018712f810 -[NSRunLoop(NSRunLoop) 
run] + 96
15 myAppName                       0x0000000100453dac +[GAI threadMain:]
16 Foundation                     0x00000001871bddb8 __NSThread__main__ + 1072
17 libsystem_pthread.dylib        0x0000000198313dc8 _pthread_body + 164
18 libsystem_pthread.dylib        0x0000000198313d24 _pthread_body

Original issue reported on code.google.com by james.va...@gmail.com on 29 May 2015 at 12:57

GoogleCodeExporter commented 9 years ago
Fixed in Release Version 3.13

Original comment by pfrise...@google.com on 23 Jul 2015 at 6:48