Bug 32550 - ios 9 beta crash with google tag manager
Summary: ios 9 beta crash with google tag manager
Status: RESOLVED FIXED
Alias: None
Product: Components
Classification: Xamarin
Component: Component Store ()
Version: N/A
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Israel Soto [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-07-28 19:49 UTC by Mohit Singh Baweja
Modified: 2015-12-23 22:14 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
crash log (130.28 KB, text/rtf)
2015-07-28 19:49 UTC, Mohit Singh Baweja
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mohit Singh Baweja 2015-07-28 19:49:44 UTC
Created attachment 12256 [details]
crash log

Xamarin Forum post:
https://forums.xamarin.com/discussion/46877/ios-9-google-analytics-component-crash

Using:

Xamarin.iOS
Version: 8.10.3.2 (Business Edition)

Xamarin Studio
Version 5.9.4 (build 5)

When trying to initialise Google Tag Manager, the app crashes on iOS 9 beta - 4.
In particular, it fails on line:

TAGContainerOpener.OpenContainer(code, tagManager, TAGOpenType.PreferFresh, 2, this);)
Try / Catch exception is not caught, as this seems like a catastrophic failure. However, last piece of info from iOS logs show some info:

Jul 28 18:03:45 iemcinipm2 symptomsd[94] : __51-[FlowAnalyticsEngine _applicationStateMonitorInit]_block_invoke Can't convert appState from dictionary {
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "xy.z.abc";
SBApplicationStateKey = 0;
SBApplicationStateProcessIDKey = 246;
}
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-07-29 04:16:00 UTC
=> Components.

FWIW this looks like a bug in the native library itself, and not in our bindings (and should thus be reported to Google).
Comment 2 Mohit Singh Baweja 2015-07-29 20:56:34 UTC
Please see updated comment from a colleague of mine on the xamarin forum post. It does infact look like a xamarin bindings issue.
Comment 3 Israel Soto [MSFT] 2015-07-29 21:10:30 UTC
I will report this to Google.

Meanwhile, the workaround of this is using null or numbers with decimals (e.g
0.1, 2.1) in the timeout parameter. Using numbers without decimals (e.g 1, 2,
2.0, 4.0) will terminate the app.
Comment 4 David Humphreys 2015-12-23 22:14:44 UTC
This issue is fixed in version 3.10 and above