不能准确复现,偶尔出,概率频繁到不能忍,但不是必现。
崩在
#0 0x0000000194be7890 in malloc_error_break ()
#1 0x0000000194be4cc8 in szone_error ()
#2 0x0000000194be5134 in free_list_checksum_botch ()
#3 0x0000000194bde03c in tiny_free_list_remove_ptr ()
#4 0x0000000194bdb74c in szone_free ()
#5 0x0000000183999918 in __CFBasicHashRehash ()
#6 0x000000018399a83c in __CFBasicHashAddValue ()
#7 0x000000018384b510 in CFBasicHashAddValue ()
#8 0x0000000183865f28 in _flattenPlist ()
#9 0x00000001838660b4 in _flattenPlist ()
#10 0x00000001838660b4 in _flattenPlist ()
#11 0x00000001838efc34 in __CFBinaryPlistWrite ()
#12 0x0000000183865d50 in CFPropertyListWrite ()
#13 0x0000000183865378 in CFPropertyListCreateData ()
#14 0x00000001019bde9c in - ()
#15 0x00000001019bda84 in + ()
#16 0x00000001016ef7f4 in handle_frame_boundary ()
#17 0x000000010189d9f4 in EAGLContext_presentRenderbuffer(EAGLContext*, objc_selector*, unsigned long) ()
#18 0x00000001005649d4 in - at /Users/yu/Desktop/project_new/Client/cocos2dx/platform/ios/EAGLView.mm:324
#19 0x000000010055cd18 in cocos2d::CCEGLView::swapBuffers() at /Users/yu/Desktop/project_new/Client/cocos2dx/platform/ios/CCEGLView.mm:73
#20 0x00000001004f8d6c in cocos2d::CCDirector::drawScene() at /Users/yu/Desktop/project_new/Client/cocos2dx/CCDirector.cpp:295
#21 0x00000001004fb098 in cocos2d::CCDisplayLinkDirector::mainLoop() at /Users/yu/Desktop/project_new/Client/cocos2dx/CCDirector.cpp:1077
#22 0x000000010055c7f4 in - at /Users/yu/Desktop/project_new/Client/cocos2dx/platform/ios/CCDirectorCaller.mm:97
#23 0x000000010189ca9c in - ()
#24 0x0000000187abd280 in CA::Display::DisplayLinkItem::dispatch() ()
#25 0x0000000187abd118 in CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) ()
#26 0x0000000184ab58d0 in IODispatchCalloutFromCFMessage ()
#27 0x000000018390cce0 in __CFMachPortPerform ()
#28 0x00000001839218fc in CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION ()
#29 0x000000018392185c in __CFRunLoopDoSource1 ()
#30 0x000000018391f7dc in __CFRunLoopRun ()
#31 0x000000018384d1f4 in CFRunLoopRunSpecific ()
#32 0x000000018c9b75a4 in GSEventRunModal ()
#33 0x000000018817e784 in UIApplicationMain ()
#34 0x000000010001b554 in main at /Users/yu/Desktop/project_new/Client/projects/Client/proj.ios/main.m:12
#35 0x0000000194a96a08 in start ()
这里,栈最后能看到的是EAGLView.mm:324 if(!)这一行,搜了一下类似的情况都是按Home键切后台时候出现的,可是我这个是随时都会出,又不一样。
另外输出有Client(2452,0x1987b0310) malloc: *** error for object 0x14000f5f8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
应该是哪里释放过度了,但是自己的代码检查了也没有查到。
有遇到类似情况的吗?