leinlin / Miku-LuaProfiler

Apache License 2.0
1.88k stars 435 forks source link

tolua的demo测试真机启动闪退 #9

Closed huiball closed 4 years ago

huiball commented 5 years ago
06-21 18:23:48.399 29261 29295 E CRASH   :  #00  pc 0004b11c  /system/lib/libc.so (tgkill+12)
06-21 18:23:48.400 29261 29295 E CRASH   :  #01  pc 0001a9b3  /system/lib/libc.so (abort+54)
06-21 18:23:48.400 29261 29295 E CRASH   :  #02  pc 0032d583  /system/lib/libart.so (art::Runtime::Abort(char const*)+230)
06-21 18:23:48.400 29261 29295 E CRASH   :  #03  pc 0032dc13  /system/lib/libart.so (art::Runtime::Aborter(char const*)+10)
06-21 18:23:48.400 29261 29295 E CRASH   :  #04  pc 003e88fd  /system/lib/libart.so (android::base::LogMessage::~LogMessage()+456)
06-21 18:23:48.400 29261 29295 E CRASH   :  #05  pc 00224d97  /system/lib/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1262)
06-21 18:23:48.400 29261 29295 E CRASH   :  #06  pc 00224ff3  /system/lib/libart.so (art::JavaVMExt::JniAbortF(char const*, char const*, ...)+66)
06-21 18:23:48.400 29261 29295 E CRASH   :  #07  pc 00352073  /system/lib/libart.so (art::Thread::DecodeJObject(_jobject*) const+290)
06-21 18:23:48.400 29261 29295 E CRASH   :  #08  pc 000c67e1  /system/lib/libart.so (art::CheckJNI::CallFloatMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+28)
06-21 18:23:48.400 29261 29295 E CRASH   :  #09  pc 000c5dfb  /system/lib/libart.so (art::CheckJNI::IsInstanceOf(_JNIEnv*, _jobject*, _jclass*)+1310)
06-21 18:23:48.400 29261 29295 E CRASH   :  #10  pc 000c564d  /system/lib/libart.so (art::CheckJNI::GetObjectClass(_JNIEnv*, _jobject*)+768)
06-21 18:23:48.400 29261 29295 E CRASH   :  #11  pc 000c9bf5  /system/lib/libart.so (art::CheckJNI::NewStringUTF(_JNIEnv*, char const*)+480)
06-21 18:23:48.400 29261 29295 E CRASH   :  #12  pc 000ca59f  /system/lib/libart.so (art::CheckJNI::ReleaseStringUTFChars(_JNIEnv*, _jstring*, char const*)+42)
06-21 18:23:48.400 29261 29295 E CRASH   :  #13  pc 000bc3c3  /system/lib/libart.so (art::ClassHierarchyAnalysis::UpdateAfterLoadingOf(art::Handle<art::mirror::Class>)+934)
06-21 18:23:48.400 29261 29295 E CRASH   :  #14  pc 00cd1380  /data/app/com.lua.test.tolua-YETuQT-p9USpRK13D0m53A==/lib/arm/libunity.so (AndroidJNIBindingsHelpers::CallStaticIntMethod(void*, void*, dynamic_array<jvalue, 0u> const&)+152)
06-21 18:23:48.400 29261 29295 E CRASH   :  #15  pc 00cd6a18  /data/app/com.lua.test.tolua-YETuQT-p9USpRK13D0m53A==/lib/arm/libunity.so (AndroidJNI_CUSTOM_CallStaticIntMethod(void*, void*, MonoArray*)+52)
06-21 18:23:48.400 29261 29295 E CRASH   :  #16  pc 0000e904   ( (wrapper managed-to-native) UnityEngine.AndroidJNI:CallStaticIntMethod (intptr,intptr,UnityEngine.jvalue[]) {0xc94a7df8} + 0x54 (0xcaa108b0 0xcaa10980) [0xde12cf00 - Unity Root Domain]+59652)
06-21 18:23:48.400 29261 29295 E CRASH   :  #17  il 0000003f  at (wrapper managed-to-native) UnityEngine.AndroidJNI.CallStaticIntMethod (intptr,intptr,UnityEngine.jvalue[]) <0x0003f>
06-21 18:23:48.400 29261 29295 E CRASH   :  #18  il 0000007f  at MikuLuaProfiler.NativeHelper.GetPass () [0x00010] in <b402c1254b204fedb09d4180a5ce465e>:0
06-21 18:23:48.400 29261 29295 E CRASH   :  #19  il 000007df  at MikuLuaProfiler.HookLuaSetup.LateUpdate () [0x000dd] in <b402c1254b204fedb09d4180a5ce465e>:0
06-21 18:23:48.400 29261 29295 E CRASH   :  #20  il 0000007f  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x00020] in <c6bd535f6ab848b4a13f34d01b756eef>:0
06-21 18:23:48.436   935   935 W Binder:935_9: type=1400 audit(0.0:7674): avc: denied { write } for name="logd" dev="tmpfs" ino=19015 scontext=u:r:audioserver:s0 tcontext=u:object_r:logd_socket:s0 tclass=sock_file permissive=0

直接用tolua的helloworld的demo打包,启动的时候闪退,这是CRASH堆栈,同样xlua真机没有问题。

leinlin commented 4 years ago

貌似与android sdk版本有关系,太高会闪退,目前暂时去掉 从android本地 获取PSS的接口

huiball commented 4 years ago

新版本没问题了