cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.24k stars 7.06k forks source link

ios下切换游戏场景或退出重进会crash #20627

Open wuyj opened 3 years ago

wuyj commented 3 years ago

crash 堆栈如下: 4 MyApp JSB_glFlushCommand (jsb_opengl_manual.cpp:4504) 5 MyApp JSB_glFlushCommandRegistry (jsb_opengl_manual.cpp:4860) 6 JavaScriptCore long long JSC::APICallbackFunction::call(JSC::ExecState) + 352 7 JavaScriptCore _llint_entry + 90280 8 JavaScriptCore _llint_entry + 82820 9 JavaScriptCore _llint_entry + 82820 10 JavaScriptCore _vmEntryToJavaScript + 268 11 JavaScriptCore JSC::Interpreter::executeCall(JSC::ExecState, JSC::JSObject, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 424 12 JavaScriptCore JSC::profiledCall(JSC::ExecState, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 188 13 JavaScriptCore JSObjectCallAsFunction + 376 14 MyApp se::Object::call(std::1::vector<se::Value, std::1::allocator > const&, se::Object, se::Value) (Object.mm:516) 15 MyApp cocos2d::EventDispatcher::dispatchTickEvent(float) (EventDispatcher.cpp:282) 16 MyApp -[MainLoop doCaller:] (CCApplication-ios.mm:190) 17 QuartzCore CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 636

yuhanle commented 3 years ago

目前引擎没有支持重复进去游戏,看上去你的需求是将引擎场景作为二级页面,可以重复进入对吧