Android Forms在执行本机代码时得到了一个SIGSEGV

Android Forms在执行本机代码时得到了一个SIGSEGV,android,xamarin.android,xamarin.forms,fatal-error,segmentation-fault,Android,Xamarin.android,Xamarin.forms,Fatal Error,Segmentation Fault,我的Android应用程序在启动时崩溃。这只会偶尔发生(每执行3次或4次)。 我正在使用安卓操作系统4.1.2在设备上执行应用程序,应用程序的最低API设置为15。 我见过很多类似的帖子,但都有不同的解决方案。有人能找出问题所在吗 09-02 17:16:08.158 I/dalvikvm(11108): JNI ERROR (app bug): accessed deleted global reference 0x1d600b72 09-02 17:16:08.158 E/dalvikvm(

我的Android应用程序在启动时崩溃。这只会偶尔发生(每执行3次或4次)。 我正在使用安卓操作系统4.1.2在设备上执行应用程序,应用程序的最低API设置为15。 我见过很多类似的帖子,但都有不同的解决方案。有人能找出问题所在吗

09-02 17:16:08.158 I/dalvikvm(11108): JNI ERROR (app bug): accessed deleted global reference 0x1d600b72
09-02 17:16:08.158 E/dalvikvm(11108): VM aborting
09-02 17:16:08.158 E/mono-rt (11108): Stacktrace:
09-02 17:16:08.158 E/mono-rt (11108): 
09-02 17:16:08.158 E/mono-rt (11108):   at <unknown> <0xffffffff>
09-02 17:16:08.158 E/mono-rt (11108):   at (wrapper managed-to-native) object.wrapper_native_0x40bbb311 (intptr,intptr,intptr,intptr,Android.Runtime.JValue*) <IL 0x00030, 0xffffffff>
09-02 17:16:08.158 E/mono-rt (11108):   at (wrapper delegate-invoke) <Module>.invoke_void_intptr_intptr_intptr_intptr_JValue* (intptr,intptr,intptr,intptr,Android.Runtime.JValue*) <IL 0x00070, 0xffffffff>
09-02 17:16:08.158 E/mono-rt (11108):   at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue*) [0x00060] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:1025
09-02 17:16:08.158 E/mono-rt (11108):   at Android.Runtime.JNIEnv.FinishCreateInstance (intptr,intptr,intptr,Android.Runtime.JValue*) [0x0000b] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:306
09-02 17:16:08.158 E/mono-rt (11108):   at Android.OS.Handler..ctor (Android.OS.Looper) [0x000c5] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.OS.Handler.cs:195
09-02 17:16:08.158 E/mono-rt (11108):   at Android.App.SyncContext.Post (System.Threading.SendOrPostCallback,object) [0x00014] in /Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:17
09-02 17:16:08.159 E/mono-rt (11108):   at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.PostAction (object) <IL 0x00018, 0x000a3>
09-02 17:16:08.159 E/mono-rt (11108):   at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&) <IL 0x00019, 0x00127>
09-02 17:16:08.159 E/mono-rt (11108):   at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run (System.Threading.Tasks.Task,bool) <IL 0x0003d, 0x0017b>
09-02 17:16:08.159 E/mono-rt (11108):   at System.Threading.Tasks.Task.FinishContinuations () <IL 0x00090, 0x005c3>
09-02 17:16:08.159 E/mono-rt (11108):   at System.Threading.Tasks.Task.FinishStageThree () <IL 0x00046, 0x0013b>
09-02 17:16:08.159 E/mono-rt (11108):   at System.Threading.Tasks.Task`1.TrySetResult (TResult) <IL 0x00059, 0x00213>
09-02 17:16:08.159 E/mono-rt (11108):   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult (TResult) <IL 0x00021, 0x00143>
09-02 17:16:08.159 E/mono-rt (11108):   at PCLStorage.FileSystemFolder/<CreateFileAsync>d__0.MoveNext () <IL 0x0023f, 0x00e1f>
09-02 17:16:08.159 E/mono-rt (11108):   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) <IL 0x00006, 0x000ff>
09-02 17:16:08.159 E/mono-rt (11108):   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <IL 0x00029, 0x00177>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <IL 0x00003, 0x00057>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () <IL 0x00049, 0x001c7>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.Tasks.Task.InnerInvoke () <IL 0x00013, 0x000b7>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.Tasks.Task.Execute () <IL 0x00017, 0x000f7>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.Tasks.Task.ExecutionContextCallback (object) <IL 0x00008, 0x00097>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) <IL 0x00029, 0x00177>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <IL 0x00003, 0x00057>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&) <IL 0x00063, 0x0032b>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.Tasks.Task.ExecuteEntry (bool) <IL 0x00075, 0x0027f>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <IL 0x00002, 0x00047>
09-02 17:16:08.160 E/mono-rt (11108):   at System.Threading.ThreadPool.<UnsafeQueueCustomWorkItem>m__0 (object) <IL 0x00006, 0x000ff>
09-02 17:16:08.160 E/mono-rt (11108):   at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x00062, 0xffffffff>
09-02 17:16:08.160 E/mono-rt (11108): 
09-02 17:16:08.160 E/mono-rt (11108): Attempting native Android stacktrace:
09-02 17:16:08.160 E/mono-rt (11108): 
09-02 17:16:08.176 E/mono-rt (11108):   at dvmAbort+75 [0x40bb5a38]
09-02 17:16:08.176 E/mono-rt (11108):   at IndirectRefTable::get(void*) const+332 [0x40b984bc]
09-02 17:16:08.176 E/mono-rt (11108):   at dvmDecodeIndirectRef(Thread*, _jobject*)+80 [0x40bb9c4d]
09-02 17:16:08.176 E/mono-rt (11108):   at dvmCallMethodA(Thread*, Method const*, Object*, bool, JValue*, jvalue const*)+132 [0x40bcfed5]
09-02 17:16:08.176 E/mono-rt (11108):   at ???+308051 [0x40bbb353]
09-02 17:16:08.176 E/mono-rt (11108):   at ???+39424 [0x58ebaa00]
09-02 17:16:08.176 E/mono-rt (11108): 
09-02 17:16:08.176 E/mono-rt (11108): =================================================================
09-02 17:16:08.176 E/mono-rt (11108): Got a SIGSEGV while executing native code. This usually indicates
09-02 17:16:08.176 E/mono-rt (11108): a fatal error in the mono runtime or one of the native libraries 
09-02 17:16:08.176 E/mono-rt (11108): used by your application.
09-02 17:16:08.176 E/mono-rt (11108): =================================================================
09-02 17:16:08.176 E/mono-rt (11108): 
09-02 17:16:08.176 F/libc    (11108): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 11145 (anPatrika.Droid)
09-02 17:16:08.158 I/dalvikvm(11108):JNI错误(应用程序错误):访问已删除的全局参考0x1d600b72
09-02 17:16:08.158 E/dalvikvm(11108):VM正在中止
09-02 17:16:08.158 E/mono rt(11108):堆栈跟踪:
09-02 17:16:08.158 E/mono rt(11108):
09-02 17:16:08.158 E/mono rt(11108):在
09-02 17:16:08.158 E/mono rt(11108):at(包装器管理为本机)object.wrapper\u native\u 0x40bbb311(intptr、intptr、intptr、intptr、Android.Runtime.JValue*)
09-02 17:16:158 E/mono rt(11108):at(包装器委托调用)。调用\u void\u intptr\u intptr\u intptr\u JValue*(intptr,intptr,intptr,Android.Runtime.JValue*)
09-02 17:16:08.158 E/mono rt(11108):在Android.Runtime.JNIEnv.CallNonvirtualVoidMethod(intptr,intptr,intptr,Android.Runtime.JValue*)[0x00060]in/Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/mono.Android/src/Runtime/JNIEnv.g.cs:1025
09-02 17:16:158 E/mono rt(11108):在Android.Runtime.JNIEnv.FinishCreateInstance(intptr,intptr,intptr,Android.Runtime.JValue*)[0x0000b]in/Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/mono.Android/src/Runtime/JNIEnv.cs:306
09-02 17:16:158 E/mono rt(11108):在/Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/mono.Android/platforms/Android-21/src/generated/Android.OS.Handler.cs:195中的Android.OS.Handler...ctor(Android.OS.Looper)[0x000c5]
09-02 17:16:158 E/mono rt(11108):位于/Users/builder/data/lanes/1879/5f55a9ef/source/monodroid/src/mono.Android/src/Android.App/SyncContext.cs:17中的Android.App.SyncContext.Post(System.Threading.SendOrPostCallback,object)[0x00014]
09-02 17:16:08.159 E/mono rt(11108):位于System.Threading.Tasks.Synchronization ContextAwaitTaskContinuation.PostAction(对象)
09-02 17:16:08.159 E/mono rt(11108):位于System.Threading.Tasks.AwaitTaskContinuation.RunCallback(System.Threading.ContextCallback,object,System.Threading.Tasks.Task&)
09-02 17:16:08.159 E/mono rt(11108):在System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run(System.Threading.Tasks.Task,bool)
09-02 17:16:08.159 E/mono rt(11108):在System.Threading.Tasks.Task.FinishContinuations()
09-02 17:16:08.159 E/mono rt(11108):位于System.Threading.Tasks.Task.FinishStageThree()
09-02 17:16:08.159 E/mono rt(11108):at系统线程任务任务任务'1.TrySetResult(TResult)
09-02 17:16:08.159 E/mono rt(11108):在System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult)中
09-02 17:16:08.159 E/mono rt(11108):在PCLStorage.FileSystemFolder/d_u0.MoveNext()
09-02 17:16:08.159 E/mono rt(11108):在System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext(对象)
09-02 17:16:08.159 E/mono rt(11108):位于System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
09-02 17:16:08.160 E/mono rt(11108):在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
09-02 17:16:08.160 E/mono rt(11108):在System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run()
09-02 17:16:08.160 E/mono rt(11108):位于System.Threading.Tasks.Task.InnerInvoke()
09-02 17:16:08.160 E/mono rt(11108):位于System.Threading.Tasks.Task.Execute()
09-02 17:16:08.160 E/mono rt(11108):位于System.Threading.Tasks.Task.ExecutionContextCallback(对象)
09-02 17:16:08.160 E/mono rt(11108):位于System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
09-02 17:16:08.160 E/mono rt(11108):在System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
09-02 17:16:08.160 E/mono rt(11108):位于System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task&)
09-02 17:16:08.160 E/mono rt(11108):在System.Threading.Tasks.Task.ExecuteEntry(bool)中
09-02 17:16:08.160 E/mono rt(11108):位于System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
09-02 17:16:08.160 E/mono rt(11108):在System.Threading.ThreadPool.m__0(对象)处
09-02 17:16:160 E/mono rt(11108):at(包装器运行时调用)。运行时调用\u无效\u此\u对象(对象,intptr,intptr,intptr)
09-02 17:16:08.160 E/mono rt(11108):
09-02 17:16:08.160 E/mono rt(11108):正在尝试本机Android stacktrace:
09-02 17:16:08.160 E/mono rt(11108):
09-02 17:16:08.176 E/mono rt(11108):在DVMAPort+75[0x40bb5a38]
09-02 17:16:08.176 E/mono rt(11108):在间接引用表中获取(void*)常量+332[0x40b984bc]
09-02 17:16:08.176 E/mono rt(11108):在DVMDecodeIndirecRef(线程*,_作业对象*)+80[0x40bb9c4d]
09-02 17:16:08.176 E/mono rt(11108):在dvmCallMethodA(线程*,方法常数*,对象*,布尔,JValue*,JValue常数*)+132[0x40bcfed5]
09-02 17:16:08.176 E/mono rt(11108):在???+308051[0x40bbb353]
09-02 17:16:08.176 E/mono rt(11108):在?+39424[0x58ebaa00]
09-02 17:16:08.176 E/mono rt(11108):
09-02 17:16:08.176 E/mono rt(11108):=================================================================
09-02 17:16:08.176 E/mono rt(11108):在执行本机代码时收到SIGSEGV。这通常表明
09-02 17:16:08.176 E/mono rt(11108):mono运行时或某个本机库中出现致命错误
09-02 17:16:08.176 E/mono rt(11108):由您的应用程序使用。
09-02 17:16:08.176 E/mono rt(11108):=================================================================
09-02 17:16:08.176 E/mono rt(11108):
09-02 17:16:08.176 F/libc(11108):0xdeadd00d(代码=1)处的致命信号11(SIGSEGV),线程11145(anPa