引擎用的cocos2d-x
spine编辑器用的3.8.95
spine运行库用的3.8
我们游戏中会播放一些spine动画,在一些安卓设备中会出现偶现闪退,堆栈信息如下
1 #00 pc 00042778 /system/lib/libc.so (tgkill+12) [armeabi-v7a]
2 #01 pc 00040379 /system/lib/libc.so (pthread_kill+32) [armeabi-v7a]
3 #02 pc 0001c78f /system/lib/libc.so (raise+10) [armeabi-v7a]
4 #03 pc 00019931 /system/lib/libc.so (libc_android_abort+34) [armeabi-v7a]
5 #04 pc 000174ec /system/lib/libc.so (abort+4) [armeabi-v7a]
6 #05 pc 0001b3a3 /system/lib/libc.so (libc_fatal+16) [armeabi-v7a]
7 #06 pc 000199b9 /system/lib/libc.so (assert2+20) [armeabi-v7a]
8 #07 pc 009b5c47 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so [armeabi-v7a]
9 #08 pc 009b5d49 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so [armeabi-v7a]
10 #09 pc 009b42e9 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so [armeabi-v7a]
11 #10 pc 009b3b97 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so [armeabi-v7a]
12 #11 pc 009b3b5f /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cxa_throw+74) [armeabi-v7a]
13 #12 pc 009aea43 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (operator new(unsigned int)+54) [armeabi-v7a]
14 #13 pc 005fd07f /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (std::ndk1::split_buffer<cocos2d::V3F_C4B_T2F, std::ndk1::allocator<cocos2d::V3F_C4B_T2F>&>::split_buffer(unsigned int, unsigned int, std::ndk1::allocator<cocos2d::V3F_C4B_T2F>&)+26) [armeabi-v7a]
15 #14 pc 005fcf93 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (std::ndk1::vector<cocos2d::V3F_C4B_T2F, std::ndk1::allocator<cocos2d::V3F_C4B_T2F> >::append(unsigned int)+86) [armeabi-v7a]
16 #15 pc 005fcae7 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (spine::SkeletonBatch::allocateVertices(unsigned int)+46) [armeabi-v7a]
17 #16 pc 005f80a9 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (spine::SkeletonRenderer::draw(cocos2d::Renderer, cocos2d::Mat4 const&, unsigned int)+852) [armeabi-v7a]
18 #17 pc 006ef450 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d::Node::visit(cocos2d::Renderer, cocos2d::Mat4 const&, unsigned int)+336) [armeabi-v7a]
19 #18 pc 006ef4b0 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d::Node::visit(cocos2d::Renderer, cocos2d::Mat4 const&, unsigned int)+432) [armeabi-v7a]
20 #19 pc 0070a544 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d:😛rotectedNode::visit(cocos2d::Renderer, cocos2d::Mat4 const&, unsigned int)+532) [armeabi-v7a]
21 #20 pc 006ef4b0 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d::Node::visit(cocos2d::Renderer, cocos2d::Mat4 const&, unsigned int)+432) [armeabi-v7a]
22 #21 pc 006ef4b0 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d::Node::visit(cocos2d::Renderer, cocos2d::Mat4 const&, unsigned int)+432) [armeabi-v7a]
23 #22 pc 006ef4b0 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d::Node::visit(cocos2d::Renderer, cocos2d::Mat4 const&, unsigned int)+432) [armeabi-v7a]
24 #23 pc 0070d9e4 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d::Scene::render(cocos2d::Renderer)+300) [armeabi-v7a]
25 #24 pc 00757d74 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d:😃irector::drawScene()+452) [armeabi-v7a]
26 #25 pc 0075a6f8 /data/app/com.c2vl.kgamebox-2/lib/arm/libcocos2dlua.so (cocos2d:😃isplayLinkDirector::mainLoop()+48) [armeabi-v7a]
27 #26 pc 0380e7f5 /data/app/com.c2vl.kgamebox-2/oat/arm/base.odex (oatexec+11671541) [armeabi]
28 #27 pc 0380f187 /data/app/com.c2vl.kgamebox-2/oat/arm/base.odex (oatexec+11673991) [armeabi]
29 #28 pc 02fd7715 <removed> (oatexec+14067477) [armeabi]
30 java:
31 org.cocos2dx.lib.Cocos2dxRenderer.onDrawFrame(Cocos2dxRenderer.java:101)
32 android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
33 android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
有些闪退会报另外的错误,如下:
libc : /usr/local/google/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "terminating with uncaught exception of type std::bad_alloc: std::bad_alloc" failed
请问能否提供一些解决问题的思路,感谢!