Description
Hello
We are getting this very rare crash at launch across many android devices and all android versions. This error has been occurring in all cocos2d-x versions v3.x including the latest one. We tried everything to solve the crash but failed. We can cause the crash by rapidly closing and launching the app, crash occurs randomly.
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000010
#00 pc 00ae0c2c ***/lib/libcocos2dcpp.so (cocos2d::RenderState::StateBlock::setBlend(bool))
#1 pc 00aee5dc ***/lib/libcocos2dcpp.so
#2 pc 00a9e6d0 ***/lib/libcocos2dcpp.so (cocos2d::Director::setGLDefaultValues()+24)
#3 pc 00a9f824 **/lib/libcocos2dcpp.so (cocos2d::Director::setOpenGLView(cocos2d::GLView)+112)
#4 pc 009ef22b ***/lib/libcocos2dcpp.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit+230)
#00 -> /renderer/CCRenderState.cpp:732 -> _blendEnabled = enabled;
#1 -> /renderer/ccGLStateCache.cpp:120 -> RenderState::StateBlock::_defaultState->setBlend(true);
#2 -> /base/CCDirector.cpp:682
#4 -> /base/CCDirector.cpp:404
Version: cocos2d-x-3.12
The crash is caused by RenderState::StateBlock::_defaultState being nullptr. Other crashes happen if a control for nullptr is added for the crash line.
Do you have any ideas about this problem?
Thanks