Android Random System.ArgumentException:';jobject';不能是IntPtr.Zero
我们有随机Android Random System.ArgumentException:';jobject';不能是IntPtr.Zero,android,xamarin,mvvmcross,Android,Xamarin,Mvvmcross,我们有随机系统。ArgumentException和android上的Xamarin。它是完全随机的-它可以在任何时间、任何地点、任何平台上发生。我们在5.1、5.0、4.4.4上注册了它 它没有足够的痕迹,也没有扔东西的地方,我什么都抓不到。我认为这可能与async void有关,我们在项目中使用了MVVMCross,有许多async void Init和async void DoMvxCommand方法。但它们都被封闭在试捕块中 我非常需要任何关于如何修复或至少找到这次崩溃原因的建议。这是最
系统。ArgumentException
和android上的Xamarin。它是完全随机的-它可以在任何时间、任何地点、任何平台上发生。我们在5.1、5.0、4.4.4上注册了它
它没有足够的痕迹,也没有扔东西的地方,我什么都抓不到。我认为这可能与async void
有关,我们在项目中使用了MVVMCross,有许多async void Init
和async void DoMvxCommand
方法。但它们都被封闭在试捕块中
我非常需要任何关于如何修复或至少找到这次崩溃原因的建议。这是最新的崩溃日志
undefined INFO: ActivityManager : Displayed com.website.app/md599d9a15f782f9118e8e70c354562b227.SuccessPaymentView: +220ms
undefined WARN: ContextImpl : Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1629 com.android.server.InputMethodManagerService$6.run:2728 java.lang.Thread.run:818 <bottom of call stack> <bottom of call stack>
undefined WARN: ActivityManager : mDVFSHelper.release()
undefined INFO: Timeline : Timeline: Activity_windows_visible id: ActivityRecord{1aca0d50 u0 com.website.app/md599d9a15f782f9118e8e70c354562b227.SuccessPaymentView t5672} time:169720248
undefined INFO: MonoDroid : UNHANDLED EXCEPTION:
undefined INFO: MonoDroid : System.ArgumentException: 'jobject' must not be IntPtr.Zero.
undefined INFO: MonoDroid : Parameter name: jobject
undefined INFO: MonoDroid : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
undefined INFO: MonoDroid : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <0x0003f>
undefined INFO: MonoDroid : at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () <0x00027>
undefined INFO: MonoDroid : at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
undefined INFO: MonoDroid : at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
undefined INFO: MonoDroid : at (wrapper dynamic-method) object.81971695-c4eb-4dd7-9e27-0dec45822877 (intptr,intptr) <0x0003b>
undefined DEBUG: LockPatternUtilsCache : getCarrierLockPlusMode()
undefined DEBUG: LockPatternUtilsCache : value : false
undefined WARN: Xamarin.Insights : Warning: Unhandled exception: System.ArgumentException: 'jobject' must not be IntPtr.Zero.
undefined WARN: Xamarin.Insights : Parameter name: jobject
undefined WARN: Xamarin.Insights : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
undefined WARN: Xamarin.Insights : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <0x0003f>
undefined WARN: Xamarin.Insights : at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () <0x00027>
undefined WARN: Xamarin.Insights : at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
undefined WARN: Xamarin.Insights : at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
undefined WARN: Xamarin.Insights : at (wrapper dynamic-method) object.81971695-c4eb-4dd7-9e27-0dec45822877 (intptr,intptr) <0x0003b>
undefined WARN: art : JNI RegisterNativeMethods: attempt to register 0 native methods for md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable
undefined DEBUG: AndroidRuntime : Shutting down VM
undefined WARN: System.err : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
undefined WARN: System.err : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
undefined WARN: System.err : Caused by: java.lang.reflect.InvocationTargetException
undefined WARN: System.err : at java.lang.reflect.Method.invoke(Native Method)
undefined WARN: System.err : at java.lang.reflect.Method.invoke(Method.java:372)
undefined WARN: System.err : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
undefined WARN: System.err : ... 1 more
undefined WARN: System.err : Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.ArgumentException: 'jobject' must not be IntPtr.Zero.
undefined WARN: System.err : Parameter name: jobject
undefined WARN: System.err : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
undefined WARN: System.err : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <0x0003f>
undefined WARN: System.err : at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () <0x00027>
undefined WARN: System.err : at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
undefined WARN: System.err : at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
undefined WARN: System.err : at (wrapper dynamic-method) object.81971695-c4eb-4dd7-9e27-0dec45822877 (intptr,intptr) <0x0003b>
undefined WARN: System.err : at mono.java.lang.RunnableImplementor.n_run(Native Method)
undefined WARN: System.err : at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
undefined WARN: System.err : at android.os.Handler.handleCallback(Handler.java:739)
undefined WARN: System.err : at android.os.Handler.dispatchMessage(Handler.java:95)
undefined WARN: System.err : at android.os.Looper.loop(Looper.java:145)
undefined WARN: System.err : at android.app.ActivityThread.main(ActivityThread.java:5832)
undefined WARN: System.err : ... 4 more
undefined WARN: FlurryAgent : Error logged: uncaught
undefined WARN: FlurryAgent : Flurry session ended
undefined ERROR: AndroidRuntime : FATAL EXCEPTION: main
undefined ERROR: AndroidRuntime : Process: com.website.app, PID: 27622
undefined ERROR: AndroidRuntime : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
undefined ERROR: AndroidRuntime : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
undefined ERROR: AndroidRuntime : Caused by: java.lang.reflect.InvocationTargetException
undefined ERROR: AndroidRuntime : at java.lang.reflect.Method.invoke(Native Method)
undefined ERROR: AndroidRuntime : at java.lang.reflect.Method.invoke(Method.java:372)
undefined ERROR: AndroidRuntime : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
undefined ERROR: AndroidRuntime : ... 1 more
undefined ERROR: AndroidRuntime : Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.ArgumentException: 'jobject' must not be IntPtr.Zero.
undefined ERROR: AndroidRuntime : Parameter name: jobject
undefined ERROR: AndroidRuntime : at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
undefined ERROR: AndroidRuntime : at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <0x0003f>
undefined ERROR: AndroidRuntime : at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () <0x00027>
undefined ERROR: AndroidRuntime : at Java.Lang.Thread/RunnableImplementor.Run () <0x0003f>
undefined ERROR: AndroidRuntime : at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) <0x0003b>
undefined ERROR: AndroidRuntime : at (wrapper dynamic-method) object.81971695-c4eb-4dd7-9e27-0dec45822877 (intptr,intptr) <0x0003b>
undefined ERROR: AndroidRuntime : at mono.java.lang.RunnableImplementor.n_run(Native Method)
undefined ERROR: AndroidRuntime : at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
undefined ERROR: AndroidRuntime : at android.os.Handler.handleCallback(Handler.java:739)
undefined ERROR: AndroidRuntime : at android.os.Handler.dispatchMessage(Handler.java:95)
undefined ERROR: AndroidRuntime : at android.os.Looper.loop(Looper.java:145)
undefined ERROR: AndroidRuntime : at android.app.ActivityThread.main(ActivityThread.java:5832)
undefined ERROR: AndroidRuntime : ... 4 more
undefined WARN: ActivityManager : Force finishing activity com.website.app/md599d9a15f782f9118e8e70c354562b227.SuccessPaymentView
undefined DEBUG: PowerManagerService : [input device light] setInputDeviceLightOn is called : 1
undefined WARN: ActivityManager : Force finishing activity com.website.app/md599d9a15f782f9118e8e70c354562b227.PaymentFormView
undefined INFO: SQLiteSecureOpenHelper : getWritableDatabase(pwd)
undefined INFO: SQLiteSecureOpenHelper : getDatabaseLocked(b,b,pwd)...
undefined INFO: dumpstate : begin
undefined DEBUG: StatusBarManagerService : manageDisableList userId=0 what=0x0 pkg=WindowManager.LayoutParams
undefined INFO: SurfaceFlinger : id=3018 createSurf (49x49),1 flag=4, Application Error: com.website.app
undefined DEBUG: CrashAnrDetector : processName: com.website.app
undefined DEBUG: CrashAnrDetector : broadcastEvent : com.website.app data_app_crash
undefined INFO: SQLiteSecureOpenHelper : getWritableDatabase(pwd)
undefined INFO: SQLiteSecureOpenHelper : getDatabaseLocked(b,b,pwd)...
undefined WARN: ContextImpl : Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1643 com.android.server.analytics.data.collection.application.CrashAnrDetector.broadcastEvent:296 com.android.server.analytics.data.collection.application.CrashAnrDetector.processDropBoxEntry:254 com.android.server.analytics.data.collection.application.CrashAnrDetector.access$100:60 com.android.server.analytics.data.collection.application.CrashAnrDetector$1.onReceive:102
undefined INFO: WifiStateMachine : CMD_RSSI_POLL : calculateWifiScore in!
undefined INFO: WifiStateMachine : CMD_RSSI_POLL : calculateWifiScore out!
undefined INFO: WifiStateMachine : CMD_RSSI_POLL : out!
undefined ERROR: android.os.Debug : !@Dumpstate > sdumpstate -k -t -z -d -o /data/log/dumpstate_app_error
未定义信息:ActivityManager:Displayed com.website.app/md599d9a15f782f9118e8e70c354562b227.SuccessPaymentView:+220ms
未定义警告:ContextImpl:在没有合格用户的情况下调用系统进程中的方法:android.app.ContextImpl.sendBroadcast:1629 com.android.server.InputMethodManagerService$6.run:2728 java.lang.Thread.run:818
未定义的警告:ActivityManager:mDVFSHelper.release()
未定义信息:时间线:时间线:活动\u窗口\u可见id:ActivityRecord{1aca0d50 u0 com.website.app/md599d9a15f782f9118e8e70c354562b227.SuccessPaymentView t5672}时间:169720248
未定义信息:MonoDroid:未处理的异常:
未定义的信息:MonoDroid:System.ArgumentException:“jobject”不能为IntPtr.Zero。
未定义信息:MonoDroid:参数名称:jobject
未定义的信息:MonoDroid:at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
未定义信息:MonoDroid:at System.Runtime.CompilerServices.AsyncMethodBuilderCore.m__0(对象)
未定义的信息:MonoDroid:位于Android.App.SyncContext/c_uanonnstorey0.m_u0()
未定义信息:MonoDroid:at Java.Lang.Thread/RunnableImplementor.Run()
未定义信息:MonoDroid:at Java.Lang.IRunnableInvoker.n_运行(intptr,intptr)
未定义信息:MonoDroid:at(包装器动态方法)object.81971695-c4eb-4dd7-9e27-0dec45822877(intptr,intptr)
未定义的调试:LockPatternUtilsCache:getCarrierLockPlusMode()
未定义的调试:LockPatternUtilsCache:值:false
未定义的警告:Xamarin.Insights:警告:未处理的异常:System.ArgumentException:“jobject”不能为IntPtr.Zero。
未定义警告:Xamarin.Insights:参数名称:jobject
未定义的警告:Xamarin.Insights:at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
未定义的警告:Xamarin.Insights:at System.Runtime.CompilerServices.asynchmethodbuildercore.m_u0(对象)
未定义的警告:Xamarin.Insights:位于Android.App.SyncContext/c_uanonStorey0.m_u0()
未定义警告:Xamarin.Insights:at Java.Lang.Thread/RunnableImplementor.Run()
未定义的警告:Xamarin.Insights:at Java.Lang.IRunnableInvoker.n_运行(intptr,intptr)
未定义警告:Xamarin.Insights:at(包装器动态方法)object.81971695-c4eb-4dd7-9e27-0dec45822877(intptr,intptr)
未定义警告:art:JNI RegisterNativeMethods:尝试为md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable注册0个本机方法
未定义的调试:AndroidRuntime:关闭VM
未定义的警告:System.err:java.lang.RuntimeException:java.lang.reflect.InvocationTargetException
未定义的警告:System.err:at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
未定义的警告:System.err:由以下原因引起:java.lang.reflect.InvocationTargetException
未定义的警告:System.err:at java.lang.reflect.Method.invoke(本机方法)
未定义的WARN:System.err:at java.lang.reflect.Method.invoke(Method.java:372)
未定义的警告:System.err:at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
未定义的警告:System.err:。。。还有一个
未定义警告:System.err:由以下原因引起:md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable:System.ArgumentException:“jobject”不能为IntPtr.Zero。
未定义警告:System.err:参数名称:jobject
未定义的警告:System.err:at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
未定义的警告:System.err:at System.Runtime.CompilerServices.asynchmethodbuildercore.m__0(对象)
未定义的警告:System.err:位于Android.App.SyncContext/c__anostorey0.m__0()
未定义警告:System.err:at Java.Lang.Thread/RunnableImplementor.Run()
未定义警告:System.err:at Java.Lang.IRunnableInvoker.n_运行(intptr,intptr)
未定义警告:System.err:at(包装器动态方法)object.81971695-c4eb-4dd7-9e27-0dec45822877(intptr,intptr)
未定义警告:System.err:at mono.java.lang.RunnableImplementor.n_运行(本机方法)
未定义警告:System.err:at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
未定义的WARN:System.err:at android.os.handle.handleCallback(Handler.java:739)
未定义的WARN:System.err:at android.os.Handler.dispatchMessage(Handler.java:95)
未定义的WARN:System.err:at-android.os.Looper.loop(Looper.java:145)
未定义的警告:System.err:位于android.app.ActivityThread.main(ActivityThread.java:5832)
未定义的警告:System.err:。。。4更多
未定义警告:FlurryAgent:记录错误:未捕获
未定义警告:FlurryAgent:Flurry会话已结束
未定义的错误:AndroidRuntime:致命异常:main
未定义的错误:AndroidRuntime:Process:com.website.app,PID:27622
未定义的错误:AndroidRuntime:java.lang.RuntimeException:java.lang.reflect.InvocationTargetException
未定义的错误:AndroidRuntime:at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
未定义的错误:AndroidRuntime:由以下原因引起:java.lang.reflect.InvocationTargetException
未定义的错误:AndroidRuntime:at java.lang.reflect.Method.invoke(本机方法)
未定义的错误:AndroidRuntime:at java.lang.reflect.Method.invoke(Method.java:372)
未定义
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) => {
args.Handled = false;
};