iOS启动,引擎概率性crash

  • Creator 版本:1.93

  • 目标平台: iOS

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000000000000e
VM Region Info: 0xe is not in any region.  Bytes before following region: 4337090546
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                 000000010282c000-0000000102830000 [   16K] r-x/r-x SM=COW  ...11.app/hilo11

Triggered by Thread:  0

Thread 0 name:
Thread 0 Crashed:
0   JavaScriptCore                	0x00000001ee61680c llint_slow_path_jfalse + 356 (StructureIDBlob.h:58)
1   JavaScriptCore                	0x00000001ee6166e4 llint_slow_path_jfalse + 60 (LLIntSlowPaths.cpp:1180)
2   JavaScriptCore                	0x00000001edf08240 llint_entry + 26144
3   JavaScriptCore                	0x00000001edf01a1c vmEntryToJavaScript + 300
4   JavaScriptCore                	0x00000001ee5793f0 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 424 (JITCodeInlines.h:38)
5   JavaScriptCore                	0x00000001ee730068 JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 172 (CallData.cpp:41)
6   JavaScriptCore                	0x00000001edf37284 JSObjectCallAsFunction + 368 (JSObjectRef.cpp:620)
7   hello                        	0x00000001029273e8 se::Object::call+ 1029096 (std::__1::vector<se::Value, std::__1::allocator<se::Value> > const&, se::Object*, se::Value*) + 152
8   hello                        	0x0000000102928e1c se::Object::attachObject+ 1035804 (se::Object*) + 308
9   hello                        	0x000000010292dd7c js_EventListenerCustom_createRegistry+ 1056124 (OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) + 576
10  JavaScriptCore                	0x00000001edf2b0a8 long long JSC::APICallbackFunction::call<JSC::JSCallbackFunction>(JSC::ExecState*) + 348 (APICallbackFunction.h:63)
11  JavaScriptCore                	0x00000001edf09cd8 llint_entry + 32952
12  JavaScriptCore                	0x00000001edf090cc llint_entry + 29868
13  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
14  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
15  JavaScriptCore                	0x00000001edf090cc llint_entry + 29868
16  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
17  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
18  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
19  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
20  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
21  JavaScriptCore                	0x00000001edf01a1c vmEntryToJavaScript + 300
22  JavaScriptCore                	0x00000001ee577fe4 JSC::Interpreter::executeProgram(JSC::SourceCode const&, JSC::ExecState*, JSC::JSObject*) + 9620 (JITCodeInlines.h:38)
23  JavaScriptCore                	0x00000001ee753218 JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&) + 316 (Completion.cpp:103)
24  JavaScriptCore                	0x00000001edf2a634 JSEvaluateScript + 472 (JSBase.cpp:69)
25  hello                        	0x0000000102b11744 se::ScriptEngine::evalString+ 3036996 (char const*, long, se::Value*, char const*) + 680
26  hello                        	0x0000000102b119a4 se::ScriptEngine::runScript+ 3037604 (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, se::Value*) + 112
27  hello                        	0x0000000102b13b24 jsb_run_script+ 3046180 (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 44
28  hello                        	0x0000000102b151c8 (anonymous namespace)::requireRegistry+ 3051976 (OpaqueJSContext const*, OpaqueJSValue*, OpaqueJSValue*, unsigned long, OpaqueJSValue const* const*, OpaqueJSValue const**) + 136
29  JavaScriptCore                	0x00000001edf2b0a8 long long JSC::APICallbackFunction::call<JSC::JSCallbackFunction>(JSC::ExecState*) + 348 (APICallbackFunction.h:63)
30  JavaScriptCore                	0x00000001edf09cd8 llint_entry + 32952
31  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
32  JavaScriptCore                	0x00000001edf09134 llint_entry + 29972
33  JavaScriptCore                	0x00000001edf01a1c vmEntryToJavaScript + 300
34  JavaScriptCore                	0x00000001ee577fe4 JSC::Interpreter::executeProgram(JSC::SourceCode const&, JSC::ExecState*, JSC::JSObject*) + 9620 (JITCodeInlines.h:38)
35  JavaScriptCore                	0x00000001ee753218 JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&) + 316 (Completion.cpp:103)
36  JavaScriptCore                	0x00000001edf2a634 JSEvaluateScript + 472 (JSBase.cpp:69)
37  hello                        	0x0000000102b11744 se::ScriptEngine::evalString+ 3036996 (char const*, long, se::Value*, char const*) + 680
38  hello                        	0x0000000102b119a4 se::ScriptEngine::runScript+ 3037604 (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, se::Value*) + 112
39  hello                        	0x0000000102b13b24 jsb_run_script+ 3046180 (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 44
40  hello                        	0x000000010287a120 AppDelegate::applicationDidFinishLaunching() + 319776 (AppDelegate.cpp:114)
41  hello                        	0x0000000102b2c0fc cocos2d::Application::run+ 3145980 () + 20
42  hello                        	0x0000000102890660 -[AppController application:didFinishLaunchingWithOptions:] + 411232 (AppController.mm:92)
43  UIKitCore                     	0x0000000213b47c68 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 412 (UIApplication.m:2003)
44  UIKitCore                     	0x0000000213b493d0 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3340 (UIApplication.m:2387)
45  UIKitCore                     	0x0000000213b4ee1c -[UIApplication _runWithMainScene:transitionContext:completion:] + 1552 (UIApplication.m:3802)
46  UIKitCore                     	0x00000002133efc18 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 784 (_UICanvasLifecycleMonitor.m:174)
47  UIKitCore                     	0x00000002133f86f0 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160 (_UICanvas.m:773)
48  UIKitCore                     	0x00000002133ef894 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240 (_UICanvasLifecycleMonitor.m:152)
49  UIKitCore                     	0x00000002133f0234 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1076 (_UICanvasLifecycleMonitor.m:229)
50  UIKitCore                     	0x00000002133ee334 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 772 (_UIApplicationCanvas.m:0)
51  UIKitCore                     	0x00000002133edfe0 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432 (_UIApplicationCanvas.m:158)
52  UIKitCore                     	0x00000002133f31a0 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220 (_UICanvasLifecycleSettingsDiffAction.m:156)
53  UIKitCore                     	0x00000002133f4100 _performActionsWithDelayForTransitionContext + 112 (_UICanvasSettingsDiffAction.m:34)
54  UIKitCore                     	0x00000002133f3058 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248 (_UICanvasLifecycleSettingsDiffAction.m:130)
55  UIKitCore                     	0x00000002133f7d9c -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368 (_UICanvas.m:699)
56  UIKitCore                     	0x0000000213b4d314 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540 (UIApplication.m:3366)
57  UIKitCore                     	0x0000000213738c34 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364 (UIApplicationSceneClientAgent.m:41)
58  FrontBoardServices            	0x00000001e9633890 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 444 (FBSSceneImpl.m:442)
59  FrontBoardServices            	0x00000001e963e658 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 260 (FBSWorkspace.m:558)
60  FrontBoardServices            	0x00000001e963dd50 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 64 (FBSWorkspace.m:501)
61  libdispatch.dylib             	0x00000001e663c484 _dispatch_client_callout + 16 (object.m:511)
62  libdispatch.dylib             	0x00000001e66133f0 _dispatch_block_invoke_direct$VARIANT$armv81 + 216 (queue.c:459)
63  FrontBoardServices            	0x00000001e9672640 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40 (FBSSerialQueue.m:156)
64  FrontBoardServices            	0x00000001e96722cc -[FBSSerialQueue _performNext] + 416 (FBSSerialQueue.m:188)
65  FrontBoardServices            	0x00000001e96728e8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56 (FBSSerialQueue.m:222)
66  CoreFoundation                	0x00000001e6b925b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1980)
67  CoreFoundation                	0x00000001e6b92538 __CFRunLoopDoSource0 + 88 (CFRunLoop.c:2015)
68  CoreFoundation                	0x00000001e6b91e1c __CFRunLoopDoSources0 + 176 (CFRunLoop.c:2051)
69  CoreFoundation                	0x00000001e6b8cce8 __CFRunLoopRun + 1040 (CFRunLoop.c:2922)
70  CoreFoundation                	0x00000001e6b8c5b8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
71  GraphicsServices              	0x00000001e8e00584 GSEventRunModal + 100 (GSEvent.c:2245)
72  UIKitCore                     	0x0000000213b50bc8 UIApplicationMain + 212 (UIApplication.m:4341)
73  hello                        	0x000000010287a404 main + 320516 (main.m:8)
74  libdyld.dylib                 	0x00000001e664cb94 start + 4


  • 出现概率:3%

  • 额外线索:启动应用后1~2秒崩溃

楼主解决了吗?我现在也是遇到这个问题。iphonex概率更高

概率写错了. 是 0.3%

没有解决. cocs

这个 crash 已经从 17 年存在至今, 没有看到解决的希望
https://github.com/cocos-creator/cocos2d-x-lite/issues/1044

这也是我不升级creator的原因。老的问题不修复,就一直去做新的东西,没有安全感。我测试,iphonex 11.x的系统,某些情况下,crash的概率有30%。

但是只有release下crash。debug没问题。