Bug 29277 - Creating a New Thread Causes the App to Crash
Summary: Creating a New Thread Causes the App to Crash
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-04-21 13:55 UTC by Jimmy [MSFT]
Modified: 2018-04-05 22:21 UTC (History)
5 users (show)

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

Repro Project (178.93 KB, application/zip)
2015-04-21 13:55 UTC, Jimmy [MSFT]
Debugger Output (109.17 KB, text/plain)
2015-04-21 13:57 UTC, Jimmy [MSFT]

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 for Bug 29277 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Jimmy [MSFT] 2015-04-21 13:55:54 UTC
Created attachment 10844 [details]
Repro Project

*** Overview ***
If an app contains a WebView and a new thread is created, the app will crash when ran on a device on Android 5.1.

I tested the repro project on a Nexus 5 running 5.1 to reproduce the crash. A customer also reports that the issue occurs on a Nexus 7(2012) on 5.1. 

However, testing on a Nexus 7(2013) running 5.0 did not reproduce the crash so the issue might only be in Android 5.1. 

*** Steps to Reproduce ***
1. Run the repro project on a Android device running 5.1
2. Click the “TEST” button

*** Actual Results ***
The new thread will run and complete, but then the app will throw an unhandled exception and crash. I’ve attached the debug output to the report.

*** Expected Results ***
The new thread completes successfully and does not cause the app to crash.

*** Environment Info ***
=== Xamarin Studio ===

Version 5.8.3 (build 1)
Installation UUID: 94ce5106-6a72-4691-b34e-cd5857b1db66
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/jimmygarrido/Library/Developer/Xamarin/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.4   (API level 19)
		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 Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 6.3 (7569)
Build 6D570

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: f7736a4
Build date: 2015-04-09 04:22:08-0400

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 508030001
Git revision: 6e8e725e0d689351901c2c70453bfa4ea25e293b
Build date: 2015-04-06 20:31:47-04
Xamarin addins: 051cd5f8c1b5dbfc87eaef80a74aec03f34c60a8

=== Operating System ===

Mac OS X 10.10.3
Darwin Jimmys-MacBook-Pro.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 1 Jimmy [MSFT] 2015-04-21 13:57:35 UTC
Created attachment 10845 [details]
Debugger Output
Comment 2 Ludovic Henry 2018-04-05 22:21:21 UTC
Can you still reproduce with latest version of XA? I cannot reproduce with XA on a Pixel, so maybe the device is at fault. Thank you.