Android.Play.ExpansionLibrary
Android.Play.ExpansionLibrary copied to clipboard
Crash in Client Marshaller during download of expansion package

Hi Matt, its Ryan from Buzz Interactive. Thanks for the recent update, it has generally been running smoothly but we have noticed a particular crash which happens occasionally in the Client Marshaller. I have pasted a screenshot and here is the trace:
System.ArgumentException: 'jobject' must not be IntPtr.Zero. Parameter name: jobject at Android.Runtime.JNIEnv.CallObjectMethod (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:187 at Android.OS.Bundle.GetString (string) [0x00034] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.OS.Bundle.cs:818 at ExpansionDownloader.Client.ClientMarshaller/DownloaderServiceConnection.SendMessage (Android.OS.Message) [0x00030] in /Users/ryanpalmer/Documents/Clients/Git_Repos/D/Dogbite/Mutu Android/ExpansionDownloader/Client/ClientMarshaller.cs:225 at Android.OS.ActionHandlerCallback.HandleMessage (Android.OS.Message) [0x00000] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/src/Android.OS/Handler.cs:75 at Android.OS.Handler/ICallbackInvoker.n_HandleMessage_Landroid_os_Message_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.OS.Handler.cs:76 at at (wrapper dynamic-method) object.f77b0410-1841-4cd6-a6e9-ee511fde2dde (intptr,intptr,intptr) <IL 0x00017, 0x0004b>
@RyanBuzzInteractive, thanks for reporting this. I'll look into it ASAP.
I'm seeing this same crash as well, intermittently on multiple devices.
Error message is:
Unhandled Exception:
System.ArgumentException: 'jobject' must not be IntPtr.Zero. Parameter name: jobject
Stack trace:
0x21 in System.Diagnostics.Debugger.Mono_UnhandledException_internal C# 0x1 in System.Diagnostics.Debugger.Mono_UnhandledException C# 0x27 in object.fbf146da-1f01-4f8a-a6e0-3674630c47a4 C# 0x1F in Android.Runtime.JNIEnv.CallObjectMethod at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/38ac51a9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:187,5 C# 0x57 in Android.OS.Bundle.GetString at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/38ac51a9/source/monodroid/src/Mono.Android/platforms/android-17/src/generated/Android.OS.Bundle.cs:755,4 C# 0x2A in ExpansionDownloader.Client.ClientMarshaller.DownloaderServiceConnection.SendMessage at c:\Projects\Android.Play.ExpansionLibrary\ExpansionDownloader\Client\ClientMarshaller.cs:225,-1 C# 0x7 in Android.OS.ActionHandlerCallback.HandleMessage at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/38ac51a9/source/monodroid/src/Mono.Android/src/Android.OS/Handler.cs:75,4 C# 0x13 in Android.OS.Handler.ICallbackInvoker.n_HandleMessage_Landroid_os_Message_ at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.21-series/38ac51a9/source/monodroid/src/Mono.Android/platforms/android-17/src/generated/Android.OS.Handler.cs:76,5 C# 0x17 in object.fbf146da-1f01-4f8a-a6e0-3674630c47a4 C#
I thought this might have something to do with starting the downloader from a non-UI thread, but that doesn't seem to have been it.
Hi Matt, was there any progress on this? I'm still getting customers reporting crash-to-desktop whilst trying to download the expansion, some of them getting quite annoyed about it :/
Cheers, Ryan