var userAvatar = this.userAvatar.getComponent(cc.Sprite);
cc.loader.load(userInfo.avatar,function (err, texture) {
if(!err)
{
texture._uuid = userInfo.avatar;
userAvatar.spriteFrame = new cc.SpriteFrame(texture);
// cc.loader.release(texture);
}
});
添加这段代码,关闭模拟器时就会报错。
不添加这段代码时不会。
-
Creator 版本:2.0.8
-
目标平台: 模拟器
-
详细报错信息,包含调用堆栈:
==== C stack trace ===============================xxtea_decrypt [0x01591B91+10353]
xxtea_decrypt [0x01724BF2+1661138]
xxtea_decrypt [0x01734AA6+1726342]
node::FreeEnvironment [0x0158CAAD+152269]
node::FreeEnvironment [0x0158C312+150322]
node::FreeEnvironment [0x01589150+137584]
cocos2d::GLFWEventHandler::setGLView [0x013852A6+309478]
cocos2d::GLFWEventHandler::setGLView [0x0138A24E+329870]
cocos2d::GLFWEventHandler::setGLView [0x0138993D+327549]
cocos2d::GLFWEventHandler::setGLView [0x01389902+327490]
cocos2d::GLFWEventHandler::setGLView [0x0137F3A5+285157]
xxtea_decrypt [0x01914A1D+3692285]
execute_onexit_table [0x008176BC+204]
wassert [0x008170DB+683]
exit [0x008173C2+18]
xxtea_decrypt [0x018AFE38+3279640]
xxtea_decrypt [0x018AFCCD+3279277]
xxtea_decrypt [0x018AFF48+3279912]
BaseThreadInitThunk [0x7749343D+18]
RtlInitializeExceptionChain [0x77BB9832+99]
RtlInitializeExceptionChain [0x77BB9805+54]
xxtea_decrypt [0x018AFF40+3279904]
at HTMLElement.print-simulator-log (C:\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1501)
at Object.e._dispatch (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
at EventEmitter.o.on.s (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:2917)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7) -
重现方式:关闭模拟器时报错
-
之前哪个版本是正常的 :
-
手机型号 :
-
手机浏览器 :
-
编辑器操作系统 :
-
编辑器之前是否有其它报错 :
-
出现概率:100%
-
额外线索: