Created attachment 18571 [details]
Android monitor log
I use a JavaList<> as data for my RecyclerView. The app works normally, but from a recent update the app crash with this error:
System.ArgumentException: Handle must be valid.
Parameter name: instance
This happen when I use with the JavaList (method doesn't matter, can be Count, , etc).
In Android Monitor i get this additional information:
at Java.Interop.JniEnvironment+InstanceMethods.CallIntMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method) [0x0000d] in <a043032cf94a485190047a14918b9f60>:0
I attach the entire log I got from Android Monitor
Dude, it's a serious bug. I can confirm because now it happen in another app! Ask for detail, but fix it!
I try to downgrade Xamarin to the last version of Cycle 7. It works.
The problem it happens only with version 8.
@contatti: Xamarin.Android 7.0 ("Cycle 8") changed the default bridge from "old" to "tarjan". Please try using the "old" implementation:
If that fixes the issue, you found a GC bridge bug. (Yay?) If possible, please attach a test case so that our GC team can fix it.
I try your suggest and it works!
I will create a test case on next monday, however I can tell you I use the object JavaList<> as data inside a Android.Support.V4.App.Fragment
I try to create a test case, but I am unable to reproduce the bug.
Maybe we can try with a full app?
@contatti: If you can provide the full app and repro instructions, that would be fine.
Do we have an update on this?