如题,我们的编译环境是:
cocos2dx: 3.14.0
gradle: 3.2.0
ndk: ndk-r10e
最近我们生成android 64位的包,闪退率蛮高的,经过多轮测试和bugly上报发现大部分机型都是 oppo ,vivo 和三星的,并且大部分都是用了联发科的CPU,
用骁龙的的手机基本没有出现这种情况。然后闪退时间不确定,由几十秒到三四十分钟不等,登录游戏后基本什么操作都不做放置在那里,过一段时间就会崩掉了,
我们这边也尝试了把所有的第三方库都删掉了,然而情况并没有得到改善,下面是我们报错日志
********** Crash dump: **********
Build fingerprint: 'vivo/PD1813/PD1813:8.1.0/O11019/1564992826:user/release-keys'
pid: 24176, tid: 24231, name: GLThread 12020 >>> com.piggyiscoming.casual.adventure <<<
signal 11 (SIGSEGV), code 0 (SI_USER), fault addr --------
Stack frame 08-29 19:39:09.966 25923 25923 F DEBUG : #00 pc 0000000000cf24d8 /data/app/com.piggyiscoming.casual.adventure-LR0TLKbmwlzbDoNUKxYNbg==/lib/arm64/libcocos2djs.so: Routine js::ObjectImpl::nativeLookup(js::ExclusiveContext*, jsid) at :?
Stack frame 08-29 19:39:09.966 25923 25923 F DEBUG : #01 pc 0000000000cb23f0 /data/app/com.piggyiscoming.casual.adventure-LR0TLKbmwlzbDoNUKxYNbg==/lib/arm64/libcocos2djs.so: Routine js::ArrayBufferObject::addView(js::ArrayBufferViewObject*) at :?
Crash dump is completed
********** Crash dump: **********
Build fingerprint: 'vivo/PD1813/PD1813:8.1.0/O11019/1564992826:user/release-keys'
pid: 26270, tid: 26270, name: asual.adventure >>> com.piggyiscoming.casual.adventure <<<
signal 11 (SIGSEGV), code 0 (SI_USER), fault addr --------
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #00 pc 000000000006aa94 /system/lib64/libc.so (__epoll_pwait+8)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #01 pc 000000000001f5dc /system/lib64/libc.so (epoll_pwait+52)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #02 pc 0000000000015d48 /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #03 pc 0000000000015c28 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+108)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #04 pc 00000000001116b4 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #05 pc 000000000083f11c /system/framework/arm64/boot-framework.oat (offset 0x650000) (android.app.NativeActivity.onWindowFocusChangedNative [DEDUPED]+140)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #06 pc 0000000000ff9d60 /system/framework/arm64/boot-framework.oat (offset 0x650000) (android.os.MessageQueue.next+192)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #07 pc 0000000000ff33d4 /system/framework/arm64/boot-framework.oat (offset 0x650000) (android.os.Looper.loop+500)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #08 pc 0000000000716f38 /system/framework/arm64/boot-framework.oat (offset 0x650000) (android.app.ActivityThread.main+1080)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #09 pc 000000000054c24c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #10 pc 00000000000dcfd0 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+264)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #11 pc 000000000046fb54 /system/lib64/libart.so (art::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::ArgArray*, art::JValue*, char const*)+100)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #12 pc 00000000004716f8 /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1456)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #13 pc 00000000003f4e18 /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobject*)+48)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #14 pc 0000000000262384 /system/framework/arm64/boot.oat (offset 0x1db000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #15 pc 000000000170b8b4 /system/framework/arm64/boot-framework.oat (offset 0x650000) (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+132)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #16 pc 0000000001715328 /system/framework/arm64/boot-framework.oat (offset 0x650000) (com.android.internal.os.ZygoteInit.main+3112)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #17 pc 000000000054c24c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #18 pc 00000000000dcfd0 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+264)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #19 pc 000000000046fb54 /system/lib64/libart.so (art::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::ArgArray*, art::JValue*, char const*)+100)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #20 pc 000000000046f778 /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+412)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #21 pc 00000000003760b0 /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+612)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #22 pc 00000000000a8e80 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #23 pc 00000000000ab674 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+964)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #24 pc 0000000000002440 /system/bin/app_process64 (main+1328)
Stack frame 08-29 20:12:51.920 30014 30014 F DEBUG : #25 pc 00000000000a2314 /system/lib64/libc.so (__libc_init+88)
Stack frame 08-29 20:12:51.921 30014 30014 F DEBUG : #26 pc 0000000000001e70 /system/bin/app_process64 (_start_main+80)
Crash dump is completed
********** Crash dump: **********
Build fingerprint: 'vivo/PD1813/PD1813:8.1.0/O11019/1564992826:user/release-keys'
pid: 11414, tid: 11453, name: GLThread 12900 >>> com.piggyiscoming.casual.adventure <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Stack frame 08-30 15:05:45.102 14526 14526 F DEBUG : #00 pc 0000000000cf2038 /data/app/com.piggyiscoming.casual.adventure-kAKKZ6S6PAnGH7Uc1VqXcA==/lib/arm64/libcocos2djs.so: Routine js::ObjectImpl::initializeSlotRange(unsigned int, unsigned int) at :?
Stack frame 08-30 15:05:45.102 14526 14526 F DEBUG : #01 pc 0000000000cb0f50 /data/app/com.piggyiscoming.casual.adventure-kAKKZ6S6PAnGH7Uc1VqXcA==/lib/arm64/libcocos2djs.so: Routine js::ArgumentsObject* js::ArgumentsObject::create<CopyFrameArgs>(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSFunction*>, unsigned int, CopyFrameArgs&) at :?
烦请各位大神抽空帮忙看看,给我们一些建议和指点一下方向