cocos2dx-3.1.1+lua闪退问题

开发的游戏总在一些机型上闪退,不知道是不是和内存有关,看崩溃堆栈也很无厘头:
Crash reason: SIGSEGV

Crash address: 0xe020e018

dalvik-main space (deleted) + 0x1a74be

system@framework@boot.art + 0xb9ca7e

libcocos2dlua.so + 0x768a06

libcocos2dlua.so + 0xfd593e

dalvik-alloc space (deleted) + 0x4e33e

libcocos2dlua.so + cocos2d::LuaStack::executeFunction(int) at CCLuaStack.cpp:457

libcocos2dlua.so + cocos2d::LuaStack::pushFunctionByHandler(int) at CCLuaStack.cpp:424

libcocos2dlua.so + cocos2d::LuaStack::executeFunctionByHandler(int, int) at CCLuaStack.cpp:503 (discriminator 1)

libcocos2dlua.so + $d at CCLuaEngine.cpp:?

libcocos2dlua.so + cocos2d::LuaEngine::handleNodeEvent(void*) at CCLuaEngine.cpp:311

libcocos2dlua.so + cocos2d::LuaEngine::sendEvent(cocos2d::ScriptEvent*) at CCLuaEngine.cpp:216

libcocos2dlua.so + sendNodeEventToLua at CCNode.cpp:1063

libcocos2dlua.so + cocos2d::Node::onEnter() at CCNode.cpp:1090

dalvik-main space (deleted) + 0x315ffffe

libcocos2dlua.so + cocos2d::ProtectedNode::onEnter() at CCProtectedNode.cpp:344

dalvik-main space (deleted) + 0x31ce3ffe

libcocos2dlua.so + cocos2d::ui::Widget::onEnter() at UIWidget.cpp:124

libcocos2dlua.so + cocos2d::ui::Layout::onEnter() at UILayout.cpp:630

libcocos2dlua.so + cocos2d::Node::onEnter() at CCNode.cpp:1081 (discriminator 3)

libcocos2dlua.so + cocos2d::Director::setNextScene() at CCDirector.cpp:1046

libcocos2dlua.so + cocos2d::Director::drawScene() at CCDirector.cpp:283

libcocos2dlua.so + cocos2d::DisplayLinkDirector::mainLoop() at CCDirector.cpp:1286

libcocos2dlua.so + Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeRender at Java_org_cocos2dx_lib_Cocos2dxRenderer.cpp:14

data@app@com.hjkx.kkk5test-1@base.apk@classes.dex + 0x6aea09

dalvik-alloc space (deleted) + 0x4de3e

dalvik-main space (deleted) + 0xdf46e

data@app@com.hjkx.kkk5test-1@base.apk@classes.dex + 0x6c1e73

dalvik-alloc space (deleted) + 0x4ec8e

system@framework@boot.oat + 0x2d112a1

dalvik-main space (deleted) + 0x9113e

dalvik-main space (deleted) + 0x1e008e

dalvik-main space (deleted) + 0x95a5e

libLLVM.so + 0x1d3008

dalvik-alloc space (deleted) + 0x4f0ee

dalvik-main space (deleted) + 0x57bfe

dalvik-main space (deleted) + 0x1b007e

system@framework@boot.art + 0x3fd7fe

system@framework@boot.oat + 0x2d1257f

libc.so + 0x3de93

libart.so + 0xa0f27

这个问题困扰了很久,没法跟下去,到了 executeFunction 这里不知道执行了 哪个function、方法内部哪里出现了异常导致闪退。

有人遇到过?给个提示

是不是线程挂了 cocos2dx 在gl线程跑 android在ui线程跑

线程挂了 有什么提示没?

我没看到任何的线程异常提示哦

你自己是不是起了另外的线程去操作UI

没有的,我也不知道怎么起另外的线程。

我也遇到这个问题,暂时不知道怎么解决,3.8版本,先mark下