注册 登录
主题 : 求助:cocos2d-x2.2.6 swapBuffers崩溃
级别: 新手上路
UID: 457064
精华: 0
发帖: 1
可可豆: 10 CB
威望: 10 点
在线时间: 6(时)
注册时间: 2015-04-01
最后登录: 2015-04-20
0 楼:  发表于: 2015-04-01 16:40    发自: Web Page
来源于 技术疑问 分类

求助:cocos2d-x2.2.6 swapBuffers崩溃   

不能准确复现,偶尔出,概率频繁到不能忍,但不是必现。
崩在
#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 -[DYTransportMessage initWithKind:attributes:plistPayload:] ()
#15    0x00000001019bda84 in +[DYTransportMessage messageWithKind:plistPayload:] ()
#16    0x00000001016ef7f4 in handle_frame_boundary ()
#17    0x000000010189d9f4 in EAGLContext_presentRenderbuffer(EAGLContext*, objc_selector*, unsigned long) ()
#18    0x00000001005649d4 in -[EAGLView swapBuffers] 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 -[CCDirectorCaller doCaller:] at /Users/yu/Desktop/project_new/Client/cocos2dx/platform/ios/CCDirectorCaller.mm:97
#23    0x000000010189ca9c in -[DYDisplayLinkInterposer forwardDisplayLinkCallback:] ()
#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(![context_ presentRenderbuffer:GL_RENDERBUFFER])这一行,搜了一下类似的情况都是按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
应该是哪里释放过度了,但是自己的代码检查了也没有查到。
有遇到类似情况的吗?
级别: 新手上路
UID: 174102
精华: 0
发帖: 8
可可豆: 35 CB
威望: 35 点
在线时间: 60(时)
注册时间: 2012-10-30
最后登录: 2017-01-24
1 楼:  发表于: 2016-06-01 15:57    发自: Web Page
我也是2.2.6随机出现,然后屏幕卡死。出现的点也都不一样
级别: 新手上路
状态: 连续签到 - [1天]
UID: 624309
精华: 0
发帖: 1
可可豆: 5 CB
威望: 5 点
在线时间: 6(时)
注册时间: 2017-09-22
最后登录: 2019-01-31
2 楼:  发表于: 2019-01-11 16:19    发自: Web Page
楼主问题解决了吗我遇到了和你一样的问题,我用的是quick-cocos2d  2.2.6, ios12的库

CocoaChina社区转载内容已尽可能注明出处,如未能核实来源或转发内容图片有权利瑕疵的,请及时联系社区进行修改或删除【联系方式QQ : 3442093904 邮箱:support@cocoachina.com】文章内容为作者独立观点,不代表CocoaChina社区立场。版权归原作者所有,如申请授权请联系作者,因文章侵权CocoaChina社区不承担任何法律及连带责任。

描述
快速回复

关注本帖(如果有新回复会站内信通知您)

发帖、回帖都会得到可观的积分奖励。查看论坛积分规则

按"Ctrl+Enter"直接提交
    顶部