Bug 27454 - Crash with WebView
Summary: Crash with WebView
Status: RESOLVED DUPLICATE of bug 27455
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.20.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2015-02-26 07:53 UTC by Roman Cervenak
Modified: 2015-02-26 11:46 UTC (History)
1 user (show)

Tags:
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:
Status:
RESOLVED DUPLICATE of bug 27455

Description Roman Cervenak 2015-02-26 07:53:13 UTC
While using WebView with custom WebViewClient, I get sometimes following crash. I tested it maybe dwo dozen times, and it seems that bug is present only on some devices (Xiaomi MI3 - bug present half a time; Samsung Note3 and Sony Xperia seems to be OK). Xamarin 3.9.289. Visual studio 2013.

02-26 13:17:51.300 E/mono-rt (10170): [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
02-26 13:17:51.300 E/mono-rt (10170):   at Android.Runtime.Logger.get_LogGlobalRef () [0x00000] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/src/Runtime/Logger.cs:21 
02-26 13:17:51.300 E/mono-rt (10170):   at Android.Runtime.JNIEnv.NewGlobalRef (IntPtr jobject) [0x00016] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:515 
02-26 13:17:51.300 E/mono-rt (10170):   at Android.Runtime.JNIEnv.FindClass (System.String classname) [0x0003b] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:432 
02-26 13:17:51.300 E/mono-rt (10170):   at Android.Runtime.JNIEnv.FindClass (System.String className, System.IntPtr& cachedJniClassHandle) [0x00014] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:441 
02-26 13:17:51.300 E/mono-rt (10170):   at Android.Webkit.WebView.get_class_ref () [0x00000] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.Webkit.WebView.cs:342 
02-26 13:17:51.300 E/mono-rt (10170):   at Android.Webkit.WebView.SetWebViewClient (Android.Webkit.WebViewClient client) [0x00014] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.Webkit.WebView.cs:2997 
02-26 13:17:51.300 E/mono-rt (10170):   at SpeedcamApp.Activities.HtmlPromoFragment.OnResume () [0x0001a] in d:\Devel\speedcamsprototype\Application\Android\SpeedcamApp\AndroidComponents\Fragments\HtmlPromoFragment.cs:36 
02-26 13:17:51.300 E/mono-rt (10170):   at Android.App.Fragment.n_OnResume (IntPtr jnienv, IntPtr native__this) [0x00009] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/49a04b96/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.App.Fragment.cs:1347 
02-26 13:17:51.300 E/mono-rt (10170):   at (wrapper dynamic-method) object:50b9771e-6503-4915-95fe-0d674a9d8de0 (intptr,intptr)
Comment 1 Jonathan Pryor 2015-02-26 11:46:50 UTC
I'm going to go out on a limb and assume this is a duplicate/variation on Bug #27455, as both involve NullReferenceExceptions from accessing *static* members of value types (e.g. `bool`, an enum type), resulting in a scenario which makes no sense at all...

...until I see that a SIGSEGV is involved, at which point all bets of sanity are off:

https://bugzilla.xamarin.com/show_bug.cgi?id=27455#c4

*** This bug has been marked as a duplicate of bug 27455 ***