1.7版本之后就有的一个bug以及排查结果,请开发人员进

导致bug出现的git 更新log:
Bug fix of releasing JS object logic in CPP controls JS object’s cycle mode (spine, dragonbones, box2d). (#1075)

bug现象: 会导致物理引擎运行一小会就报错
Simulator: ERROR: TypeError: undefined is not an object (evaluating ‘colliderB.body’), location: src/jsb_polyfill.js:13858:30
Simulator: STACK:
Simulator: emit@src/jsb_polyfill.js:13858:30
Simulator: _onPreSolve@src/jsb_polyfill.js:14170:17
Simulator: Step@[native code]
Simulator: update@src/jsb_polyfill.js:13985:23

bug调试以及尝试解决:

        spTrackEntry_setDisposeCallback([](spTrackEntry* entry){
        se::Object* seObj = nullptr;
        auto iter = se::NativePtrToObjectMap::find(entry);
        if (iter != se::NativePtrToObjectMap::end())
        {
            // Save se::Object pointer for being used in cleanup method.
            seObj = iter->second;
            // Unmap native and js object since native object was destroyed.
            // Otherwise, it may trigger 'assertion' in se::Object::setPrivateData later
            // since native obj is already released and the new native object may be assigned with
            // the same address.
            // se::NativePtrToObjectMap::erase(iter); **//注释掉这一行**
        }
        else
        {
            return;
        }
        auto cleanup = [seObj](){
            auto se = se::ScriptEngine::getInstance();
            if (!se->isValid() || se->isInCleanup())
                return;

            se::AutoHandleScope hs;
            se->clearException();

            // The native <-> JS mapping was cleared in the callback above.
            // seObj->clearPrivateData isn't needed since the JS object will be garbage collected after unroot and decRef.
            seObj->clearPrivateData(); // **增加这一行**
            seObj->unroot();
            seObj->decRef();
        };

        if (!se::ScriptEngine::getInstance()->isGarbageCollecting())
        {
            cleanup();
        }
        else
        {
            CleanupTask::pushTaskToAutoReleasePool(cleanup);
        }
    });

修改上面两处之后, 问题就消失了。
不过我并不清楚为什么之前的代码有问题,而修改之后的代码是否是正确逻辑也不清楚。还请代码所有者帮忙解释并且真正修复。

另外,目前引擎依然存在各种隐患, 导致我们的项目不定期的崩溃, 但我们花了大量时间, 依然很难定位问题。因为不好确定如何重现, 所以也很难在这里提出问题。期望能有负责引擎的技术兄弟能直接和我联系,能技术支持一下的话真是万分感谢。我们的项目也算是一个比较大型的卡牌RPG,尝试从cocos2d-x转到creator也是一个挑战, 项目以及急待上线,但目前来看还是让我们有点焦头烂额,极度困惑ing。。真心求帮助~

谢谢反馈,请问你现在用的是什么版本?我们在 1.8.2 修复了大量 iOS 的崩溃问题,能试用看看吗?

当初还不如搞原生,一种语言对应一种平台,把api统一就行了。这样做大而全就容易出问题。

现在正在使用1.8.2, 目前发现情况有比较明显的好转, 但偶尔还是有崩溃的情况。还是希望能和你们建立更有效的沟通方式,说实话在论坛反馈疑难杂症基本没啥作用,我这次提的问题都是自己花了大量时间调试定位以后才能给你们提供一些有用的信息,但效率是极其低下的。

现在偶尔崩溃时,崩溃信息是什么样的呢?

2018-02-26T06:51:18.260Z - normal: Simulator: removeTextureForKey: /Users/xjy/Documents/ff/project/assets/resources/ui/button/main/mail.png — (
2018-02-26T06:51:18.260Z - normal: Simulator: 0 Simulator 0x000000010aa9ac39 _ZN7cocos2d12TextureCache19removeTextureForKeyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 377
2018-02-26T06:51:18.261Z - normal: Simulator: 1 Simulator 0x000000010a1ba72b _ZL44js_cocos2dx_TextureCache_removeTextureForKeyRN2se5StateE + 619
2018-02-26T06:51:18.261Z - normal: Simulator: 2 Simulator 0x000000010a1ba36c Z52js_cocos2dx_TextureCache_removeTextureForKeyRegistryPK15OpaqueJSContextP13OpaqueJSValueS3_mPKPKS2_PS5 + 332
2018-02-26T06:51:18.261Z - normal: Simulator: 3 JavaScriptCore 0x00007fff8eb6d521 _ZN3JSC19APICallbackFunction4callINS_18JSCallbackFunctionEEExPNS_9ExecStateE + 657
2018-02-26T06:51:18.261Z - normal: Simulator: 4 JavaScriptCore 0x00007fff8e34c5a0 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateEPNS_11InstructionENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 576
2018-02-26T06:51:18.262Z - normal: Simulator: 5 JavaScriptCore 0x00007fff8ec5774a llint_entry + 26716
2018-02-26T06:51:18.262Z - normal: Simulator: 6 JavaScriptCore 0x00007fff8ec576e6 llint_entry + 26616
2018-02-26T06:51:18.263Z - normal: Simulator: 7 JavaScriptCore 0x00007fff8ec576e6 llint_entry + 26616
2018-02-26T06:51:18.263Z - normal: Simulator: 8 JavaScriptCore 0x00007fff8ec57758 llint_entry + 26730
2018-02-26T06:51:18.264Z - normal: Simulator: 9 JavaScriptCore 0x00007fff8ec57758 llint_entry + 26730
2018-02-26T06:51:18.264Z - normal: Simulator: 10 JavaScriptCore 0x00007fff8ec57758 llint_entry + 26730
2018-02-26T06:51:18.264Z - normal: Simulator: 11 ??? 0x00005193a6bd93b9 0x0 + 89694599484345
2018-02-26T06:51:18.264Z - normal: Simulator: 12 ??? 0x00005193a869efdc 0x0 + 89694627557340
2018-02-26T06:51:18.265Z - normal: Simulator: 13 ??? 0x00005193a860c63c 0x0 + 89694626956860
2018-02-26T06:51:18.265Z - normal: Simulator: 14 ??? 0x00005193a6a38a25 0x0 + 89694597777957
2018-02-26T06:51:18.265Z - normal: Simulator: 15 ??? 0x00005193a6da45f7 0x0 + 89694601364983
2018-02-26T06:51:18.265Z - normal: Simulator: 16 JavaScriptCore 0x00007fff8ec50d0b vmEntryToJavaScript + 299
2018-02-26T06:51:18.266Z - normal: Simulator: 17 JavaScriptCore 0x00007fff8eb2b53e _ZN3JSC7JITCode7executeEPNS_2VMEPNS_14ProtoCallFrameE + 158
2018-02-26T06:51:18.266Z - normal: Simulator: 18 JavaScriptCore 0x00007fff8e34f4f9 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 505
2018-02-26T06:51:18.266Z - normal: Simulator: 19 JavaScriptCore 0x00007fff8e7598a2 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 178
2018-02-26T06:51:18.266Z - normal: Simulator: 20 JavaScriptCore 0x00007fff8e34f1e4 JSObjectCallAsFunction + 788
2018-02-26T06:51:18.267Z - normal: Simulator: 21 Simulator 0x0000000109d72d66 ZN2se6Object4callERKNSt3__16vectorINS_5ValueENS1_9allocatorIS3_EEEEPS0_PS3 + 294
2018-02-26T06:51:18.267Z - normal: Simulator: 22 Simulator 0x000000010a303fd5 _ZZL29js_EventListenerCustom_createRN2se5StateEENK4$_17clEPN7cocos2d11EventCustomE + 3733
2018-02-26T06:51:18.267Z - normal: Simulator: 23 Simulator 0x000000010a303130 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZL29js_EventListenerCustom_createRN2se5StateEE4$17PN7cocos2d11EventCustomEEEEvDpOT + 80
2018-02-26T06:51:18.267Z - normal: Simulator: 24 Simulator 0x000000010a302ec9 _ZNSt3__110__function6__funcIZL29js_EventListenerCustom_createRN2se5StateEE4$17NS_9allocatorIS5_EEFvPN7cocos2d11EventCustomEEEclEOSA + 57
2018-02-26T06:51:18.267Z - normal: Simulator: 25 Simulator 0x000000010a5beba9 ZNKSt3__18functionIFvPN7cocos2d11EventCustomEEEclES3 + 153
2018-02-26T06:51:18.268Z - normal: Simulator: 26 Simulator 0x000000010a5beb01 _ZZN7cocos2d19EventListenerCustom4initERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS1_8functionIFvPNS_11EventCustomEEEEENK3$_0clEPNS_5EventE + 97
2018-02-26T06:51:18.268Z - normal: Simulator: 27 Simulator 0x000000010a5bea90 _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN7cocos2d19EventListenerCustom4initERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERKNS_8functionIFvPNS3_11EventCustomEEEEE3$0PNS3_5EventEEEEvDpOT + 80
2018-02-26T06:51:18.268Z - normal: Simulator: 28 Simulator 0x000000010a5be939 _ZNSt3__110__function6__funcIZN7cocos2d19EventListenerCustom4initERKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERKNS_8functionIFvPNS2_11EventCustomEEEEE3$0NS7_ISJ_EEFvPNS2_5EventEEEclEOSM + 57
2018-02-26T06:51:18.268Z - normal: Simulator: 29 Simulator 0x000000010aa220f9 ZNKSt3__18functionIFvPN7cocos2d5EventEEEclES3 + 153
2018-02-26T06:51:18.268Z - normal: Simulator: 30 Simulator 0x000000010aa22024 _ZZN7cocos2d15EventDispatcher13dispatchEventEPNS_5EventEENK3$_2clEPNS_13EventListenerE + 84
2018-02-26T06:51:18.268Z - normal: Simulator: 31 Simulator 0x000000010aa21fc0 _ZNSt3__128__invoke_void_return_wrapperIbE6__callIJRZN7cocos2d15EventDispatcher13dispatchEventEPNS3_5EventEE3$2PNS3_13EventListenerEEEEbDpOT + 80
2018-02-26T06:51:18.269Z - normal: Simulator: 32 Simulator 0x000000010aa21e59 _ZNSt3__110__function6__funcIZN7cocos2d15EventDispatcher13dispatchEventEPNS2_5EventEE3$2NS_9allocatorIS6_EEFbPNS2_13EventListenerEEEclEOSA + 57
2018-02-26T06:51:18.269Z - normal: Simulator: 33 Simulator 0x000000010aa047b9 ZNKSt3__18functionIFbPN7cocos2d13EventListenerEEEclES3 + 153
2018-02-26T06:51:18.269Z - normal: Simulator: 34 Simulator 0x000000010aa04624 _ZN7cocos2d15EventDispatcher24dispatchEventToListenersEPNS0_19EventListenerVectorERKNSt3__18functionIFbPNS_13EventListenerEEEE + 1348
2018-02-26T06:51:18.269Z - normal: Simulator: 35 Simulator 0x000000010aa04c5c _ZN7cocos2d15EventDispatcher13dispatchEventEPNS_5EventE + 1164
2018-02-26T06:51:18.270Z - normal: Simulator: 36 Simulator 0x000000010a76c7be _ZN7cocos2d8Director9drawSceneEv + 94
2018-02-26T06:51:18.270Z - normal: Simulator: 37 Simulator 0x000000010a7720a0 _ZN7cocos2d8Director8mainLoopEv + 112
2018-02-26T06:51:18.270Z - normal: Simulator: 38 Simulator 0x000000010ab5c3ed _ZN7cocos2d11Application3runEv + 173
2018-02-26T06:51:18.270Z - normal: Simulator: 39 Simulator 0x0000000109b962df -[AppController startup] + 2015
2018-02-26T06:51:18.270Z - normal: Simulator: 40 Simulator 0x0000000109b9111d -[AppController applicationDidFinishLaunching:] + 413
2018-02-26T06:51:18.271Z - normal: Simulator: 41 CoreFoundation 0x00007fff8be7554c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
2018-02-26T06:51:18.271Z - normal: Simulator: 42 CoreFoundation 0x00007fff8be7544b _CFXRegistrationPost + 427
2018-02-26T06:51:18.271Z - normal: Simulator: 43 CoreFoundation 0x00007fff8be751b2 ___CFXNotificationPost_block_invoke + 50
2018-02-26T06:51:18.271Z - normal: Simulator: 44 CoreFoundation 0x00007fff8be33782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
2018-02-26T06:51:18.271Z - normal: Simulator: 45 CoreFoundation 0x00007fff8be3276b _CFXNotificationPost + 667
2018-02-26T06:51:18.271Z - normal: Simulator: 46 Foundation 0x00007fff8d874677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
2018-02-26T06:51:18.272Z - normal: Simulator: 47 AppKit 0x00007fff89a9974f -[NSApplication _postDidFinishNotification] + 297
2018-02-26T06:51:18.272Z - normal: Simulator: 48 AppKit 0x00007fff89a994b4 -[NSApplication _sendFinishLaunchingNotification] + 208
2018-02-26T06:51:18.272Z - normal: Simulator: 49 AppKit 0x00007fff8995c819 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 552
2018-02-26T06:51:18.272Z - normal: Simulator: 50 AppKit 0x00007fff8995c46b -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 661
2018-02-26T06:51:18.272Z - normal: Simulator: 51 Foundation 0x00007fff8d8bfafd -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290
2018-02-26T06:51:18.273Z - normal: Simulator: 52 Foundation 0x00007fff8d8bf977 _NSAppleEventManagerGenericHandler + 102
2018-02-26T06:51:18.273Z - normal: Simulator: 53 AE 0x00007fff8ccc3f26 _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 544
2018-02-26T06:51:18.273Z - normal: Simulator: 54 AE 0x00007fff8ccc3c9d ZL25dispatchEventAndSendReplyPK6AEDescPS + 39
2018-02-26T06:51:18.273Z - normal: Simulator: 55 AE 0x00007fff8ccc3ba9 aeProcessAppleEvent + 312
2018-02-26T06:51:18.273Z - normal: Simulator: 56 HIToolbox 0x00007fff8b3cfddf AEProcessAppleEvent + 55
2018-02-26T06:51:18.274Z - normal: Simulator: 57 AppKit 0x00007fff89957d1d _DPSNextEvent + 1833
2018-02-26T06:51:18.274Z - normal: Simulator: 58 AppKit 0x00007fff8a0d37ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
2018-02-26T06:51:18.274Z - normal: Simulator: 59 AppKit 0x00007fff8994c3db -[NSApplication run] + 926
2018-02-26T06:51:18.274Z - normal: Simulator: 60 AppKit 0x00007fff89916e0e NSApplicationMain + 1237
2018-02-26T06:51:18.274Z - normal: Simulator: 61 Simulator 0x0000000109baf892 main + 34
2018-02-26T06:51:18.274Z - normal: Simulator: 62 libdyld.dylib 0x00007fffa1a2c235 start + 1
2018-02-26T06:51:18.274Z - normal: Simulator: )

Process: Simulator [79644]
Path: /Users/USER/Documents/*/Simulator.app/Contents/MacOS/Simulator
Identifier: com.cocos.apps.simulator
Version: 20180226
Code Type: X86-64 (Native)
Parent Process: CocosCreator [79616]
Responsible: Simulator [79644]
User ID: 501

Date/Time: 2018-02-26 16:53:40.908 +0800
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: 99B9A5F4-D8A9-A6B5-0779-D9E152534C22

Time Awake Since Boot: 360000 seconds

System Integrity Protection: disabled

Crashed Thread: 31 WTF::AutomaticThread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

VM Regions Near 0:
–>
Kernel Alloc Once 000000000df67000-000000000df69000 [ 8K] rw-/rwx SM=PRV

Thread 0:: Dispatch queue: com.apple.main-thread
0 com.apple.JavaScriptCore 0x00007fff8e7b667e JSC::propertyNameEnumerator(JSC::ExecState*, JSC::JSObject*) + 286
1 ??? 0x00002afcdfb46855 0 + 47265573267541
2 ??? 0x00002afcdfcf9c3e 0 + 47265575050302
3 ??? 0x00002afcde3fd3dc 0 + 47265548850140
4 ??? 0x00002afcdfef5a49 0 + 47265577130569
5 com.apple.JavaScriptCore 0x00007fff8ec50d0b vmEntryToJavaScript + 299
6 com.apple.JavaScriptCore 0x00007fff8eb2b53e JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 158
7 com.apple.JavaScriptCore 0x00007fff8e34f4f9 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 505
8 com.apple.JavaScriptCore 0x00007fff8e7598a2 JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 178
9 com.apple.JavaScriptCore 0x00007fff8e34f1e4 JSObjectCallAsFunction + 788
10 com.cocos.apps.simulator 0x000000010e13bd66 se::Object::call(std::__1::vector<se::Value, std::__1::allocatorse::Value > const&, se::Object*, se::Value*) + 294
11 com.cocos.apps.simulator 0x000000010e6ccfd5 js_EventListenerCustom_create(se::State&)::_17::operator()(cocos2d::EventCustom*) const + 3733 12 com.cocos.apps.simulator 0x000000010e6cc130 void std::__1::__invoke_void_return_wrapper<void>::__call<js_EventListenerCustom_create(se::State&)::_17&, cocos2d::EventCustom*>(js_EventListenerCustom_create(se::State&)::_17&&&, cocos2d::EventCustom*&&) + 80 13 com.cocos.apps.simulator 0x000000010e6cbec9 std::__1::__function::__func<js_EventListenerCustom_create(se::State&)::_17, std::__1::allocator<js_EventListenerCustom_create(se::State&)::_17>, void (cocos2d::EventCustom*)>::operator()(cocos2d::EventCustom*&&) + 57 14 com.cocos.apps.simulator 0x000000010e987ba9 std::__1::function<void (cocos2d::EventCustom*)>::operator()(cocos2d::EventCustom*) const + 153 15 com.cocos.apps.simulator 0x000000010e987b01 cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0::operator()(cocos2d::Event*) const + 97
16 com.cocos.apps.simulator 0x000000010e987a90 void std::__1::__invoke_void_return_wrapper::__call<cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0&, cocos2d::Event*>(cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0&&&, cocos2d::Event*&&) + 80
17 com.cocos.apps.simulator 0x000000010e987939 std::__1::__function::__func<cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0, std::__1::allocator<cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0>, void (cocos2d::Event*)>::operator()(cocos2d::Event*&&) + 57
18 com.cocos.apps.simulator 0x000000010edeb0f9 std::__1::function<void (cocos2d::Event*)>::operator()(cocos2d::Event*) const + 153
19 com.cocos.apps.simulator 0x000000010edeb024 cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::_2::operator()(cocos2d::EventListener*) const + 84 20 com.cocos.apps.simulator 0x000000010edeafc0 bool std::__1::__invoke_void_return_wrapper<bool>::__call<cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::_2&, cocos2d::EventListener*>(cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::_2&&&, cocos2d::EventListener*&&) + 80 21 com.cocos.apps.simulator 0x000000010edeae59 std::__1::__function::__func<cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::_2, std::__1::allocatorcocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::$_2, bool (cocos2d::EventListener*)>::operator()(cocos2d::EventListener*&&) + 57
22 com.cocos.apps.simulator 0x000000010edcd7b9 std::__1::function<bool (cocos2d::EventListener*)>::operator()(cocos2d::EventListener*) const + 153
23 com.cocos.apps.simulator 0x000000010edcd624 cocos2d::EventDispatcher::dispatchEventToListeners(cocos2d::EventDispatcher::EventListenerVector*, std::__1::function<bool (cocos2d::EventListener*)> const&) + 1348
24 com.cocos.apps.simulator 0x000000010edcdc5c cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*) + 1164
25 com.cocos.apps.simulator 0x000000010eb357be cocos2d::Director::drawScene() + 94
26 com.cocos.apps.simulator 0x000000010eb3b0a0 cocos2d::Director::mainLoop() + 112
27 com.cocos.apps.simulator 0x000000010ef253ed cocos2d::Application::run() + 173
28 com.cocos.apps.simulator 0x000000010df5f2df -[AppController startup] + 2015 (SimulatorApp.mm:454)
29 com.cocos.apps.simulator 0x000000010df5a11d -[AppController applicationDidFinishLaunching:] + 413 (SimulatorApp.mm:145)
30 com.apple.CoreFoundation 0x00007fff8be7554c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
31 com.apple.CoreFoundation 0x00007fff8be7544b _CFXRegistrationPost + 427
32 com.apple.CoreFoundation 0x00007fff8be751b2 ___CFXNotificationPost_block_invoke + 50
33 com.apple.CoreFoundation 0x00007fff8be33782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
34 com.apple.CoreFoundation 0x00007fff8be3276b _CFXNotificationPost + 667
35 com.apple.Foundation 0x00007fff8d874677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
36 com.apple.AppKit 0x00007fff89a9974f -[NSApplication _postDidFinishNotification] + 297
37 com.apple.AppKit 0x00007fff89a994b4 -[NSApplication _sendFinishLaunchingNotification] + 208
38 com.apple.AppKit 0x00007fff8995c819 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 552
39 com.apple.AppKit 0x00007fff8995c46b -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 661
40 com.apple.Foundation 0x00007fff8d8bfafd -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290
41 com.apple.Foundation 0x00007fff8d8bf977 _NSAppleEventManagerGenericHandler + 102
42 com.apple.AE 0x00007fff8ccc3f26 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 544
43 com.apple.AE 0x00007fff8ccc3c9d dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 39
44 com.apple.AE 0x00007fff8ccc3ba9 aeProcessAppleEvent + 312
45 com.apple.HIToolbox 0x00007fff8b3cfddf AEProcessAppleEvent + 55
46 com.apple.AppKit 0x00007fff89957d1d _DPSNextEvent + 1833
47 com.apple.AppKit 0x00007fff8a0d37ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
48 com.apple.AppKit 0x00007fff8994c3db -[NSApplication run] + 926
49 com.apple.AppKit 0x00007fff89916e0e NSApplicationMain + 1237
50 com.cocos.apps.simulator 0x000000010df78892 main + 34 (main.m:6)
51 libdyld.dylib 0x00007fffa1a2c235 start + 1

Process: Simulator [83570]
Path: /Users/USER/Documents/*/Simulator.app/Contents/MacOS/Simulator
Identifier: com.cocos.apps.simulator
Version: 20180226
Code Type: X86-64 (Native)
Parent Process: CocosCreator [79616]
Responsible: Simulator [83570]
User ID: 501

Date/Time: 2018-02-26 21:35:54.147 +0800
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: 99B9A5F4-D8A9-A6B5-0779-D9E152534C22

Time Awake Since Boot: 380000 seconds

System Integrity Protection: disabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000005
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

VM Regions Near 0x5:
–>
Kernel Alloc Once 0000000001b81000-0000000001b83000 [ 8K] rw-/rwx SM=PRV

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.JavaScriptCore 0x00007fff8eb6e7bb JSC::JSCallbackObjectJSC::JSDestructibleObject::getOwnPropertySlot(JSC::JSObject*, JSC::ExecState*, JSC::PropertyName, JSC::PropertySlot&) + 1851
1 com.apple.JavaScriptCore 0x00007fff8e40b218 operationGetById + 2312
2 ??? 0x00004601a7690724 0 + 76972917589796
3 com.apple.JavaScriptCore 0x00007fff8ec50d0b vmEntryToJavaScript + 299
4 com.apple.JavaScriptCore 0x00007fff8eb2b53e JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 158
5 com.apple.JavaScriptCore 0x00007fff8e34f4f9 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 505
6 com.apple.JavaScriptCore 0x00007fff8e7598a2 JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 178
7 com.apple.JavaScriptCore 0x00007fff8e34f1e4 JSObjectCallAsFunction + 788
8 com.cocos.apps.simulator 0x0000000101d55dc6 se::Object::call(std::__1::vector<se::Value, std::__1::allocatorse::Value > const&, se::Object*, se::Value*) + 294
9 com.cocos.apps.simulator 0x0000000101d5b28c se::Object::detachObject(se::Object*) + 1692
10 com.cocos.apps.simulator 0x0000000101f38d9c ScriptingCore::releaseScriptObject(cocos2d::Ref*, cocos2d::Ref*) + 604
11 com.cocos.apps.simulator 0x000000010255276f cocos2d::Node::setGLProgramState(cocos2d::GLProgramState*) + 175
12 com.cocos.apps.simulator 0x00000001026225ae cocos2d::label::updateShaderProgram() + 1758
13 com.cocos.apps.simulator 0x0000000102622ac8 cocos2d::label::setTTFConfigInternal(cocos2d::_ttfConfig const&) + 216
14 com.cocos.apps.simulator 0x00000001026229d9 cocos2d::label::setTTFConfig(cocos2d::_ttfConfig const&) + 57
15 com.cocos.apps.simulator 0x0000000102628008 cocos2d::label::enableOutline(cocos2d::Color4B const&, int) + 424
16 com.cocos.apps.simulator 0x00000001020edf3b js_cocos2dx_Label_enableOutline(se::State&) + 603
17 com.cocos.apps.simulator 0x00000001020edb8c js_cocos2dx_Label_enableOutlineRegistry(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) + 332
18 com.apple.JavaScriptCore 0x00007fff8eb6d521 long long JSC::APICallbackFunction::callJSC::JSCallbackFunction(JSC::ExecState*) + 657
19 com.apple.JavaScriptCore 0x00007fff8eb410ce JSC::handleHostCall(JSC::ExecState*, JSC::JSValue, JSC::CallLinkInfo*) + 494
20 com.apple.JavaScriptCore 0x00007fff8e4055ff operationLinkCall + 271
21 ??? 0x00004601a5c02624 0 + 76972889744932
22 ??? 0x00004601a6783af5 0 + 76972901808885
23 com.apple.JavaScriptCore 0x00007fff8ec576e6 llint_entry + 26616
24 ??? 0x00004601a5fc0cf3 0 + 76972893670643
25 ??? 0x00004601a69883db 0 + 76972903924699
26 ??? 0x00004601a6d9a8fd 0 + 76972908194045
27 ??? 0x00004601a775c34f 0 + 76972918424399
28 ??? 0x00004601a6fc336f 0 + 76972910457711
29 ??? 0x00004601a5e2b14a 0 + 76972892008778
30 com.apple.JavaScriptCore 0x00007fff8ec57758 llint_entry + 26730
31 com.apple.JavaScriptCore 0x00007fff8ec57758 llint_entry + 26730
32 ??? 0x00004601a78253f1 0 + 76972919247857
33 ??? 0x00004601a6988415 0 + 76972903924757
34 ??? 0x00004601a6d9a8ca 0 + 76972908193994
35 com.apple.JavaScriptCore 0x00007fff8ec576e6 llint_entry + 26616
36 com.apple.JavaScriptCore 0x00007fff8ec576e6 llint_entry + 26616
37 com.apple.JavaScriptCore 0x00007fff8ec576e6 llint_entry + 26616
38 com.apple.JavaScriptCore 0x00007fff8ec57758 llint_entry + 26730
39 com.apple.JavaScriptCore 0x00007fff8ec57758 llint_entry + 26730
40 ??? 0x00004601a5f38f5c 0 + 76972893114204
41 ??? 0x00004601a7a8645c 0 + 76972921742428
42 ??? 0x00004601a5f4f4a8 0 + 76972893205672
43 ??? 0x00004601a5fa34cf 0 + 76972893549775
44 com.apple.JavaScriptCore 0x00007fff8ec50d0b vmEntryToJavaScript + 299
45 com.apple.JavaScriptCore 0x00007fff8eb2b53e JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 158
46 com.apple.JavaScriptCore 0x00007fff8e34f4f9 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 505
47 com.apple.JavaScriptCore 0x00007fff8e7598a2 JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 178
48 com.apple.JavaScriptCore 0x00007fff8e34f1e4 JSObjectCallAsFunction + 788
49 com.cocos.apps.simulator 0x0000000101d55dc6 se::Object::call(std::__1::vector<se::Value, std::__1::allocatorse::Value > const&, se::Object*, se::Value*) + 294
50 com.cocos.apps.simulator 0x00000001022e7055 js_EventListenerCustom_create(se::State&)::_17::operator()(cocos2d::EventCustom*) const + 3733 51 com.cocos.apps.simulator 0x00000001022e61b0 void std::__1::__invoke_void_return_wrapper<void>::__call<js_EventListenerCustom_create(se::State&)::_17&, cocos2d::EventCustom*>(js_EventListenerCustom_create(se::State&)::_17&&&, cocos2d::EventCustom*&&) + 80 52 com.cocos.apps.simulator 0x00000001022e5f49 std::__1::__function::__func<js_EventListenerCustom_create(se::State&)::_17, std::__1::allocator<js_EventListenerCustom_create(se::State&)::_17>, void (cocos2d::EventCustom*)>::operator()(cocos2d::EventCustom*&&) + 57 53 com.cocos.apps.simulator 0x00000001025a1c89 std::__1::function<void (cocos2d::EventCustom*)>::operator()(cocos2d::EventCustom*) const + 153 54 com.cocos.apps.simulator 0x00000001025a1be1 cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0::operator()(cocos2d::Event*) const + 97
55 com.cocos.apps.simulator 0x00000001025a1b70 void std::__1::__invoke_void_return_wrapper::__call<cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0&, cocos2d::Event*>(cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0&&&, cocos2d::Event*&&) + 80
56 com.cocos.apps.simulator 0x00000001025a1a19 std::__1::__function::__func<cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0, std::__1::allocator<cocos2d::EventListenerCustom::init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::function<void (cocos2d::EventCustom*)> const&)::_0>, void (cocos2d::Event*)>::operator()(cocos2d::Event*&&) + 57
57 com.cocos.apps.simulator 0x0000000102a051d9 std::__1::function<void (cocos2d::Event*)>::operator()(cocos2d::Event*) const + 153
58 com.cocos.apps.simulator 0x0000000102a05104 cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::_2::operator()(cocos2d::EventListener*) const + 84 59 com.cocos.apps.simulator 0x0000000102a050a0 bool std::__1::__invoke_void_return_wrapper<bool>::__call<cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::_2&, cocos2d::EventListener*>(cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::_2&&&, cocos2d::EventListener*&&) + 80 60 com.cocos.apps.simulator 0x0000000102a04f39 std::__1::__function::__func<cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::_2, std::__1::allocatorcocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)::$_2, bool (cocos2d::EventListener*)>::operator()(cocos2d::EventListener*&&) + 57
61 com.cocos.apps.simulator 0x00000001029e7899 std::__1::function<bool (cocos2d::EventListener*)>::operator()(cocos2d::EventListener*) const + 153
62 com.cocos.apps.simulator 0x00000001029e7704 cocos2d::EventDispatcher::dispatchEventToListeners(cocos2d::EventDispatcher::EventListenerVector*, std::__1::function<bool (cocos2d::EventListener*)> const&) + 1348
63 com.cocos.apps.simulator 0x00000001029e7d3c cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*) + 1164
64 com.cocos.apps.simulator 0x000000010274f89e cocos2d::Director::drawScene() + 94
65 com.cocos.apps.simulator 0x0000000102755180 cocos2d::Director::mainLoop() + 112
66 com.cocos.apps.simulator 0x0000000102b3f4cd cocos2d::Application::run() + 173
67 com.cocos.apps.simulator 0x0000000101b792df -[AppController startup] + 2015 (SimulatorApp.mm:454)
68 com.cocos.apps.simulator 0x0000000101b7411d -[AppController applicationDidFinishLaunching:] + 413 (SimulatorApp.mm:145)
69 com.apple.CoreFoundation 0x00007fff8be7554c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
70 com.apple.CoreFoundation 0x00007fff8be7544b _CFXRegistrationPost + 427
71 com.apple.CoreFoundation 0x00007fff8be751b2 ___CFXNotificationPost_block_invoke + 50
72 com.apple.CoreFoundation 0x00007fff8be33782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
73 com.apple.CoreFoundation 0x00007fff8be3276b _CFXNotificationPost + 667
74 com.apple.Foundation 0x00007fff8d874677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
75 com.apple.AppKit 0x00007fff89a9974f -[NSApplication _postDidFinishNotification] + 297
76 com.apple.AppKit 0x00007fff89a994b4 -[NSApplication _sendFinishLaunchingNotification] + 208
77 com.apple.AppKit 0x00007fff8995c819 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 552
78 com.apple.AppKit 0x00007fff8995c46b -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 661
79 com.apple.Foundation 0x00007fff8d8bfafd -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290
80 com.apple.Foundation 0x00007fff8d8bf977 _NSAppleEventManagerGenericHandler + 102
81 com.apple.AE 0x00007fff8ccc3f26 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 544
82 com.apple.AE 0x00007fff8ccc3c9d dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 39
83 com.apple.AE 0x00007fff8ccc3ba9 aeProcessAppleEvent + 312
84 com.apple.HIToolbox 0x00007fff8b3cfddf AEProcessAppleEvent + 55
85 com.apple.AppKit 0x00007fff89957d1d _DPSNextEvent + 1833
86 com.apple.AppKit 0x00007fff8a0d37ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
87 com.apple.AppKit 0x00007fff8994c3db -[NSApplication run] + 926
88 com.apple.AppKit 0x00007fff89916e0e NSApplicationMain + 1237
89 com.cocos.apps.simulator 0x0000000101b92892 main + 34 (main.m:6)
90 libdyld.dylib 0x00007fffa1a2c235 start + 1

Process: Simulator [86723]
Path: /Users/USER/Documents/*/Simulator.app/Contents/MacOS/Simulator
Identifier: com.cocos.apps.simulator
Version: lite v1.8.2 (20180226)
Code Type: X86-64 (Native)
Parent Process: CocosCreator [79616]
Responsible: Simulator [86723]
User ID: 501

Date/Time: 2018-02-26 23:55:00.215 +0800
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: 99B9A5F4-D8A9-A6B5-0779-D9E152534C22

Time Awake Since Boot: 390000 seconds

System Integrity Protection: disabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
Assertion failed: (isObject()), function toObject, file /Users/xjy/Documents/cocos2d-x-lite/cocos/scripting/js-bindings/jswrapper/Value.cpp, line 538.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffa1b5ad42 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffa1c48457 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffa1ac0420 abort + 129
3 libsystem_c.dylib 0x00007fffa1a87893 __assert_rtn + 320
4 com.cocos.apps.simulator 0x000000010672cc57 se::Value::toObject() const + 71
5 com.cocos.apps.simulator 0x000000010679b695 js_cocos2dx_spine_SkeletonAnimation_setStartListener(se::State&) + 565
6 com.cocos.apps.simulator 0x000000010679b30c js_cocos2dx_spine_SkeletonAnimation_setStartListenerRegistry(OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) + 332
7 com.apple.JavaScriptCore 0x00007fff8eb6d521 long long JSC::APICallbackFunction::callJSC::JSCallbackFunction(JSC::ExecState*) + 657
8 com.apple.JavaScriptCore 0x00007fff8eb410ce JSC::handleHostCall(JSC::ExecState*, JSC::JSValue, JSC::CallLinkInfo*) + 494
9 com.apple.JavaScriptCore 0x00007fff8e4055ff operationLinkCall + 271
10 ??? 0x0000207b78e02624 0 + 35714681021988
11 ??? 0x0000207b7a822736 0 + 35714708416310
12 ??? 0x0000207b7ab09a5b 0 + 35714711460443
13 ??? 0x0000207b7a7f1977 0 + 35714708216183
14 ??? 0x0000207b7a7ef01b 0 + 35714708205595
15 ??? 0x0000207b78fbfa43 0 + 35714682845763
16 ??? 0x0000207b7ae96971 0 + 35714715183473
17 ??? 0x0000207b7903f1c8 0 + 35714683367880
18 com.apple.JavaScriptCore 0x00007fff8ec576e6 llint_entry + 26616
19 ??? 0x0000207b7ab4125e 0 + 35714711687774
20 ??? 0x0000207b7aed1825 0 + 35714715424805
21 com.apple.JavaScriptCore 0x00007fff8ec576e6 llint_entry + 26616
22 ??? 0x0000207b7a1c3b8f 0 + 35714701736847
23 com.apple.JavaScriptCore 0x00007fff8ec50d0b vmEntryToJavaScript + 299
24 com.apple.JavaScriptCore 0x00007fff8eb2b53e JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 158
25 com.apple.JavaScriptCore 0x00007fff8e34f4f9 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 505
26 com.apple.JavaScriptCore 0x00007fff8e7598a2 JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 178
27 com.apple.JavaScriptCore 0x00007fff8e34f1e4 JSObjectCallAsFunction + 788
28 com.cocos.apps.simulator 0x000000010666cdc6 se::Object::call(std::__1::vector<se::Value, std::__1::allocatorse::Value > const&, se::Object*, se::Value*) + 294
29 com.cocos.apps.simulator 0x0000000106c0926f js_cocos2dx_CallFunc_init(cocos2d::CallFuncN*, se::Object*, std::__1::vector<se::Value, std::__1::allocatorse::Value > const&)::_18::operator()(cocos2d::Node*) const + 1663 30 com.cocos.apps.simulator 0x0000000106c08be0 void std::__1::__invoke_void_return_wrapper<void>::__call<js_cocos2dx_CallFunc_init(cocos2d::CallFuncN*, se::Object*, std::__1::vector<se::Value, std::__1::allocator<se::Value> > const&)::_18&, cocos2d::Node*>(js_cocos2dx_CallFunc_init(cocos2d::CallFuncN*, se::Object*, std::__1::vector<se::Value, std::__1::allocatorse::Value > const&)::_18&&&, cocos2d::Node*&&) + 80 31 com.cocos.apps.simulator 0x0000000106c08829 std::__1::__function::__func<js_cocos2dx_CallFunc_init(cocos2d::CallFuncN*, se::Object*, std::__1::vector<se::Value, std::__1::allocator<se::Value> > const&)::_18, std::__1::allocator<js_cocos2dx_CallFunc_init(cocos2d::CallFuncN*, se::Object*, std::__1::vector<se::Value, std::__1::allocatorse::Value > const&)::$_18>, void (cocos2d::Node*)>::operator()(cocos2d::Node*&&) + 57
32 com.cocos.apps.simulator 0x0000000106de4309 std::__1::function<void (cocos2d::Node*)>::operator()(cocos2d::Node*) const + 153
33 com.cocos.apps.simulator 0x0000000106de4266 cocos2d::CallFuncN::execute() + 70
34 com.cocos.apps.simulator 0x0000000106de404b cocos2d::CallFunc::update(float) + 27
35 com.cocos.apps.simulator 0x0000000106de8393 cocos2d::Sequence::update(float) + 723
36 com.cocos.apps.simulator 0x0000000106de711d cocos2d::ActionInterval::step(float) + 301
37 com.cocos.apps.simulator 0x0000000106dfdcc1 cocos2d::ActionManager::update(float) + 209
38 com.cocos.apps.simulator 0x000000010706e6e2 void cocos2d::Scheduler::scheduleUpdatecocos2d::ActionManager(cocos2d::ActionManager*, int, bool)::‘lambda’(float)::operator()(float) const + 34
39 com.cocos.apps.simulator 0x000000010706e6b1 void std::__1::__invoke_void_return_wrapper::__call<void cocos2d::Scheduler::scheduleUpdatecocos2d::ActionManager(cocos2d::ActionManager*, int, bool)::‘lambda’(float)&, float>(void cocos2d::Scheduler::scheduleUpdatecocos2d::ActionManager(cocos2d::ActionManager*, int, bool)::‘lambda’(float)&&&, float&&) + 81
40 com.cocos.apps.simulator 0x000000010706e5a9 std::__1::__function::__func<void cocos2d::Scheduler::scheduleUpdatecocos2d::ActionManager(cocos2d::ActionManager*, int, bool)::‘lambda’(float), std::__1::allocator<void cocos2d::Scheduler::scheduleUpdatecocos2d::ActionManager(cocos2d::ActionManager*, int, bool)::‘lambda’(float)>, void (float)>::operator()(float&&) + 57
41 com.cocos.apps.simulator 0x0000000106df24ca std::__1::function<void (float)>::operator()(float) const + 154
42 com.cocos.apps.simulator 0x00000001073db72e cocos2d::Scheduler::update(float) + 254
43 com.cocos.apps.simulator 0x0000000107065970 cocos2d::Director::drawScene() + 112
44 com.cocos.apps.simulator 0x000000010706b240 cocos2d::Director::mainLoop() + 112
45 com.cocos.apps.simulator 0x0000000107455c5d cocos2d::Application::run() + 173
46 com.cocos.apps.simulator 0x00000001064902df -[AppController startup] + 2015 (SimulatorApp.mm:454)
47 com.cocos.apps.simulator 0x000000010648b11d -[AppController applicationDidFinishLaunching:] + 413 (SimulatorApp.mm:145)
48 com.apple.CoreFoundation 0x00007fff8be7554c CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
49 com.apple.CoreFoundation 0x00007fff8be7544b _CFXRegistrationPost + 427
50 com.apple.CoreFoundation 0x00007fff8be751b2 ___CFXNotificationPost_block_invoke + 50
51 com.apple.CoreFoundation 0x00007fff8be33782 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
52 com.apple.CoreFoundation 0x00007fff8be3276b _CFXNotificationPost + 667
53 com.apple.Foundation 0x00007fff8d874677 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
54 com.apple.AppKit 0x00007fff89a9974f -[NSApplication _postDidFinishNotification] + 297
55 com.apple.AppKit 0x00007fff89a994b4 -[NSApplication _sendFinishLaunchingNotification] + 208
56 com.apple.AppKit 0x00007fff8995c819 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 552
57 com.apple.AppKit 0x00007fff8995c46b -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 661
58 com.apple.Foundation 0x00007fff8d8bfafd -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 290
59 com.apple.Foundation 0x00007fff8d8bf977 _NSAppleEventManagerGenericHandler + 102
60 com.apple.AE 0x00007fff8ccc3f26 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 544
61 com.apple.AE 0x00007fff8ccc3c9d dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 39
62 com.apple.AE 0x00007fff8ccc3ba9 aeProcessAppleEvent + 312
63 com.apple.HIToolbox 0x00007fff8b3cfddf AEProcessAppleEvent + 55
64 com.apple.AppKit 0x00007fff89957d1d _DPSNextEvent + 1833
65 com.apple.AppKit 0x00007fff8a0d37ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
66 com.apple.AppKit 0x00007fff8994c3db -[NSApplication run] + 926
67 com.apple.AppKit 0x00007fff89916e0e NSApplicationMain + 1237
68 com.cocos.apps.simulator 0x00000001064a9892 main + 34 (main.m:6)
69 libdyld.dylib 0x00007fffa1a2c235 start + 1

上面是几种我收集的崩溃日志, 你们可以看看是否有帮助,不过是1.8.2之前收集的, 但估计是有目前依然还存在的问题

这些崩溃,有集中在特定的 iOS 操作系统吗?出现概率大概多大?一般是运行游戏多久出现?

这些都是我在mac模拟器上保留的截图日志, 有一种之前比较频繁的是切换scene的时候,大概10分钟内就会出现
1.8.2的版本, 我们再进一步测试一下吧, 目前的反馈是已经有大幅度改善了。只是偶尔还有问题。
之后有信息我会再详细反馈, 感谢关注

1赞

这个物理引擎的问题到现在1.9都还没解决啊,,并且按楼主的方法改了好像也是一样的问题

这creator商用之路还远哦

该问题请参考:
http://forum.cocos.com/t/undefined-is-not-an-object-evaluating-colliderb-body/60184/12