遇到个jsb的bug,全公司的人整整折腾了2天!!
描述:
下面代码,在GC后,程序崩溃,错误log输出如下:
Assertion failure: thing, at /Users/james/Project/Spidermonkey/js/src/gc/Marking.cpp:112
代码:
var FightActionAttack = cc.Class.extend({ init: function (attacker) { var self = this; attacker.getAnimation().play("normalAttack"); attacker.getAnimation().setMovementEventCallFunc(this._movementAttackEvent, this); }, _movementAttackEvent: function (armature, movementType, movementID) { }, _frameAttackEvent: function (bone, evt, originFrameIndex, currentFrameIndex) { } });
原因:
cocos2d-x 2.x版本的jsb中,不能使用继承只cc.Class的对象做CallbackFunc的回调target,
因为这种直接集成自cc.Class的对象做callback回调的target,会把gc搞崩溃。
解决办法是,集成cc.Node
相关推荐
Delphi 2007 或2009 在Windows 7 x64 以及其他x64 系统下,退出IDE 时,调试器会产生一个断言错误,错误窗口标题为:bds.exe –bordbk120N.dll,内容为:Assertion failure: “(!”SetThreadContext failed”)”in .....
快速傅里叶算法fftw源代码,采用各种优化技术如SIMD等
for infomation on how your program can cause an assertion failure, see the visual c++ documentation on asserts 最后跳出: Unhandled exception in controltest2.exe(mfc42d.dll):0xc0000005:access ...
occcont.cpp line 925运行错误 Debug Assertion Failed:表示缺少某个OCX控件。这里提供msflxgrd.ocx和mscomm32.ocx。下载后复制到C:\Windows\SysWOW64目录下,regsvr32注册即可
Patch 21068553: OJVM PATCH SET UPDATE 11.2.0.3.4 ...13359289 ORA-29516: AURORA ASSERTION FAILURE: ASSERTION FAILURE AT JOETHREAD.C:4040 POLLE 14774730 Fix for Bug 14774730 15950541 Fix for Bug 159
2017-11-15 19:23:48 fc8 InnoDB: Assertion failure in thread 4040 in file fut0lst.ic line 83 InnoDB: Failing assertion: addr.page == FIL_NULL || addr.boffset >= FIL_PAGE_DATA InnoDB: We intentionally ...
Doombox 一种音乐播放器,设计时考虑了大型音乐收藏。 文献资料 2.xx 1.xx ... Error: GLib-GObject:ERROR:../../../gobject/gbinding.c:574:g_binding_constructed: assertion failed: (binding->
当你在linux中安装eclipse或者安装其他的包时遇到这样得问题:java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock' failed,可以按照下面步骤:第一:倒退回FC7的libx11. 卸载以下两个包的时候,可能有...
课时13:6.Processor 处理器和Assertion断言 课时14:7.演示:掌握JMeter各元素的使用 课时15:JMeter-II.ppt 课时16:1.测试SQL Query的方法 课时17:2.演示:测试SQL Query 课时18:3.测试Web页面的方法 课时19:4.演示:...
Failure , see the Visual C++ documentation on asserts. (Press Retry to debug the application) [终止(A)] [重试(R)] [忽略(I)] -------------------------------------------------------------------------...
Assertion "pcb->snd_queuelen >= pbuf_clen(next->p)" failed at line 1111 in../Middlewares/Third_Party/LwIP/src/core/tcp_in.c Assertion "pbuf_free: p->ref > 0" failed at line 753 in ../Middlewares/Third...
1.敏捷开发强调测试先行,因为先编写测试代码,就可以有目的的预防某些bug的产生,要知道,治病不如预防!!!所以我个人觉得这个还是比较重要的,文件也不大,只有8M,但是高清。 2.本版本与网上其他资源不同之处...
SystemVerilog Assertion断言理论与实践.rar SystemVerilog_Assertions_应用指南-源代码.rar uvm-1.2.rar VCS_labs.rar Verdi 基础教程.rar Verilog RTL 编码实践.rar [Cadence.IC设计.全资料教
assertion-weaver-0.0.30.jar
assertion-weaver-0.0.28.jar
assertion-weaver-0.0.27.jar
assertion-weaver-0.0.26.jar
assertion-weaver-0.0.24.jar
assertion-mojo-0.0.28.jar
assertion-mojo-0.0.26.jar