Bug 26078 - jobject must not be IntPtr.Zero with PopModalAsync
Summary: jobject must not be IntPtr.Zero with PopModalAsync
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.1
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-15 14:06 UTC by John Miller [MSFT]
Modified: 2015-02-05 06:09 UTC (History)
4 users (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 FIXED

Description John Miller [MSFT] 2015-01-15 14:06:54 UTC
**Overview:**

   Exception when calling PopModalAsync

**Steps to Reproduce:**

   1. Run the attached project
   2. Press the Select Button
   3. Choose an item in the list, e.g. "English"
   4. Quickly press the "Load" button at the bottom to pop the modal
   5. Repeat steps 2-4 until it crashes. Usually 3 times. 

**Actual Results:**

>[MonoDroid] UNHANDLED EXCEPTION:
>[MonoDroid] System.ArgumentException: 'jobject' must not be IntPtr.Zero.
>[MonoDroid] Parameter name: jobject
>[MonoDroid] at Android.Runtime.JNIEnv.CallVoidMethod (intptr,intptr,Android.Runtime.JValue[]) [0x00010] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:500
>[MonoDroid] at Android.Widget.TextView.set_TextFormatted (Java.Lang.ICharSequence) [0x00034] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Widget.TextView.cs:2434
>[MonoDroid] at Android.Widget.TextView.set_Text (string) [0x00013] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.Widget.TextView.cs:2443
>[MonoDroid] at Xamarin.Forms.Platform.Android.LabelRenderer.UpdateText () <IL 0x0008d, 0x0029b>
>[MonoDroid] at Xamarin.Forms.Platform.Android.LabelRenderer.OnElementPropertyChanged (object,System.ComponentModel.PropertyChangedEventArgs) <IL 0x00055, 0x00193>
>[MonoDroid] at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs) <IL 0x00027, 0x00042>
>[MonoDroid] at Xamarin.Forms.BindableObject.OnPropertyChanged (string) <IL 0x00012, 0x00087>
>[MonoDroid] at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty,Xamarin.Forms.BindableObject/BindablePropertyContext,object,bool,Xamarin.Forms.BindableObject/SetValueFlags,bool) <IL 0x000e2, 0x00408>
>[MonoDroid] at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty,object,Xamarin.Forms.BindableObject/SetValueFlags,Xamarin.Forms.BindableObject/SetValuePrivateFlags) <IL 0x00316, 0x00b0b>
>[MonoDroid] at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty,object,Xamarin.Forms.BindableObject/SetValueFlags) <IL 0x00005, 0x00043>
>[MonoDroid] at Xamarin.Forms.BindingExpression.ApplyCore (object,Xamarin.Forms.BindableObject,Xamarin.Forms.BindableProperty,bool) <IL 0x001ad, 0x0099f>
>[MonoDroid] at Xamarin.Forms.BindingExpression.Apply (bool) <IL 0x00041, 0x000f3>
>[MonoDroid] at Xamarin.Forms.BindingExpression/BindingExpressionPart.<PropertyChanged>b__12 () <IL 0x00007, 0x0002f>
>[MonoDroid] at Java.Lang.Thread/RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36
>[MonoDroid] at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) [0x00009] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Java.Lang.IRunnable.cs:71
>[MonoDroid] at (wrapper dynamic-method) object.edde8fdf-531f-476b-8951-e59fbdc46bee (intptr,intptr) <IL 0x00011, 0x0001b>
>[libc] Fatal signal 6 (SIGABRT) at 0x00000742 (code=-6), thread 1858 (ectionpredictor)

**Expected Results:**

   No exception.

**Build Date & Platform:**

   XF 1.3.1
   XA 4.20
   Android 4.4 Nexus 5
Comment 2 Jason Smith [MSFT] 2015-02-05 06:09:18 UTC
This should be fixed in 1.3.3-pre1