Bug 22324 - jobject must not be IntPtr.Zero, Parameter name: jobject, using Forms ListView grouping
Summary: jobject must not be IntPtr.Zero, Parameter name: jobject, using Forms ListVie...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-24 00:36 UTC by Joe
Modified: 2015-02-05 06:10 UTC (History)
6 users (show)

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


Attachments
Repro project (18.32 KB, application/octet-stream)
2014-08-24 00:36 UTC, Joe
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 Joe 2014-08-24 00:36:23 UTC
Created attachment 7784 [details]
Repro project

Using either latest Forms stable or beta release, as well as the latest beta Xamarin for Android, I receive this uncatchable Exception, then SIGABRT from libc, on line 52 in ObservableObject.cs.

Steps to repro:
1. Click the add button a few times to add enough rows to fill the screen.
2. Quickly toggle back and forth the Switches at random with multiple fingers, 4-5+ per second.
3. The Exception should occur within 10 seconds.

Tested on Nexus 7 2013, Nexus 7 2012, and OnePlus One all on Android 4.4 ART with same results.

This might be a forms issue, it was difficult to tell from the stacktrace.
Comment 1 Joe 2014-08-24 11:27:20 UTC
Adding GC.Collect(); just before returning the SwitchCell seems to help.
Comment 2 Mohit Kheterpal 2014-08-26 07:25:00 UTC
I have checked this issue and after following steps mentioned in bug description, I am getting same issue.

Debug Log : https://gist.github.com/Mohit-Kheterpal/2d962416a727760acb4e
IDE Logs : https://gist.github.com/Mohit-Kheterpal/fc54918cf2e9150269c0

XVS 3.5.51
Comment 3 Joe 2014-08-26 21:16:39 UTC
Just tried without ART, it took longer to crash, but it did after a minute or so.
Comment 4 Jonathan Pryor 2014-08-27 11:03:18 UTC
This is (probably) a Xamarin.Forms bug, as it's access the CompoundButton.Checked property on a disposed instance.
Comment 5 Seth Rosetter 2014-09-10 13:15:45 UTC
I have confirmed the crash and will investigate further.
Comment 6 Jason Smith [MSFT] 2015-02-05 06:10:06 UTC
This should be fixed in 1.3.3-pre1