Hi,
I am using cocos2dx v. 3.10 and I am suffering a weird crash only in certain iOs devices.
The game loads the first level properly, but when the game try to load the second using:
Director::getInstance()->replaceScene(scene);
the game crash (EXE_BAD_ADDRESS) only in certain iPhones and in the iPad mini 2. The game has been also tested in an iPad3, iPad4 and iPad mini but with these devices I can’t reproduce the crash
this is the call stack
Please, any idea?
Thanks
CCCustomCommand.cpp
void CustomCommand::execute()
{
if(func)
{
func(); <---------
}
}
CCRenderer.cpp
else if(RenderCommand::Type::CUSTOM_COMMAND == commandType)
{
flush();
auto cmd = static_cast<CustomCommand*>(command);
cmd->execute(); <---------------
}
CCRenderer.cpp
glDisable(GL_CULL_FACE);
RenderState::StateBlock::_defaultState->setCullFace(false);
for (auto it = zZeroQueue.cbegin(); it != zZeroQueue.cend(); ++it)
{
processRenderCommand(*it); <-----------
}
flush();