Bug 25623 - [Crash] Starting android app caused XS to crash
Summary: [Crash] Starting android app caused XS to crash
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 5.7
Hardware: Macintosh Mac OS
: High critical
Target Milestone: 5.7
Assignee: Bugzilla
Depends on:
Reported: 2014-12-27 01:42 UTC by Stephen Shaw
Modified: 2015-01-08 04:45 UTC (History)
4 users (show)

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

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:

Description Stephen Shaw 2014-12-27 01:42:36 UTC
I started trying to debug an android app and XS crashed.

Here is the log file -> https://gist.github.com/decriptor/1fcfc56cb3789cccef61
Comment 1 Abhishek 2014-12-29 05:20:57 UTC
I have tried to reproduce this issue but I am not getting this issue from my end on debugging android template application. We may have to see if a developer can figure out what's going on from the stack trace. If you have a chance, it might also be helpful to include some other pieces of information:

If you are still able to reproduce this issue then please add IDE log and AndroidTool log. You will get these log via Help-> Open Log Directory. 
Also add complete environment info via Xamarin Studio-> About Xamarin Studio-> Show Details. 

If you are facing this issue with any specific project then please add your project with bug.

Build Info:

=== Xamarin Studio ===

Version 5.7 (build 660)
Installation UUID: 93e693b0-b53d-40f4-b29c-b61ff5cbe892
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: (Trial Edition)
Hash: 2c57f4e
Build date: 2014-12-18 16:42:49-0500

=== Xamarin.Android ===

Version: (Trial Edition)
Android SDK: /Users/xamarin23/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin.Mac ===

Version: (Trial Edition)

=== Build Information ===

Release ID: 507000660
Git revision: 6a74f9bdb90d9415b597064d815c9be38b401fee
Build date: 2014-12-18 00:38:00-05
Xamarin addins: 57be0f5e1433cb58b70ea9b52e9dc77ad791be40

=== Operating System ===

Mac OS X 10.10.0
Darwin xamarin23s-Mac-mini.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Alan McGovern 2015-01-05 07:12:35 UTC
Fixed here: https://github.com/xamarin/md-addins/pull/307
Comment 3 Alan McGovern 2015-01-05 07:13:03 UTC
The PR will be merged later today after Boston wakes up
Comment 4 Abhishek 2015-01-07 12:41:42 UTC
I am trying to verify this issue but I am not sure about the steps.

Could you please provide a small test cases? So that I can verify this issue.

Comment 5 Stephen Shaw 2015-01-07 13:38:26 UTC
I haven't seen this again, but I wasn't able to reproduce it 100% of the time either. So... so far so good :)

I saw this when trying to launch the app in XAP. Since the fix was GC related I think this would be hard to reproduce... Maybe I was getting it because XS was already using a bunch of memory? Or my system was running a VM and there wasn't as much system memory?
Comment 6 Alan McGovern 2015-01-08 04:45:31 UTC
As stephen said, it's hard to repro. It's not worth spending time on this as it's a reasonably tricky race condition. I'll mark this as verified for now as the only person who could reasonably reliably repro the problem can't repro it anymore.