Crash on crashlytics: cocos2d::Renderer::drawBatchedTriangles()

Hi all,
I use cocos v3.14.1 and 3.15.1 and received 12k crashs from 7000 user. I don’t know what to do.
please help me solved it. :sob::sob::sob:

and this is report of Fabric analytics

Crashlytics

Platform: ios

Version: N/A

Issue #: 527

Date: 2017-08-21T03:26:00Z

OS Version: 10.3.3 (14G60)

Device: iPad Pro (9.7 inch)

RAM Free: 3.5%

Disk Free: 45.1%

#0. Crashed: com.apple.main-thread
0 libsystem_platform.dylib 0x187b9ce30 _platform_memmove + 208
1 WoodyPuzzle-mobile 0x1002984dc cocos2d::Renderer::drawBatchedTriangles() + 4297721052
2 WoodyPuzzle-mobile 0x1002984dc cocos2d::Renderer::drawBatchedTriangles() + 4297721052
3 WoodyPuzzle-mobile 0x1002986e4 cocos2d::Renderer::flush() + 4297721572
4 WoodyPuzzle-mobile 0x100298110 cocos2d::Renderer::processRenderCommand(cocos2d::RenderCommand*) + 4297720080
5 WoodyPuzzle-mobile 0x1002989e0 cocos2d::Renderer::visitRenderQueue(cocos2d::RenderQueue&) + 4297722336
6 WoodyPuzzle-mobile 0x100298b48 cocos2d::Renderer::render() + 4297722696
7 WoodyPuzzle-mobile 0x10026dd74 cocos2d::Scene::render(cocos2d::Renderer*, cocos2d::Mat4 const*, cocos2d::Mat4 const*, unsigned int) + 4297547124
8 WoodyPuzzle-mobile 0x10021d0b8 cocos2d::Director::drawScene() + 4297216184
9 WoodyPuzzle-mobile 0x1002b8850 -[CCEAGLView layoutSubviews] + 4297853008
10 UIKit 0x18ec0acc0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1200
11 QuartzCore 0x18bdfb274 -[CALayer layoutSublayers] + 148
12 QuartzCore 0x18bdefde8 CA::Layer::layout_if_needed(CA::Transaction*) + 292
13 QuartzCore 0x18bdefca8 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
14 QuartzCore 0x18bd6b34c CA::Context::commit_transaction(CA::Transaction*) + 252
15 QuartzCore 0x18bd923ac CA::Transaction::commit() + 504
16 UIKit 0x18ec00308 _afterCACommitHandler + 256
17 CoreFoundation 0x188a909a8 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32
18 CoreFoundation 0x188a8e630 __CFRunLoopDoObservers + 372
19 CoreFoundation 0x188a8ea7c __CFRunLoopRun + 956
20 CoreFoundation 0x1889beda4 CFRunLoopRunSpecific + 424
21 GraphicsServices 0x18a429074 GSEventRunModal + 100
22 UIKit 0x18ec72c9c UIApplicationMain + 208
23 WoodyPuzzle-mobile 0x1000c4c5c main (main.m:5)
24 libdyld.dylib 0x1879cd59c start + 4

#0. Crashed: com.apple.main-thread
0 libsystem_platform.dylib 0x187b9ce30 _platform_memmove + 208
1 WoodyPuzzle-mobile 0x1002984dc cocos2d::Renderer::drawBatchedTriangles() + 4297721052
2 WoodyPuzzle-mobile 0x1002984dc cocos2d::Renderer::drawBatchedTriangles() + 4297721052
3 WoodyPuzzle-mobile 0x1002986e4 cocos2d::Renderer::flush() + 4297721572
4 WoodyPuzzle-mobile 0x100298110 cocos2d::Renderer::processRenderCommand(cocos2d::RenderCommand*) + 4297720080
5 WoodyPuzzle-mobile 0x1002989e0 cocos2d::Renderer::visitRenderQueue(cocos2d::RenderQueue&) + 4297722336
6 WoodyPuzzle-mobile 0x100298b48 cocos2d::Renderer::render() + 4297722696
7 WoodyPuzzle-mobile 0x10026dd74 cocos2d::Scene::render(cocos2d::Renderer*, cocos2d::Mat4 const*, cocos2d::Mat4 const*, unsigned int) + 4297547124
8 WoodyPuzzle-mobile 0x10021d0b8 cocos2d::Director::drawScene() + 4297216184
9 WoodyPuzzle-mobile 0x1002b8850 -[CCEAGLView layoutSubviews] + 4297853008
10 UIKit 0x18ec0acc0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1200
11 QuartzCore 0x18bdfb274 -[CALayer layoutSublayers] + 148
12 QuartzCore 0x18bdefde8 CA::Layer::layout_if_needed(CA::Transaction*) + 292
13 QuartzCore 0x18bdefca8 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
14 QuartzCore 0x18bd6b34c CA::Context::commit_transaction(CA::Transaction*) + 252
15 QuartzCore 0x18bd923ac CA::Transaction::commit() + 504
16 UIKit 0x18ec00308 _afterCACommitHandler + 256
17 CoreFoundation 0x188a909a8 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32
18 CoreFoundation 0x188a8e630 __CFRunLoopDoObservers + 372
19 CoreFoundation 0x188a8ea7c __CFRunLoopRun + 956
20 CoreFoundation 0x1889beda4 CFRunLoopRunSpecific + 424
21 GraphicsServices 0x18a429074 GSEventRunModal + 100
22 UIKit 0x18ec72c9c UIApplicationMain + 208
23 WoodyPuzzle-mobile 0x1000c4c5c main (main.m:5)
24 libdyld.dylib 0x1879cd59c start + 4

#1. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x187abf224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x187abf09c mach_msg + 72
2 CoreFoundation 0x188a90e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x188a8eae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x1889beda4 CFRunLoopRunSpecific + 424
5 Foundation 0x1894d9db4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x1894fab84 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x18f5fc830 -[UIEventFetcher threadMain] + 136
8 Foundation 0x1895d7318 NSThread__start + 996
9 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
10 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
11 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#2. AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x187abf224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x187abf09c mach_msg + 72
2 CoreFoundation 0x188a90e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x188a8eae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x1889beda4 CFRunLoopRunSpecific + 424
5 AVFAudio 0x1a263a4f4 GenericRunLoopThread::Entry(void*) + 164
6 AVFAudio 0x1a2660814 CAPThread::Entry(CAPThread*) + 84
7 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
8 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
9 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#3. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x187abf224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x187abf09c mach_msg + 72
2 CoreFoundation 0x188a90e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x188a8eae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x1889beda4 CFRunLoopRunSpecific + 424
5 CFNetwork 0x1891cbdf4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6 Foundation 0x1895d7318 NSThread__start + 996
7 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
8 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
9 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#4. AURemoteIO::IOThread
0 libsystem_kernel.dylib 0x187abf224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x187abf09c mach_msg + 72
2 AudioToolbox 0x18b932d70 AURemoteIO::IOThread::Run() + 280
3 AudioToolbox 0x18b936fcc AURemoteIO::IOThread::Entry(void*) + 40
4 AudioToolbox 0x18bc174c8 CAPThread::Entry(CAPThread*) + 84
5 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
6 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
7 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#5. Thread
0 libsystem_kernel.dylib 0x187adce1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x187ba4814 _pthread_cond_wait + 640
2 libc++.1.dylib 0x1874cdac8 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 56
3 WoodyPuzzle-mobile 0x1002bb608 cocos2d::experimental::AudioEngine::AudioEngineThreadPool::threadFunc() + 4297864712
4 WoodyPuzzle-mobile 0x1002bba78 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (cocos2d::experimental::AudioEngine::AudioEngineThreadPool::)(), cocos2d::experimental::AudioEngine::AudioEngineThreadPool> > >(void*) + 4297865848
5 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
6 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
7 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#6. Thread
0 libsystem_kernel.dylib 0x187adce1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x187ba4814 _pthread_cond_wait + 640
2 libc++.1.dylib 0x1874cdac8 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 56
3 WoodyPuzzle-mobile 0x1002bb608 cocos2d::experimental::AudioEngine::AudioEngineThreadPool::threadFunc() + 4297864712
4 WoodyPuzzle-mobile 0x1002bba78 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (cocos2d::experimental::AudioEngine::AudioEngineThreadPool::)(), cocos2d::experimental::AudioEngine::AudioEngineThreadPool> > >(void*) + 4297865848
5 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
6 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
7 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#7. Thread
0 libsystem_kernel.dylib 0x187adce1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x187ba4814 _pthread_cond_wait + 640
2 libc++.1.dylib 0x1874cdac8 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 56
3 WoodyPuzzle-mobile 0x1002bb608 cocos2d::experimental::AudioEngine::AudioEngineThreadPool::threadFunc() + 4297864712
4 WoodyPuzzle-mobile 0x1002bba78 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (cocos2d::experimental::AudioEngine::AudioEngineThreadPool::)(), cocos2d::experimental::AudioEngine::AudioEngineThreadPool> > >(void*) + 4297865848
5 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
6 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
7 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#8. Thread
0 libsystem_kernel.dylib 0x187adce1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x187ba4814 _pthread_cond_wait + 640
2 libc++.1.dylib 0x1874cdac8 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 56
3 WoodyPuzzle-mobile 0x1002bb608 cocos2d::experimental::AudioEngine::AudioEngineThreadPool::threadFunc() + 4297864712
4 WoodyPuzzle-mobile 0x1002bba78 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (cocos2d::experimental::AudioEngine::AudioEngineThreadPool::)(), cocos2d::experimental::AudioEngine::AudioEngineThreadPool> > >(void*) + 4297865848
5 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
6 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
7 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#9. com.twitter.crashlytics.ios.MachExceptionServer
0 WoodyPuzzle-mobile 0x1006705a0 CLSProcessRecordAllThreads + 4301751712
1 WoodyPuzzle-mobile 0x1006705a0 CLSProcessRecordAllThreads + 4301751712
2 WoodyPuzzle-mobile 0x10067045c CLSProcessRecordAllThreads + 4301751388
3 WoodyPuzzle-mobile 0x1006605d0 CLSHandler + 4301686224
4 WoodyPuzzle-mobile 0x10065b574 CLSMachExceptionServer + 4301665652
5 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
6 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
7 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#10. Thread
0 libsystem_kernel.dylib 0x187adce1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x187ba4814 _pthread_cond_wait + 640
2 libc++.1.dylib 0x1874cdac8 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 56
3 JavaScriptCore 0x18d36bf08 void std::__1::condition_variable_any::wait<std::__1::unique_lockbmalloc::Mutex >(std::__1::unique_lockbmalloc::Mutex&) + 112
4 JavaScriptCore 0x18d36be7c bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::)()>::threadRunLoop() + 168
5 JavaScriptCore 0x18d36bd5c std::__1::__shared_ptr_emplace<std::__1::mutex, std::__1::allocatorstd::__1::mutex >::~__shared_ptr_emplace() + 34
6 JavaScriptCore 0x18d36c00c void
std::__1::__thread_proxy<std::__1::tuple<void ()(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::)()>), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::)()>> >(void) + 92
7 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
8 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
9 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#11. WebThread
0 libsystem_kernel.dylib 0x187adce64 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x187ba8b8c _pthread_mutex_lock_wait + 96
2 libsystem_pthread.dylib 0x187ba8d94 _pthread_mutex_lock_slow + 300
3 WebCore 0x18d68c330 _WebTryThreadLock(bool) + 128
4 WebCore 0x18d69f944 SendDelegateMessage(NSInvocation*) + 760
5 WebKitLegacy 0x18e90c510 CallDelegate(void ()(), WebView, objc_object*, objc_selector*, objc_object*, objc_object*) + 124
6 WebKitLegacy 0x18e867f20 WebFrameLoaderClient::assignIdentifierToInitialRequest(unsigned long, WebCore::DocumentLoader*, WebCore::ResourceRequest const&) + 244
7 WebCore 0x18e3b1468 WebCore::ResourceLoader::willSendRequestInternal(WebCore::ResourceRequest&, WebCore::ResourceResponse const&) + 512
8 WebCore 0x18e4d1bb0 WebCore::SubresourceLoader::willSendRequestInternal(WebCore::ResourceRequest&, WebCore::ResourceResponse const&) + 252
9 WebCore 0x18d662040 WebCore::ResourceLoader::init(WebCore::ResourceRequest const&) + 288
10 WebCore 0x18d661dec WebCore::SubresourceLoader::startLoading() + 36
11 WebKitLegacy 0x18e9473b0 WebResourceLoadScheduler::servePendingRequests(WebResourceLoadScheduler::HostInformation*, WebCore::ResourceLoadPriority) + 472
12 WebKitLegacy 0x18e946edc WebResourceLoadScheduler::loadResource(WebCore::Frame&, WebCore::CachedResource&, WebCore::ResourceRequest const&, WebCore::ResourceLoaderOptions const&) + 64
13 WebCore 0x18d846bb4 WebCore::CachedResource::load(WebCore::CachedResourceLoader&) + 1632
14 WebCore 0x18d849ca4 WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&&, WebCore::CachedResourceLoader::ForPreload, WebCore::CachedResourceLoader::DeferOption) + 3072
15 WebCore 0x18d84a300 WebCore::CachedResourceLoader::requestRawResource(WebCore::CachedResourceRequest&&) + 48
16 WebCore 0x18d9f802c WebCore::DocumentThreadableLoader::loadRequest(WebCore::ResourceRequest&&, WebCore::SecurityCheckPolicy) + 944
17 WebCore 0x18d9f8864 WebCore::DocumentThreadableLoader::makeSimpleCrossOriginAccessRequest(WebCore::ResourceRequest&&) + 180
18 WebCore 0x18d9f7aa8 WebCore::DocumentThreadableLoader::DocumentThreadableLoader(WebCore::Document&, WebCore::ThreadableLoaderClient&, WebCore::DocumentThreadableLoader::BlockingBehavior, WebCore::ResourceRequest&&, WebCore::ThreadableLoaderOptions const&, WTF::RefPtrWebCore::SecurityOrigin&&, std::__1::unique_ptr<WebCore::ContentSecurityPolicy, std::__1::default_deleteWebCore::ContentSecurityPolicy >&&, WTF::String&&, WebCore::DocumentThreadableLoader::ShouldLogError) + 708
19 WebCore 0x18d9f76c8 WebCore::DocumentThreadableLoader::create(WebCore::Document&, WebCore::ThreadableLoaderClient&, WebCore::ResourceRequest&&, WebCore::ThreadableLoaderOptions const&, WTF::String&&) + 104
20 WebCore 0x18e5a3468 WebCore::ThreadableLoader::create(WebCore::ScriptExecutionContext&, WebCore::ThreadableLoaderClient&, WebCore::ResourceRequest&&, WebCore::ThreadableLoaderOptions const&, WTF::String&&) + 172
21 WebCore 0x18e6d00f8 WebCore::XMLHttpRequest::createRequest() + 976
22 WebCore 0x18e6d05ec WebCore::XMLHttpRequest::send(WTF::String const&) + 792
23 WebCore 0x18e131f10 WebCore::JSXMLHttpRequest::send(JSC::ExecState&) + 792
24 WebCore 0x18d78c394 WebCore::jsXMLHttpRequestPrototypeFunctionSend(JSC::ExecState*) + 172
25 JavaScriptCore 0x18d17ff9c llint_entry + 28940
26 JavaScriptCore 0x18d17f56c llint_entry + 26332
27 JavaScriptCore 0x18d17f56c llint_entry + 26332
28 JavaScriptCore 0x18d17f5d0 llint_entry + 26432
29 JavaScriptCore 0x18d17f5d0 llint_entry + 26432
30 JavaScriptCore 0x18d17f5d0 llint_entry + 26432
31 JavaScriptCore 0x18d17f5d0 llint_entry + 26432
32 JavaScriptCore 0x18d178cc8 vmEntryToJavaScript + 264
33 JavaScriptCore 0x18d062710 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 164
34 JavaScriptCore 0x18c9ef610 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 416
35 JavaScriptCore 0x18d096a4c JSC::boundThisNoArgsFunctionCall(JSC::ExecState*) + 476
36 JavaScriptCore 0x18d178e10 vmEntryToNative + 272
37 JavaScriptCore 0x18c9ef654 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 484
38 JavaScriptCore 0x18ccfb850 JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtrJSC::Exception&) + 176
39 WebCore 0x18e3d1eb8 WebCore::ScheduledAction::executeFunctionInContext(JSC::JSGlobalObject*, JSC::JSValue, WebCore::ScriptExecutionContext&) + 516
40 WebCore 0x18e3d1b04 WebCore::ScheduledAction::execute(WebCore::Document&) + 136
41 WebCore 0x18d6581c0 WebCore::DOMTimer::fired() + 596
42 WebCore 0x18d657e00 WebCore::ThreadTimers::sharedTimerFiredInternal() + 172
43 WebCore 0x18d657d40 WebCore::timerFired(__CFRunLoopTimer*, void*) + 28
44 CoreFoundation 0x188a91aa4 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 28
45 CoreFoundation 0x188a917a8 __CFRunLoopDoTimer + 856
46 CoreFoundation 0x188a91068 __CFRunLoopDoTimers + 244
47 CoreFoundation 0x188a8ec8c __CFRunLoopRun + 1484
48 CoreFoundation 0x1889beda4 CFRunLoopRunSpecific + 424
49 WebCore 0x18d689d3c RunWebThread(void*) + 456
50 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
51 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
52 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#12. Thread
0 libsystem_kernel.dylib 0x187adce1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x187ba4814 _pthread_cond_wait + 640
2 libc++.1.dylib 0x1874cdac8 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 56
3 WoodyPuzzle-mobile 0x100206534 void std::__1::condition_variable_any::waitstd::__1::mutex(std::__1::mutex&) + 4297123124
4 WoodyPuzzle-mobile 0x1002063d4 cocos2d::network::HttpClient::networkThread() + 4297122772
5 WoodyPuzzle-mobile 0x100208cb8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (cocos2d::network::HttpClient::)(), cocos2d::network::HttpClient> > >(void*) + 4297133240
6 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
7 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
8 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#13. WebCore: LocalStorage
0 libsystem_kernel.dylib 0x187adce1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x187ba4814 _pthread_cond_wait + 640
2 JavaScriptCore 0x18c9bf9a4 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 80
3 JavaScriptCore 0x18d352a68 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2256
4 WebKitLegacy 0x18e8fa0a8 bool WTF::ConditionBase::waitUntilWTF::Lock(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 172
5 WebKitLegacy 0x18e8fcd40 std::__1::unique_ptr<WTF::Function<void ()>, std::__1::default_delete<WTF::Function<void ()> > > WTF::MessageQueue<WTF::Function<void ()> >::waitForMessageFilteredWithTimeout<WTF::MessageQueue<WTF::Function<void ()> >::waitForMessage()::‘lambda’(WTF::Function<void ()> const&)>(WTF::MessageQueueWaitResult&, WTF::MessageQueue<WTF::Function<void ()> >::waitForMessage()::‘lambda’(WTF::Function<void ()> const&)&&, WTF::WallTime) + 144
6 WebKitLegacy 0x18e8fc348 WebCore::StorageThread::threadEntryPoint() + 68
7 JavaScriptCore 0x18c9bbf7c WTF::threadEntryPoint(void*) + 212
8 JavaScriptCore 0x18c9bbe8c WTF::wtfThreadEntryPoint(void*) + 24
9 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
10 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
11 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#14. com.apple.CFNetwork.CustomProtocols
0 libsystem_kernel.dylib 0x187abf224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x187abf09c mach_msg + 72
2 CoreFoundation 0x188a90e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x188a8eae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x1889beda4 CFRunLoopRunSpecific + 424
5 CFNetwork 0x189327f50 _privateRunloopEmulationSet(void*) + 264
6 libsystem_pthread.dylib 0x187ba568c _pthread_body + 240
7 libsystem_pthread.dylib 0x187ba559c _pthread_body + 282
8 libsystem_pthread.dylib 0x187ba2cb4 thread_start + 4

#15. org.webkit.ImageDecoder
0 libsystem_kernel.dylib 0x187adce1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x187ba4814 _pthread_cond_wait + 640
2 JavaScriptCore 0x18c9bf9a4 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 80
3 JavaScriptCore 0x18d352a68 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2256
4 WebCore 0x18d7fb108 bool WTF::ConditionBase::waitUntilWTF::Lock(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 172
5 WebCore 0x18dc55ee4 WTF::SynchronizedFixedQueue<WebCore::ImageFrameCache::ImageFrameRequest, 8ul>::dequeue(WebCore::ImageFrameCache::ImageFrameRequest&) + 136
6 WebCore 0x18dc55e40 WTF::Function<void ()>::CallableWrapperWebCore::ImageFrameCache::startAsyncDecodingQueue()::$_0::call() + 224
7 libdispatch.dylib 0x18799a9e0 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x18799a9a0 _dispatch_client_callout + 16
9 libdispatch.dylib 0x1879a8ad4 _dispatch_queue_serial_drain + 928
10 libdispatch.dylib 0x18799e2cc _dispatch_queue_invoke + 884
11 libdispatch.dylib 0x1879aaa50 _dispatch_root_queue_drain + 540
12 libdispatch.dylib 0x1879aa7d0 _dispatch_worker_thread3 + 124
13 libsystem_pthread.dylib 0x187ba3100 _pthread_wqthread + 1096
14 libsystem_pthread.dylib 0x187ba2cac start_wqthread + 4

#16. Thread
0 libsystem_pthread.dylib 0x187ba2ca8 start_wqthread + 126

#17. com.apple.network.connections
0 libsystem_kernel.dylib 0x187add260 __select_nocancel + 8
1 libsystem_dnssd.dylib 0x187a95c64 deliver_request + 996
2 libsystem_dnssd.dylib 0x187a9649c DNSServiceGetAddrInfo + 264
3 libsystem_network.dylib 0x187b560bc nw_resolver_set_update_handler + 1564
4 libnetwork.dylib 0x19570b008 -[NWConcrete_nw_endpoint_resolver startWithHandler:] + 504
5 libnetwork.dylib 0x1956f4fec nw_endpoint_handler_path_change + 3204
6 libnetwork.dylib 0x1956f4280 nw_endpoint_handler_start + 548
7 libdispatch.dylib 0x18799a9e0 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x18799a9a0 _dispatch_client_callout + 16
9 libdispatch.dylib 0x1879a8ad4 _dispatch_queue_serial_drain + 928
10 libdispatch.dylib 0x18799e2cc _dispatch_queue_invoke + 884
11 libdispatch.dylib 0x1879aaa50 _dispatch_root_queue_drain + 540
12 libdispatch.dylib 0x1879aa7d0 _dispatch_worker_thread3 + 124
13 libsystem_pthread.dylib 0x187ba3100 _pthread_wqthread + 1096
14 libsystem_pthread.dylib 0x187ba2cac start_wqthread + 4

#18. Thread
0 libsystem_pthread.dylib 0x187ba2ca8 start_wqthread + 126

#19. com.apple.root.default-qos.overcommit
0 libsystem_kernel.dylib 0x187add260 __select_nocancel + 8
1 libsystem_dnssd.dylib 0x187a95c64 deliver_request + 996
2 libsystem_dnssd.dylib 0x187a96244 DNSServiceQueryRecord + 352
3 libsystem_info.dylib 0x187aa833c _mdns_query_start + 824
4 libsystem_info.dylib 0x187aa770c _mdns_search + 888
5 libsystem_info.dylib 0x187aa6e94 mdns_addrinfo + 428
6 libsystem_info.dylib 0x187aaaa5c search_addrinfo + 172
7 libsystem_info.dylib 0x187a9e0ec si_addrinfo + 1632
8 libsystem_info.dylib 0x187aad5bc __si_async_call_block_invoke + 96
9 libdispatch.dylib 0x18799a9e0 _dispatch_call_block_and_release + 24
10 libdispatch.dylib 0x18799a9a0 _dispatch_client_callout + 16
11 libdispatch.dylib 0x1879a90d4 _dispatch_queue_override_invoke + 644
12 libdispatch.dylib 0x1879aaa50 _dispatch_root_queue_drain + 540
13 libdispatch.dylib 0x1879aa7d0 _dispatch_worker_thread3 + 124
14 libsystem_pthread.dylib 0x187ba3100 _pthread_wqthread + 1096
15 libsystem_pthread.dylib 0x187ba2cac start_wqthread + 4

#20. Thread
0 libsystem_kernel.dylib 0x187adda88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x187ba31a4 _pthread_wqthread + 1260
2 libsystem_pthread.dylib 0x187ba2cac start_wqthread + 4

#21. com.apple.NSURLSession-work
0 libsystem_kernel.dylib 0x187abf260 semaphore_wait_trap + 8
1 libdispatch.dylib 0x1879ad5e8 _os_semaphore_wait + 24
2 libdispatch.dylib 0x1879acca0 _dispatch_semaphore_wait_slow + 140
3 CFNetwork 0x1891d1574 -[__NSURLBackgroundSession setupBackgroundSession] + 540
4 CFNetwork 0x1891d1340 -[__NSURLBackgroundSession ensureRemoteSession] + 80
5 libdispatch.dylib 0x18799a9e0 _dispatch_call_block_and_release + 24
6 libdispatch.dylib 0x18799a9a0 _dispatch_client_callout + 16
7 libdispatch.dylib 0x1879a8ad4 _dispatch_queue_serial_drain + 928
8 libdispatch.dylib 0x18799e2cc _dispatch_queue_invoke + 884
9 libdispatch.dylib 0x1879a8fa8 _dispatch_queue_override_invoke + 344
10 libdispatch.dylib 0x1879aaa50 _dispatch_root_queue_drain + 540
11 libdispatch.dylib 0x1879aa7d0 _dispatch_worker_thread3 + 124
12 libsystem_pthread.dylib 0x187ba3100 _pthread_wqthread + 1096
13 libsystem_pthread.dylib 0x187ba2cac start_wqthread + 4

#22. Thread
0 libsystem_kernel.dylib 0x187adda88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x187ba31a4 _pthread_wqthread + 1260
2 libsystem_pthread.dylib 0x187ba2cac start_wqthread + 4

#23. Thread
0 libsystem_kernel.dylib 0x187adda88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x187ba31a4 _pthread_wqthread + 1260
2 libsystem_pthread.dylib 0x187ba2cac start_wqthread + 4

#24. com.google.admob.ad-view-resource
0 libsystem_kernel.dylib 0x187abf260 semaphore_wait_trap + 8
1 libdispatch.dylib 0x1879ad5e8 _os_semaphore_wait + 24
2 libdispatch.dylib 0x1879ad150 _dispatch_group_wait_slow + 196
3 CFNetwork 0x1892ea400 DispatchHost::startInfoResolution(__CFString const*, __CFString const*, __CFDictionary const*) + 96
4 CFNetwork 0x189174398 CFHostStartInfoResolution + 80
5 WoodyPuzzle-mobile 0x1004b9488 GADDiskUsageStatisticsWithError + 4299953288
6 libdispatch.dylib 0x18799a9e0 _dispatch_call_block_and_release + 24
7 libdispatch.dylib 0x18799a9a0 _dispatch_client_callout + 16
8 libdispatch.dylib 0x1879a8ad4 _dispatch_queue_serial_drain + 928
9 libdispatch.dylib 0x18799e2cc _dispatch_queue_invoke + 884
10 libdispatch.dylib 0x1879a8fa8 _dispatch_queue_override_invoke + 344
11 libdispatch.dylib 0x1879aaa50 _dispatch_root_queue_drain + 540
12 libdispatch.dylib 0x1879aa7d0 _dispatch_worker_thread3 + 124
13 libsystem_pthread.dylib 0x187ba3100 _pthread_wqthread + 1096
14 libsystem_pthread.dylib 0x187ba2cac start_wqthread + 4

#25. Thread
0 libsystem_pthread.dylib 0x187ba2ca8 start_wqthread + 126

#26. Thread
0 libsystem_pthread.dylib 0x187ba2ca8 start_wqthread + 126

1 Like

Hey! We are having exactly the same crash in our game.
Did you find what’s going on?
Thanks mate!

1 Like

I suspected many things and also tried to fix it, but not resolved :disappointed_relieved:

1 Like

also interested in this

1 Like

I also have the same crash report.
cocos2dx 3.14.1
iOS
Is there any information?

1 Like

affected with same issue

Same issue here.

I am also facing the same issue… Guys any findings?

Same here, after I updated from 3.13 to 3.16.

I was also getting this Crash.
But when I disable Admob, crash rate is drastically reduced.
I am currently using cosos2dx 3.16

Can Someone try this on their apps as well and check if you get similar results.

A lot of users are reporting this crash for us on iOS. It seems to somehow be related to Admob(removing Admob reduces the occurrence rate very much). Anyone has any idea on how to fix it or why it happens?

The problem is that Admob is a very important ad network, and with it enabled, the crash rate is very high.

cc: @slackmoehrle, @zhangxm

Could somebody provide a test case to reproduce it?

@zhangxm It’s not easy to reproduce. Usually it happens with Admob enabled. The only way we were able to consistently reproduce it on our side was by doing some changes inside cocos2d-x code. You can find more information about this over here: https://github.com/cocos2d/cocos2d-x/issues/18785

Also, there is a pull request with a possible fix over here: https://github.com/cocos2d/cocos2d-x/pull/19085
Let me know if you have any other questions.

@zhangxm I am able to reproduce it on my iOS device. Issue occurs when there is any playable ads(I think they are HTML5 based) from admob and we minimise and maximise our app when that ad is playing. After maximising app, crash occurs in Renderer::drawBatchedTriangles() function. Due to some reason, glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY) returns a null value and then it causes crash in memcpy function in next line. Check this crash screen shoot.

As you can see, “buf” is null and err is 0. That “if(buf)” check resolves the crash but I am not sure if it c
an be added or not.

Currently I am not sure how this cocos2d-x crash is linked with admob playable ad. That is something we should look into in order to resolve the issue properly.

@zhangxm do you have some time to look into it?

@umairjaved6 if you can provide a test case to reproduce it, then it may help us to fix it more quickly.

Same here! A lot of crashes! Does someone have a solution for that?