I am getting following crash just on Nexus 6(5.1 OS) device. I am unable to make out what is causing this kind of crash and how to approach it. Will appreciate any help.
Unity3d version : 4.6.5f1
NGUI version: 2.6.4
Crashlog from device:
05-12 11:22:02.401: E/chromium(7468): ### WebView Version 42.0.2311.138 (code 2311138)
05-12 11:22:02.401: E/chromium(7468): --------- beginning of crash
05-12 11:22:02.401: A/libc(7468): Fatal signal 11 (SIGSEGV), code -6, fault addr 0x1d2c in tid 7489 (main)
05-12 11:22:02.474: I/DEBUG(353): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-12 11:22:02.474: I/DEBUG(353): Build fingerprint: 'google/shamu/shamu:5.1/LMY47I/1767468:user/release-keys'
05-12 11:22:02.474: I/DEBUG(353): Revision: '33696'
05-12 11:22:02.474: I/DEBUG(353): ABI: 'arm'
05-12 11:22:02.474: I/DEBUG(353): pid: 7468, tid: 7489, name: main >>> com.xxx.xxxx <<<
05-12 11:22:02.474: I/DEBUG(353): signal 11 (SIGSEGV), code -6 (SI_TKILL), fault addr 0xc
05-12 11:22:02.506: I/DEBUG(353): r0 858fe2b0 r1 00000052 r2 00000052 r3 00000000
05-12 11:22:02.506: I/DEBUG(353): r4 858fe2b0 r5 00000052 r6 00000052 r7 aad91da0
05-12 11:22:02.506: I/DEBUG(353): r8 af3e9150 r9 af3e9138 sl 00000003 fp aefb5a00
05-12 11:22:02.506: I/DEBUG(353): ip 00000000 sp af3e90c0 lr aac2a577 pc aacbe97c cpsr 200b0030
05-12 11:22:02.507: I/DEBUG(353): backtrace:
05-12 11:22:02.507: I/DEBUG(353): #00 pc 0017797c /system/vendor/lib/egl/libGLESv2_adreno.so (EsxCmdBuf::GetSpace(unsigned int)+15)
05-12 11:22:02.507: I/DEBUG(353): #01 pc 000e3573 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxFramebufferObject::LoadStoreCmdBufGetSpace(EsxCmdBufType, unsigned int)+42)
05-12 11:22:02.507: I/DEBUG(353): #02 pc 00174ba5 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxBltLib::StoreBin(EsxFramebufferObject*, EsxRenderingLayout const*, unsigned int)+108)
05-12 11:22:02.507: I/DEBUG(353): #03 pc 00116881 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxContext::processAndSubmitRendering(EsxFlushReason)+3936)
05-12 11:22:02.507: I/DEBUG(353): #04 pc 00177435 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxCmdMgr::Flush(EsxFlushReason)+412)
05-12 11:22:02.508: I/DEBUG(353): #05 pc 0011693d /system/vendor/lib/egl/libGLESv2_adreno.so (EsxContext::SwapBuffers(EsxRect const*, unsigned int, EglResourceAccessInfo*)+140)
05-12 11:22:02.508: I/DEBUG(353): #06 pc 0011dd43 /system/vendor/lib/egl/libGLESv2_adreno.so (EglContext::SwapBuffers(EsxRect const*, unsigned int, EglResourceAccessInfo*)+54)
05-12 11:22:02.508: I/DEBUG(353): #07 pc 0011ae89 /system/vendor/lib/egl/libGLESv2_adreno.so (EglApi::SwapBuffers(void*, void*)+140)
05-12 11:22:02.508: I/DEBUG(353): #08 pc 00005dc5 /system/vendor/lib/egl/libEGL_adreno.so (eglSwapBuffers+28)
05-12 11:22:02.508: I/DEBUG(353): #09 pc 0001237f /system/lib/libEGL.so (eglSwapBuffers+290)
05-12 11:22:02.508: I/DEBUG(353): #10 pc 003cee58 /data/app/com.xxx.xxxx-1/lib/arm/libunity.so
05-12 11:22:02.509: I/DEBUG(353): #11 pc 003d4374 /data/app/com.xxx.xxxx-1/lib/arm/libunity.so
05-12 11:22:02.509: I/DEBUG(353): #12 pc 0039ef74 /data/app/com.xxx.xxxx-1/lib/arm/libunity.so
05-12 11:22:02.509: I/DEBUG(353): #13 pc 001fc76c /data/app/com.xxx.xxxx-1/lib/arm/libunity.so
05-12 11:22:02.509: I/DEBUG(353): #14 pc 002a0124 /data/app/com.xxx.xxxx-1/lib/arm/libunity.so
05-12 11:22:02.509: I/DEBUG(353): #15 pc 003d24e4 /data/app/com.xxx.xxxx-1/lib/arm/libunity.so
05-12 11:22:02.509: I/DEBUG(353): #16 pc 003de1b0 /data/app/com.xxx.xxxx-1/lib/arm/libunity.so
05-12 11:22:02.509: I/DEBUG(353): #17 pc 0067a5af /data/dalvik-cache/arm/data#app#com.xxx.xxxx-1#base.apk#classes.dex
05-12 11:22:03.064: I/AudioFlinger(356): BUFFER TIMEOUT: remove(4097) from active list on thread 0xb59c4000
You got fault addr 0xc, r3 00000000, is not exactly the same as my case.
In my case, it happens when there are no objects rendered on camera, and camera.targetTexture has been set to aRenderTexture, Destroy(aRenderTexture) will crash.
Fix Code 1 (not recommend but works):
Destroy(aRenderTexture, 1.0f)
Fix Code 2 (maybe a better way, attach the follow script on your crashed camera):
using UnityEngine;
[RequireComponent (typeof (Camera))]
public class CrashFix : MonoBehaviour {
void Awake () {
Camera _cam = gameObject.GetComponent<Camera>();
GameObject _invisibleObj = GameObject.CreatePrimitive(PrimitiveType.Quad);
_invisibleObj.name = "CrashFix";
_invisibleObj.layer = GetFirstLayerNumberFromMask(_cam.cullingMask);
_invisibleObj.transform.parent = gameObject.transform;
_invisibleObj.transform.localScale = new Vector3(0.001f, 0.001f, 0.001f);
_invisibleObj.transform.position =
_cam.transform.position + _cam.transform.forward * (_cam.nearClipPlane+_cam.farClipPlane)/2f;
Material _mat = new Material(Shader.Find("UI/Default"));
_mat.color = new Color32(0,0,0,0);
var mr = _invisibleObj.GetComponent<MeshRenderer>();
mr.sharedMaterial = _mat;
Destroy(_invisibleObj.GetComponent<Collider>());
}
private int GetFirstLayerNumberFromMask(int mask)
{
if (mask == 0) return 0;
int result = 0;
while(true){
if ((mask & 1) == 1) return result;
mask >>= 1;
++result;
}
}
}
Related
I made a Unity 2022 project that uses ECS 1.0 which works fine in the editor and on the Rift S, but when I build it for the Quest 2 it crashes. If I switch to Mono it works. I had the same issue with 0.51.1.
This is my error log:
(*** Edit Unfortunately I didn't have debug loging setup properly and so not all of the symbols came through in my logcat, notice all of the (BuildId: 95c44e0c0e9046bc) and (Native Method) further down... ***)
2022/10/03 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/10/03 Error CRASH Version '2022.2.0b9 (57355023f65f)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2022/10/03 Error CRASH Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/44041400838600000:user/release-keys'
2022/10/03 Error CRASH Revision: '0'
2022/10/03 Error CRASH ABI: 'arm64'
2022/10/03 Error CRASH Timestamp: 2022-10-03 22:23:31.119674847-0700
2022/10/03 Error CRASH pid: 32326, tid: 32349, name: UnityMain >>> com.davidhopetech.DOTS1Test <<<
2022/10/03 Error CRASH uid: 10088
2022/10/03 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
2022/10/03 Error CRASH x0 000000a250461a58 x1 0000007293b02d70 x2 0000007290896fc0 x3 000000000000000c
2022/10/03 Error CRASH x4 00000072e8778c11 x5 0000007313e45118 x6 214e494253544f44 x7 214e494253544f44
2022/10/03 Error CRASH x8 0000000000000001 x9 00000072901dc030 x10 00000072901dc038 x11 00000073594ad3c0
2022/10/03 Error CRASH x12 411461b76d1cd77c x13 00000000633bc352 x14 000c0a461bb43800 x15 0000ff486053b314
2022/10/03 Error CRASH x16 0000007304cd6c70 x17 00000073ee73fec0 x18 00000072c01d3f48 x19 0000007313e538c0
2022/10/03 Error CRASH x20 000000a2504619c0 x21 0000007304d2d420 x22 0000007304ed9000 x23 0000007294ca99d8
2022/10/03 Error CRASH x24 0000000000000001 x25 00000073138f4840 x26 0000007301c82926 x27 0000000000000000
2022/10/03 Error CRASH x28 0000000000000000 x29 0000007304d2db00
2022/10/03 Error CRASH lr 00000073043b01f8 sp 0000007301142010 pc 000000730345e494 pst 0000000060001000
2022/10/03 Error CRASH
2022/10/03 Error CRASH backtrace:
2022/10/03 Error CRASH #00 pc 0000000002316494 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #01 pc 00000000032681f4 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #02 pc 0000000003268184 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #03 pc 00000000035f7cd8 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #04 pc 0000000003605a64 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #05 pc 0000000003605754 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #06 pc 0000000003606900 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #07 pc 0000000003245444 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #08 pc 0000000003240848 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #09 pc 0000000003245444 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #10 pc 0000000003240848 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #11 pc 0000000003245444 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #12 pc 0000000001bbbde0 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #13 pc 0000000001bbbd04 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error CRASH #14 pc 0000000000779724 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+176) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error CRASH #15 pc 000000000078bb1c /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+156) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error CRASH #16 pc 00000000005f9efc /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+272) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error CRASH #17 pc 00000000005f9e88 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+156) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error CRASH #18 pc 00000000005fa180 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (PlayerLoop()+324) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error CRASH #19 pc 000000000083a550 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (UnityPlayerLoop()+812) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error CRASH #20 pc 0000000000858c48 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)+84) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error CRASH #21 pc 0000000000143950 /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #22 pc 000000000013a934 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #23 pc 0000000000149640 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #24 pc 00000000002eb688 /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #25 pc 00000000002e648c /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+900) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #26 pc 00000000005b1ac4 /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+588) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #27 pc 0000000000134f14 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #28 pc 00000000005b252c /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1156) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #29 pc 0000000000134f94 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #30 pc 00000000005b1174 /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1752) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #31 pc 0000000000135014 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #32 pc 00000000005af900 /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1456) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #33 pc 0000000000134e14 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #34 pc 00000000005b252c /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1156) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #35 pc 0000000000134f94 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #36 pc 00000000002ba334 /apex/com.android.runtime/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.15113868601603930265)+264) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #37 pc 00000000005a10b0 /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+964) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #38 pc 0000000000143a68 /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #39 pc 000000000013a934 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #40 pc 0000000000149640 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #41 pc 00000000004be7c4 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #42 pc 00000000004bf994 /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #43 pc 00000000004ffd14 /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1156) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error CRASH #44 pc 00000000000d5c44 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 74793b832f73c27f2be0922f70cc8e16)
2022/10/03 Error CRASH #45 pc 0000000000082fe4 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 74793b832f73c27f2be0922f70cc8e16)
2022/10/03 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.davidhopetech.DOTS1Test/files/tombstone_01
0001/01/01 00:00:00.000 -1 -1 Info --------- beginning of crash
2022/10/03 Error AndroidRuntime FATAL EXCEPTION: UnityMain
2022/10/03 Error AndroidRuntime Process: com.davidhopetech.DOTS1Test, PID: 32326
2022/10/03 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/10/03 Error AndroidRuntime Version '2022.2.0b9 (57355023f65f)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2022/10/03 Error AndroidRuntime Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/44041400838600000:user/release-keys'
2022/10/03 Error AndroidRuntime Revision: '0'
2022/10/03 Error AndroidRuntime ABI: 'arm64'
2022/10/03 Error AndroidRuntime Timestamp: 2022-10-03 22:23:31.119674847-0700
2022/10/03 Error AndroidRuntime pid: 32326, tid: 32349, name: UnityMain >>> com.davidhopetech.DOTS1Test <<<
2022/10/03 Error AndroidRuntime uid: 10088
2022/10/03 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
2022/10/03 Error AndroidRuntime x0 000000a250461a58 x1 0000007293b02d70 x2 0000007290896fc0 x3 000000000000000c
2022/10/03 Error AndroidRuntime x4 00000072e8778c11 x5 0000007313e45118 x6 214e494253544f44 x7 214e494253544f44
2022/10/03 Error AndroidRuntime x8 0000000000000001 x9 00000072901dc030 x10 00000072901dc038 x11 00000073594ad3c0
2022/10/03 Error AndroidRuntime x12 411461b76d1cd77c x13 00000000633bc352 x14 000c0a461bb43800 x15 0000ff486053b314
2022/10/03 Error AndroidRuntime x16 0000007304cd6c70 x17 00000073ee73fec0 x18 00000072c01d3f48 x19 0000007313e538c0
2022/10/03 Error AndroidRuntime x20 000000a2504619c0 x21 0000007304d2d420 x22 0000007304ed9000 x23 0000007294ca99d8
2022/10/03 Error AndroidRuntime x24 0000000000000001 x25 00000073138f4840 x26 0000007301c82926 x27 0000000000000000
2022/10/03 Error AndroidRuntime x28 0000000000000000 x29 0000007304d2db00
2022/10/03 Error AndroidRuntime lr 00000073043b01f8 sp 0000007301142010 pc 000000730345e494 pst 0000000060001000
2022/10/03 Error AndroidRuntime
2022/10/03 Error AndroidRuntime backtrace:
2022/10/03 Error AndroidRuntime #00 pc 0000000002316494 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #01 pc 00000000032681f4 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #02 pc 0000000003268184 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #03 pc 00000000035f7cd8 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #04 pc 0000000003605a64 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #05 pc 0000000003605754 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #06 pc 0000000003606900 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #07 pc 0000000003245444 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #08 pc 0000000003240848 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #09 pc 0000000003245444 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #10 pc 0000000003240848 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #11 pc 0000000003245444 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #12 pc 0000000001bbbde0 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #13 pc 0000000001bbbd04 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libil2cpp.so (BuildId: 95c44e0c0e9046bc)
2022/10/03 Error AndroidRuntime #14 pc 0000000000779724 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)+176) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error AndroidRuntime #15 pc 000000000078bb1c /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)+156) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error AndroidRuntime #16 pc 00000000005f9efc /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+272) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error AndroidRuntime #17 pc 00000000005f9e88 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+156) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error AndroidRuntime #18 pc 00000000005fa180 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (PlayerLoop()+324) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error AndroidRuntime #19 pc 000000000083a550 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (UnityPlayerLoop()+812) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error AndroidRuntime #20 pc 0000000000858c48 /data/app/com.davidhopetech.DOTS1Test-xjIu-uc-4ZC6XGEXL8xFIQ==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)+84) (BuildId: 3cb4cc3deefa59d5)
2022/10/03 Error AndroidRuntime #21 pc 0000000000143950 /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #22 pc 000000000013a934 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #23 pc 0000000000149640 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #24 pc 00000000002eb688 /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #25 pc 00000000002e648c /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+900) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #26 pc 00000000005b1ac4 /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+588) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #27 pc 0000000000134f14 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #28 pc 00000000005b252c /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1156) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #29 pc 0000000000134f94 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #30 pc 00000000005b1174 /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1752) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #31 pc 0000000000135014 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #32 pc 00000000005af900 /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1456) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #33 pc 0000000000134e14 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #34 pc 00000000005b252c /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1156) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #35 pc 0000000000134f94 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #36 pc 00000000002ba334 /apex/com.android.runtime/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.15113868601603930265)+264) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #37 pc 00000000005a10b0 /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+964) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #38 pc 0000000000143a68 /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #39 pc 000000000013a934 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #40 pc 0000000000149640 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #41 pc 00000000004be7c4 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #42 pc 00000000004bf994 /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #43 pc 00000000004ffd14 /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1156) (BuildId: 21503a17cc72c012bec3947a961f2d93)
2022/10/03 Error AndroidRuntime #44 pc 00000000000d5c44 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 74793b832f73c27f2be0922f70cc8e16)
2022/10/03 Error AndroidRuntime #45 pc 0000000000082fe4 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 74793b832f73c27f2be0922f70cc8e16)
2022/10/03 Error AndroidRuntime
2022/10/03 Error AndroidRuntime at libil2cpp.0x2316494(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x32681f4(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3268184(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x35f7cd8(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3605a64(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3605754(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3606900(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3245444(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3240848(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3245444(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3240848(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x3245444(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x1bbbde0(Native Method)
2022/10/03 Error AndroidRuntime at libil2cpp.0x1bbbd04(Native Method)
2022/10/03 Error AndroidRuntime at libunity.scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)(scripting_method_invoke:176)
2022/10/03 Error AndroidRuntime at libunity.ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)(Invoke:156)
2022/10/03 Error AndroidRuntime at libunity.ExecutePlayerLoop(NativePlayerLoopSystem*)(ExecutePlayerLoop:272)
2022/10/03 Error AndroidRuntime at libunity.ExecutePlayerLoop(NativePlayerLoopSystem*)(ExecutePlayerLoop:156)
2022/10/03 Error AndroidRuntime at libunity.PlayerLoop()(PlayerLoop:324)
2022/10/03 Error AndroidRuntime at libunity.UnityPlayerLoop()(UnityPlayerLoop:812)
2022/10/03 Error AndroidRuntime at libunity.nativeRender(_JNIEnv*, _jobject*)(nativeRender:84)
2022/10/03 Error AndroidRuntime at libart.art_quick_generic_jni_trampoline(art_quick_generic_jni_trampoline:144)
2022/10/03 Error AndroidRuntime at libart.art_quick_invoke_stub(art_quick_invoke_stub:548)
2022/10/03 Error AndroidRuntime at libart.art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)(Invoke:244)
2022/10/03 Error AndroidRuntime at libart.art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)(ArtInterpreterToCompiledCodeBridge:384)
2022/10/03 Error AndroidRuntime at libart.bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)(DoCall<false, false>:900)
2022/10/03 Error AndroidRuntime at libart.MterpInvokeDirect(MterpInvokeDirect:588)
2022/10/03 Error AndroidRuntime at libart.mterp_op_invoke_direct(mterp_op_invoke_direct:20)
2022/10/03 Error AndroidRuntime at libart.MterpInvokeStatic(MterpInvokeStatic:1156)
2022/10/03 Error AndroidRuntime at libart.mterp_op_invoke_static(mterp_op_invoke_static:20)
2022/10/03 Error AndroidRuntime at libart.MterpInvokeInterface(MterpInvokeInterface:1752)
2022/10/03 Error AndroidRuntime at libart.mterp_op_invoke_interface(mterp_op_invoke_interface:20)
2022/10/03 Debug ActivityLifecycleListener onActivityPaused
2022/10/03 Info OpenXR nativeOnActivityPaused
2022/10/03 Info Unity onPause
2022/10/03 Info Process Sending signal. PID: 32326 SIG: 9
I've been looking for a solution for about 4 days with little success.
Is it possible to build a Unity 2022 project with ECS 1.0 on the Quest 2 with scripting backend IL2CPP?
So, it turns out that there is a bug with IL2CPP builds that is causing the Quest 2 to crash with DOTS in Unity 2021.3.9+.
As far as I know right now you can not build a working build for the Quest 2 with IL2CPP and DOTS 1.0
Though this may be fixed on Unity 2022.0.0b11 and possibly regressed to older Unity versions.
So, hopefully in a few weeks this will be a non-issue...
HOWEVER,
You CAN build a working build for the Quest 2 with IL2CPP and DOTS 0.51.1 right now, but I only know of ONE version of Unity that will work for the build: UNITY 2021.3.8f1.
After upgrading to Flutter version 3.0, my project crashes on the first run. See the log below.
Please I need help.
Launching lib/main.dart on AOSP on IA Emulator in debug mode...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:41249/xUB1prU2wGQ=/ws
I/Choreographer( 6207): Skipped 81 frames! The application may be doing too much work on its main thread.
[GETX] Instance "GetMaterialController" has been created
[GETX] Instance "GetMaterialController" has been initialized
D/eglCodecCommon( 6207): setVertexArrayObject: set vao to 0 (0) 1 0
D/EGL_emulation( 6207): eglMakeCurrent: 0xdfc05840: ver 3 0 (tinfo 0xc70e43c0)
D/eglCodecCommon( 6207): setVertexArrayObject: set vao to 0 (0) 1 2
F/libc ( 6207): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 6245 (1.raster), pid 6207 (wetinyouget_app)
Build fingerprint: 'google/sdk_gphone_x86_arm/generic_x86_arm:9/PSR1.180720.122/6736742:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 6207, tid: 6245, name: 1.raster >>> com.example.wetinyouget_app <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
eax c82ff400 ebx ca35d508 ecx 00000000 edx c82e400c
edi 00000000 esi c82e4068
ebp c817fc08 esp c817fba0 eip c9d7d119
backtrace:
#00 pc 01830119 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#01 pc 018383b6 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#02 pc 018370bd /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#03 pc 01766b3b /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#04 pc 01764fc8 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#05 pc 017d73a9 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#06 pc 017d72d2 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#07 pc 017eab6c /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#08 pc 017eaa42 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#09 pc 01759062 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#10 pc 01758c7c /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#11 pc 0175948e /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#12 pc 017533cc /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#13 pc 015c74b5 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#14 pc 015c747b /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#15 pc 015c7436 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#16 pc 019e789d /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#17 pc 019e7bc9 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#18 pc 014ace7c /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#19 pc 018c1909 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#20 pc 018c1976 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#21 pc 018c193e /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#22 pc 018de9b8 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#23 pc 018dcfe7 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#24 pc 018ddd57 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#25 pc 018df15a /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#26 pc 014b1185 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#27 pc 018dd4fd /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#28 pc 018dd1c7 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#29 pc 018eeb7c /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#30 pc 014aab19 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#31 pc 014aec6d /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#32 pc 014aeb7e /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#33 pc 014b618a /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#34 pc 014b61b8 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#35 pc 00012a77 /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39)
#36 pc 00013896 /system/lib/libutils.so (android::Looper::pollInner(int)+998)
#37 pc 0001340b /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+43)
#38 pc 0000e220 /system/lib/libandroid.so (ALooper_pollOnce+96)
#39 pc 014b60cd /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#40 pc 014aeb2c /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#41 pc 014ae654 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#42 pc 014b3e22 /data/app/com.example.wetinyouget_app-e_DWA-LGkZ1rYX5KIkh6xA==/lib/x86/libflutter.so (offset 0x147e000)
#43 pc 0008f065 /system/lib/libc.so (__pthread_start(void*)+53)
#44 pc 0002485b /system/lib/libc.so (__start_thread+75)
Lost connection to device.
Exited (sigterm)
If you are using Android Studio, then go to file --> Invalidate Cache & Restart.
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
I am trying to run a python script from flutter using the starflut package. I followed this tutorial https://smazee.com/blog/how-to-run-the-python-code-in-the-flutter-app online.
When I run the this app on the android emulator, the app just starts and stops working almost immediately. I added the files, edited the pubspec.yaml file exactly like in the tutorial.
Here is the stacktrace.
Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
Note: /home/mohammed/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/starflut-1.0.0/android/src/main/java/com/srplab/starflut/StarflutPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
Debug service listening on ws://127.0.0.1:44167/d9KBdipLkhE=/ws
Syncing files to device sdk gphone x86 arm...
I/skeletonproc_module,32084( 9168): create service group[0], community 32bit for android_x86, version[3.7.6.260] #www.srplab.com
I/skeletonproc_module,32087( 9168): "SetRegisterCode" function can be used to change it to professional version dynamically
I/skeletonproc_module,32132( 9168): lua engine[Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio]
I/skeletonproc_module,1592( 9168): create service success[test]
I/flutter ( 9168): docPath = /data/data/com.example.testingstarflut/files
I/flutter ( 9168): resPath = /data/data/com.example.testingstarflut/files
I/flutter ( 9168): -1 1 load library [/data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libstar_python36.so] success.... 6
I/skeletonproc_module,48755( 9168): load library [/data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libstar_python36.so] success....
D/starcore( 9168): Begin call _PyCodecRegistry_Init
D/starcore( 9168): import encodings failed....
D/starcore( 9168): ZipImportError("can't decompress data; zlib not available",)
D/starcore( 9168): /data/data/com.example.testingstarflut/files:/data/data/com.example.testingstarflut/files/python3.6.zip:/data/data/com.example.testingstarflut/files/libs:/data/data/com.googlecode.pythonforandroid/files:/sdcard/com.googlecode.pythonforandroid/extras/python:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6:/data/data/com.googlecode.pythonforandroid/files/python/lib/python26.zip
D/starcore( 9168): Py_Initialize: unable to load the file system codec
F/libc ( 9168): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9218 (Thread-2), pid 9168 (testingstarflut)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86_arm/generic_x86_arm:11/RSR1.201013.001/6903271:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2021-04-12 23:22:39+0300
pid: 9168, tid: 9218, name: Thread-2 >>> com.example.testingstarflut <<<
uid: 10154
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
eax 00000000 ebx 000023d0 ecx 00002402 edx 00000006
edi f033f81e esi b57f9e10
ebp f1bedb90 esp b57f9db8 eip f1bedb99
backtrace:
#00 pc 00000b99 [vdso] (__kernel_vsyscall+9)
#01 pc 0005ad68 /apex/com.android.runtime/lib/bionic/libc.so (syscall+40) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
#02 pc 00076511 /apex/com.android.runtime/lib/bionic/libc.so (abort+209) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
#03 pc 0016454e /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libpython3.6m.so (Py_FatalError+46)
#04 pc 00165837 /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libpython3.6m.so (_Py_InitializeEx_Private+1575)
#05 pc 001658a3 /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libpython3.6m.so (Py_InitializeEx+35)
#06 pc 000668bb /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libstar_python36.so (libstar_python36_ScriptInit+1435)
#07 pc 003a2faf /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libstarcore.so (SkeletonProc_ActiveScriptInterface(char*, char*, void*)+1711)
#08 pc 003a3d4d /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libstarcore.so (SkeletonProc_GetScriptInterface(char*)+45)
#09 pc 00249569 /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libstarcore.so (ClassOfVSBasicSRPInterface::InitRaw(char const*, ClassOfSRPInterface*)+201)
#10 pc 00046da4 /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/lib/x86/libstar_java.so (Java_com_srplab_www_starcore_StarCoreFactory_SrvGroup_1InitRaw+132)
#11 pc 00142132 /apex/com.android.art/lib/libart.so (art_quick_generic_jni_trampoline+82) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#12 pc 0013b922 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#13 pc 001d0381 /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+241) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#14 pc 00386701 /apex/com.android.art/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+385) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#15 pc 0037aa3e /apex/com.android.art/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1070) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#16 pc 007a11b7 /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+967) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#17 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#18 pc 000e6a00 [anon:dalvik-classes.dex extracted in memory from /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/base.apk] (com.srplab.www.starcore.StarSrvGroupClass._InitRaw+4)
#19 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#20 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#21 pc 000da844 [anon:dalvik-classes.dex extracted in memory from /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/base.apk] (com.srplab.starflut.StarflutPlugin.onMethodCall_Do+16476)
#22 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#23 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#24 pc 000d59ba [anon:dalvik-classes.dex extracted in memory from /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/base.apk] (com.srplab.starflut.StarflutPlugin$3$1.handleMessage+98)
#25 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#26 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#27 pc 0036f24e /system/framework/framework.jar (offset 0x92b000) (android.os.Handler.dispatchMessage+38)
#28 pc 007a14fe /apex/com.android.art/lib/libart.so (MterpInvokeVirtual+1806) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#29 pc 001357a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#30 pc 00396a36 /system/framework/framework.jar (offset 0x92b000) (android.os.Looper.loop+482)
#31 pc 007a505e /apex/com.android.art/lib/libart.so (MterpInvokeStatic+1454) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#32 pc 00135921 /apex/com.android.art/lib/libart.so (mterp_op_invoke_static+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#33 pc 000d5c3c [anon:dalvik-classes.dex extracted in memory from /data/app/~~Pz2q5K_lcSeJqMyQDrqbkQ==/com.example.testingstarflut-t77OZVkgJ2M-t5U46Khxzg==/base.apk] (com.srplab.starflut.StarflutPlugin$3.run+100)
#34 pc 007a355e /apex/com.android.art/lib/libart.so (MterpInvokeInterface+2126) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#35 pc 001359a1 /apex/com.android.art/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#36 pc 000eb7d0 /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
#37 pc 0036fb02 /apex/com.android.art/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.16375758241455872412)+370) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#38 pc 00379b00 /apex/com.android.art/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+176) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#39 pc 0078b325 /apex/com.android.art/lib/libart.so (artQuickToInterpreterBridge+1061) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#40 pc 0014220d /apex/com.android.art/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#41 pc 0013b922 /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#42 pc 001d0381 /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+241) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#43 pc 0062f37c /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+620) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#44 pc 0062f595 /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+85) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#45 pc 00697701 /apex/com.android.art/lib/libart.so (art::Thread::CreateCallback(void*)+1537) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
#46 pc 000e6974 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
#47 pc 00078567 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
Lost connection to device.
I am not sure what the problem is, but I feel like this part in the stacktrace is the reason
D/starcore( 9168): /data/data/com.example.testingstarflut/files:/data/data/com.example.testingstarflut/files/python3.6.zip:/data/data/com.example.testingstarflut/files/libs:/data/data/com.googlecode.pythonforandroid/files:/sdcard/com.googlecode.pythonforandroid/extras/python:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6:/data/data/com.googlecode.pythonforandroid/files/python/lib/python26.zip
I don't know how to fix it. Please help!
I've created my app in unity 2019.2.5f and my .aab build works at my samsung SM-J710GN and lower android versions. The only problem in 2019.2.5f is it has a bug that S-pen does not work. So I upgraded to 2019.3.7f. The problem now is when I test my app to samsung SM-J710GN, it crashes. I check logcat and found a line with il2cpp/patch.config' is missing. I don't know if this is the error but the same line appears in my samsung_SM-A530F and it runs perfectly.
Here are the logcat logs.
D/Unity(31130): CommandLine:
I/Unity(31130): onResume
D/Unity(31130): SetWindow 0 0xeb4cf008
D/Unity(31130): SetWindow 0 0xeb4cf008
I/Unity(31130): windowFocusChanged: true
D/Unity(31130): Enabling Unity systrace
D/Unity(31130): [VFS] Mount /data/app/com.MyCompany.MyApp-1/base.apk
D/Unity(31130): [VFS] Mount /data/app/com.MyCompany.MyApp-1/split_config.armeabi_v7a.apk
I/Unity(31130): SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 8, Memory = 1821mb
I/Unity(31130): SystemInfo ARM big.LITTLE configuration: 8 big (mask: 0xff), 0 little (mask: 0x0)
I/Unity(31130): ApplicationInfo com.MyCompany.MyApp version 0.1 build 9f7d5438-69ea-4de7-84be-c1bccddd034d
I/Unity(31130): Built from '2019.3/staging' branch, Version '2019.3.7f1 (6437fd74d35d)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'armeabi-v7a', Stripping 'Enabled'
D/Unity(31130): Script Patching: Patch files are not available, '/storage/emulated/0/Android/data/com.MyCompany.MyApp/cache/ScriptOnly/2019.3.7f1/il2cpp/patch.config' is missing.
D/Unity(31130): PlayerConnection initialized from /data/app/com.MyCompany.MyApp-1/base.apk/assets/bin/Data (debug = 0)
D/Unity(31130): PlayerConnection initialized network socket : 0.0.0.0 55482
D/Unity(31130): PlayerConnection initialized unix socket : Unity-com.MyCompany.MyApp
D/Unity(31130): Multi-casting "[IP] 192.168.254.102 [Port] 55482 [Flags] 3 [Guid] 3076295348 [EditorId] 3179775812 [Version] 1048832 [Id] AndroidPlayer(samsung_SM-J710GN#192.168.254.102) [Debug] 1 [PackageName] AndroidPlayer [ProjectName] MyApp" to [225.0.0.222:54997]...
D/Unity(31130): Waiting for connection from host on [0.0.0.0:55482]...
D/Unity(31130): Remaining time:8s
D/Unity(32306): Timed out. Continuing without host connection.
D/Unity(32306): Started listening to [0.0.0.0:55438]
D/Unity(32306): Starting managed debugger on port 56471
E/CRASH(32306): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
E/CRASH(32306): Version '2019.3.7f1 (6437fd74d35d)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
E/CRASH(32306): Build fingerprint: 'samsung/j7xeltedx/j7xelte:6.0.1/MMB29K/J710GNDXU1API5:user/release-keys'
E/CRASH(32306): Revision: '6'
E/CRASH(32306): ABI: 'arm'
E/CRASH(32306): Timestamp: 2020-04-07 22:37:49+0800
E/CRASH(32306): pid: 32306, tid: 32319, name: UnityMain >>> com.MyCompany.MyApp <<<
E/CRASH(32306): uid: 10491
E/CRASH(32306): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfb59e0cc
E/CRASH(32306): r0 01ffffff r1 0000000e r2 701c4000 r3 00000001
E/CRASH(32306): r4 daea3dc0 r5 00000000 r6 f359e0d0 r7 d7d3c040
E/CRASH(32306): r8 fffffff8 r9 00000000 r10 00000000 r11 f359e098
E/CRASH(32306): ip 00000000 sp f359e070 lr d88f6f28 pc d88f6f54
E/CRASH(32306): backtrace:
E/CRASH(32306): #00 pc 002dbf54 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #01 pc 002dbf00 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #02 pc 002f484c /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #03 pc 002da2f0 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #04 pc 002d659c /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #05 pc 002dc504 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #06 pc 002e4f58 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #07 pc 002e5bd8 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #08 pc 002e5ce4 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #09 pc 0032d050 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #10 pc 002ed38c /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #11 pc 002a5a14 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (il2cpp_init+40) (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/CRASH(32306): #12 pc 004863fd /data/app/com.MyCompany.MyApp-1/lib/arm/libunity.so (InitializeIl2CppFromMain(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char const**, bool)+188) (BuildId: fa4efc9bdc22d7868eb4de9f0e6e2b8fb81c9505)
E/CRASH(32306): #13 pc 004e2597 /data/app/com.MyCompany.MyApp-1/lib/arm/libunity.so (UnityInitApplication()+2526) (BuildId: fa4efc9bdc22d7868eb4de9f0e6e2b8fb81c9505)
E/CRASH(32306): #14 pc 004e3051 /data/app/com.MyCompany.MyApp-1/lib/arm/libunity.so (UnityPlayerLoop()+100) (BuildId: fa4efc9bdc22d7868eb4de9f0e6e2b8fb81c9505)
E/CRASH(32306): #15 pc 00505ac1 /data/app/com.MyCompany.MyApp-1/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+40) (BuildId: fa4efc9bdc22d7868eb4de9f0e6e2b8fb81c9505)
E/CRASH(32306): #16 pc 0083c0f9 /data/app/com.MyCompany.MyApp-1/oat/arm/base.odex (boolean com.unity3d.player.UnityPlayer.nativeRender()+76)
E/CRASH(32306): Tombstone written to: /storage/emulated/0/Android/data/com.MyCompany.MyApp/files/tombstone_02
E/AndroidRuntime(32306): FATAL EXCEPTION: UnityMain
E/AndroidRuntime(32306): Process: com.MyCompany.MyApp, PID: 32306
E/AndroidRuntime(32306): java.lang.Error: FATAL EXCEPTION [UnityMain]
E/AndroidRuntime(32306): Unity version : 2019.3.7f1
E/AndroidRuntime(32306): Device model : samsung SM-J710GN
E/AndroidRuntime(32306): Device fingerprint: samsung/j7xeltedx/j7xelte:6.0.1/MMB29K/J710GNDXU1API5:user/release-keys
E/AndroidRuntime(32306): Caused by: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
E/AndroidRuntime(32306): Version '2019.3.7f1 (6437fd74d35d)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'armeabi-v7a'
E/AndroidRuntime(32306): Build fingerprint: 'samsung/j7xeltedx/j7xelte:6.0.1/MMB29K/J710GNDXU1API5:user/release-keys'
E/AndroidRuntime(32306): Revision: '6'
E/AndroidRuntime(32306): ABI: 'arm'
E/AndroidRuntime(32306): Timestamp: 2020-04-07 22:37:49+0800
E/AndroidRuntime(32306): pid: 32306, tid: 32319, name: UnityMain >>> com.MyCompany.MyApp <<<
E/AndroidRuntime(32306): uid: 10491
E/AndroidRuntime(32306): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfb59e0cc
E/AndroidRuntime(32306): r0 01ffffff r1 0000000e r2 701c4000 r3 00000001
E/AndroidRuntime(32306): r4 daea3dc0 r5 00000000 r6 f359e0d0 r7 d7d3c040
E/AndroidRuntime(32306): r8 fffffff8 r9 00000000 r10 00000000 r11 f359e098
E/AndroidRuntime(32306): ip 00000000 sp f359e070 lr d88f6f28 pc d88f6f54
E/AndroidRuntime(32306): backtrace:
E/AndroidRuntime(32306): #00 pc 002dbf54 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #01 pc 002dbf00 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #02 pc 002f484c /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #03 pc 002da2f0 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #04 pc 002d659c /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #05 pc 002dc504 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #06 pc 002e4f58 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #07 pc 002e5bd8 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #08 pc 002e5ce4 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #09 pc 0032d050 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #10 pc 002ed38c /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #11 pc 002a5a14 /data/app/com.MyCompany.MyApp-1/lib/arm/libil2cpp.so (il2cpp_init+40) (BuildId: dd1e65ba48cc1f28d47b6b27d8bab2a508249c3d)
E/AndroidRuntime(32306): #12 pc 004863fd /data/app/com.MyCompany.MyApp-1/lib/arm/libunity.so (InitializeIl2CppFromMain(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char const**, bool)+188) (BuildId: fa4efc9bdc22d7868eb4de9f0e6e2b8fb81c9505)
E/AndroidRuntime(32306): #13 pc 004e2597 /data/app/com.MyCompany.MyApp-1/lib/arm/libunity.so (UnityInitApplication()+2526) (BuildId: fa4efc9bdc22d7868eb4de9f0e6e2b8fb81c9505)
E/AndroidRuntime(32306): #14 pc 004e3051 /data/app/com.MyCompany.MyApp-1/lib/arm/libunity.so (UnityPlayerLoop()+100) (BuildId: fa4efc9bdc22d7868eb4de9f0e6e2b8fb81c9505)
E/AndroidRuntime(32306): #15 pc 00505ac1 /data/app/com.MyCompany.MyApp-1/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+40) (BuildId: fa4efc9bdc22d7868eb4de9f0e6e2b8fb81c9505)
E/AndroidRuntime(32306): #16 pc 0083c0f9 /data/app/com.MyCompany.MyApp-1/oat/arm/base.odex (boolean com.unity3d.player.UnityPlayer.nativeRender()+76)
E/AndroidRuntime(32306): at libil2cpp.0x2dbf54(Native Method)
E/AndroidRuntime(32306): at libil2cpp.0x2dbf00(Native Method)
E/AndroidRuntime(32306): at libil2cpp.0x2f484c(Native Method)
E/AndroidRuntime(32306): at libil2cpp.0x2da2f0(Native Method)
E/AndroidRuntime(32306): at libil2cpp.0x2d659c(Native Method)
E/AndroidRuntime(32306): at libil2cpp.0x2dc504(Native Method)
E/AndroidRuntime(32306): at libil2cpp.0x2e4f58(Native Method)
E/AndroidRuntime(32306): at libil2cpp.0x2e5bd8(Native Method)
E/AndroidRuntime(32306): at libil2cpp.0x2e5ce4(Native Method)
W/ActivityManager(2590): Force finishing activity com.MyCompany.MyApp/com.unity3d.player.UnityPlayerActivity
I have a flutter projet, and I have created a plugin which will create new threads to do a task and return channel result (run a few seconds normal which can exec, ping or cmd for example).
In dart, when I call the plugin a few times (5, 10, 20..) at the same time recursively (each time will create few new threads in java), the app will crash after a random amount of time and output an error. I don't know where the problem is.
The method channel response is returned in the new thread, I print the Thread.activeNumber, it stays between 21 and 25 when I call the plugin 5 times each loop, therefore the thread number has not grown.
Here is an excerpt from my plugin code:
try {
Thread thread = new Thread(new Runnable() {
#Override
public void run() {
res.success(doCURLRequest(input));
return;
}
});
thread.start();
} catch (Exception e) {
e.printStackTrace();
result.error(e.toString(), "", null);
}
This is what the console outputs:
F/libc (25280): Fatal signal 11 (SIGSEGV), code 1, fault addr
0x1f0ffed65f03d0 in tid 25280 (nieben.yiqice)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'HONOR/LLD-AL30/HWLLD-H2:8.0.0/HONORLLD-
AL30/133(C00):user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 25280, tid: 25280, name: nieben.yiqice >>> nieben.yiqice <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1f0ffed65f03d0
x0 0000000000000060 x1 0000007c8f437dc0 x2 0000007c8f400000 x3 0000000000000006
x4 0000000000000037 x5 0000007fc10ce078 x6 0000007cb8f23000 x7 0000000022794276
x8 0000007c96de9898 x9 0000000000000016 x10 0000000000000016 x11 0000000000000009
x12 0000007c965a0c40 x13 0000000000000010 x14 0000007c965a0c40 x15 f81f0ffed65f03c0
x16 000000009109c108 x17 0000007cb7ce7948 x18 000000001a5a3a48 x19 0000007cb417f388
x20 0000000000000017 x21 0000000000000017 x22 000000000000000b x23 0000000000000044
x24 000000000000000b x25 0000007cb417f398 x26 0000007cb40ade70 x27 0000007ca9a0e818
x28 0000000000000040 x29 0000007ca9a0e818 x30 0000007c965b4810
sp 0000007fc10ce0f0 pc 0000007c96cee860 pstate 0000000020000000
backtrace:
#00 pc 00000000013e6860 /data/app/nieben.yiqice-kHJTi3gGe9hMTdLsxaaXXQ==/lib/arm64/libflutter.so (offset 0xc90000)
#01 pc 0000000000cac80c /data/app/nieben.yiqice-kHJTi3gGe9hMTdLsxaaXXQ==/lib/arm64/libflutter.so (offset 0xc90000)
#02 pc 0000000000cac540 /data/app/nieben.yiqice-kHJTi3gGe9hMTdLsxaaXXQ==/lib/arm64/libflutter.so (offset 0xc90000)
#03 pc 0000000000cac260 /data/app/nieben.yiqice-kHJTi3gGe9hMTdLsxaaXXQ==/lib/arm64/libflutter.so (offset 0xc90000)
#04 pc 0000000000ce6154 /data/app/nieben.yiqice-kHJTi3gGe9hMTdLsxaaXXQ==/lib/arm64/libflutter.so (offset 0xc90000)
#05 pc 0000000000cb9d60 /data/app/nieben.yiqice-kHJTi3gGe9hMTdLsxaaXXQ==/lib/arm64/libflutter.so (offset 0xc90000)
#06 pc 0000000000cbba94 /data/app/nieben.yiqice-kHJTi3gGe9hMTdLsxaaXXQ==/lib/arm64/libflutter.so (offset 0xc90000)
#07 pc 0000000000015f18 /system/lib64/libutils.so (_ZN7android6Looper9pollInnerEi+808)
#08 pc 0000000000015b68 /system/lib64/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+108)
#09 pc 000000000011b31c /system/lib64/libandroid_runtime.so (_ZN7androidL38android_os_MessageQueue_nativePollOnceEP7_JNIEnvP8_jobjectli+44)
#10 pc 000000000082769c /system/framework/arm64/boot-framework.oat (offset 0x626000) (android.app.NativeActivity.onWindowFocusChangedNative [DEDUPED]+140)
#11 pc 0000000000015c50 /dev/ashmem/dalvik-jit-code-cache (deleted)
Another output from a similar test:
F/libc (23487): Fatal signal 7 (SIGBUS), code 1, fault addr 0x63656600000029 in t
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'HONOR/LLD-AL30/HWLLD-H2:8.0.0/HONORLLD-AL30/133(C00):user/releas
Revision: '0'
ABI: 'arm64'
pid: 23487, tid: 23533, name: Thread-16 >>> nieben.yiqice <<<
signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x63656600000029
x0 0000007c8ebeb6e0 x1 0000007cb7ce6c00 x2 0000000000000000 x3 000000
x4 0000000000000099 x5 0000000000000000 x6 0000007cb8f23000 x7 000000
x8 7463656600000029 x9 0000000000000002 x10 0000000000000001 x11 000000
x12 0000000000000000 x13 ffffffffffffffb0 x14 000026254eac6a09 x15 00000f
x16 0000007c96f166a0 x17 0000007cb7ce7948 x18 0000000000000179 x19 000000
x20 0000007c92fc3248 x21 0000007c8ebeb6e0 x22 0000007c92fc3240 x23 000000
x24 0000007c874a5a00 x25 0000000000000050 x26 0000007c874a6000 x27 000000
x28 0000000000000002 x29 0000007cb402db78 x30 0000007c96694aa8
sp 0000007c959bf000 pc 0063656600000029 pstate 0000000060000000
backtrace:
#00 pc 0063656600000029 <unknown>
#01 pc 0000000000cd4aa4 /data/app/nieben.yiqice-kCfddpl3R270LR1KEPCNIw==/lib/ar
#02 pc 0000000000cb9d60 /data/app/nieben.yiqice-kCfddpl3R270LR1KEPCNIw==/lib/ar
#03 pc 0000000000cbba94 /data/app/nieben.yiqice-kCfddpl3R270LR1KEPCNIw==/lib/ar
#04 pc 0000000000015f18 /system/lib64/libutils.so (_ZN7android6Looper9pollInner
#05 pc 0000000000015b68 /system/lib64/libutils.so (_ZN7android6Looper8pollOnceE
#06 pc 0000000000013944 /system/lib64/libandroid.so (ALooper_pollOnce+92)
#07 pc 0000000000cbbb64 /data/app/nieben.yiqice-kCfddpl3R270LR1KEPCNIw==/lib/ar
#08 pc 0000000000cb8d7c /data/app/nieben.yiqice-kCfddpl3R270LR1KEPCNIw==/lib/ar
#09 pc 0000000000cba2e4 /data/app/nieben.yiqice-kCfddpl3R270LR1KEPCNIw==/lib/ar
#10 pc 00000000000671b8 /system/lib64/libc.so (_ZL15__pthread_startPv+36)
#11 pc 000000000001eee4 /system/lib64/libc.so (__start_thread+68)