base::Semaphore::WaitFor等报错

  • Creator 版本:2.1.0

  • 目标平台:

  • 详细报错信息,包含调用堆栈:

  • 重现方式:运行一段时间,点击某组件后必现

  • 出现概率:

  • 额外线索:

报错如上,请问是什么情况?

还弹出了这个错误弹窗

Simulator: 
==== C stack trace ===============================

	RaiseException [0x
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: 77B7B022+98]
	CxxThrowException [0x53FF45A5+101]
	v8::internal::ParserBase<v8::internal::Parser>::ParseAsyncFunctionLiteral [0x52F6ECEC+8778592]
	v8::internal::ParserBase<v8::internal::Parser>::ParseAsyncFunctionLiteral [0x52F6D008+8771
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: 196]
	v8::internal::ParserBase<v8::internal::Parser>::ParseAsyncFunctionLiteral [0x
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: 5273E703+191863]
	cocos2d::GLFWEventHandler::setGLView [0x00D593FA+1456602]
	
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: cocos2d::GLFWEventHandler::setGLView [0x00D591D3+1456051]
	co
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
imulator: E/jswrapper (237): [OOM ERROR] location: CALL_AND_RETRY_LAST, is heap out of memory: true


#
# Fatal error in , line 0
# API fatal error handler returned after process out of memory
#

==== C stack trace ===============================

    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: v8::base::Semaphore::WaitFor [0x5408F717+55934]
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: v8::platform::DefaultPlatform::EnsureEventLoopInitialized [0x526C5415+15389]
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: v8::base::Semaphore::WaitFor [0x5408C3F3+42842]
	v8::internal::ParserBase<v8::internal::P
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: arser>::ParseAsyncFunctionLiteral [0x5274D3B6+252458]
	v8::internal::ParserBase<v8::i
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: nternal::Parser>::ParseAsyncFunctionLiteral [0x52AE83F0+4033124]
	v8::internal::ParserBase<v8::internal::Parser>::
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: ParseAsyncFunctionLiteral [0x52C39D24+5415832]
	v8::internal::ParserBase<v8::internal::Pars
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: er>::ParseAsyncFunctionLiteral [0x5274DDCD+255041]
	v8::internal::ParserBase<v8::int
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: ernal::Parser>::ParseAsyncFunctionLiteral [0x52BD89D7+5017675]
	v8::internal::ParserBase<v8::internal::Pars
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: er>::ParseAsyncFunctionLiteral [0x52BD41A0+4999188]
	v8::internal::ParserBase<v8::internal:
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: :Parser>::ParseAsyncFunctionLiteral [0x52BD5F15+5006729]
	v8::internal::ParserBase<v8::inte
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: rnal::Parser>::ParseAsyncFunctionLiteral [0x52BD8CA1+5018389]
	v8::internal::ParserBase<v8::i
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: nternal::Parser>::ParseAsyncFunctionLiteral [0x5280A5E3+1027159]
    at HTMLElement.print-simulator-log (D:\Apps\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1653)
    at Object.e._dispatch (D:\Apps\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1941)
    at EventEmitter.o.on.s (D:\Apps\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)
 
Simulator: libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
 
Simulator: 
Warning: Real sample count 43776 differs from given gapless sample count -1152. Frankenstein stream?

Warning: Real sample count 23040 differs from given gapless sample count -1152. Frankenstein stream?
AL lib: (EE) alc_cleanup: 1 device not closed

看到heap out of memory,好像是内存泄漏?
场景里有spine,也有声音。

谢谢你的反馈!针对此类问题,我们需要了解几个情况:
1、在项目搭建过程中没有出现过这个问题,而是加了某些模块才出现的?请问有排查过么?
2、模拟器运行一段时间就会报错么?能否提供能够复现问题的demo?

1、项目搭建时没有出现,在后来增加资源后才出现。加了缓动,节点移动和缩放。
2、运行到特定节点会忽然变卡,然后就报错,浏览器上直接崩溃无报错,模拟器上有报错。

运行一段时间后,内存忽然从60M增长到200多M,然后就报错了。

Simulator: D/jswrapper (148): JS: >>>>>>>>>><<<<<<<<<<包含对话步数: 40
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 17FD05F8 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 181D1D40 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 181D0060 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 181D0798 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 181D0ED0 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 181D1138 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 17FD0D30 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 17FD0390 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 17FD0128 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 17FCF9F0 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 18930270 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 18930740 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 1892F400 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 189309A8 ... 
Simulator: D/jswrapper (570): XMLHttpRequest_finalize, 181D1870 ... 

Please specifiy a default value for "DiceGameControl" property at its declaration:
 
// Before:
@property(...)
value; 
// After:
@property(...)
value = 0 dropBox
 
Please specifiy a default value for "DiceGameControl" property at its declaration:
 
// Before:
@property(...)
value; 
// After:
@property(...)
value = 0 _gameBox

解决没 我也出现这问题了

我也遇到这个问题,在模拟器里,有animation,layout,label的地方,内存直接攀升到1000以上,然后就报这个错

colorDemo.zip (1.5 MB)

这里是DEMO,在windows下2.0.10版本,模拟器打开后,内存占用会暴涨。把场景里的“显示名字”调到30以上,会闪退并报错。
浏览器打开就没问题,“显示名字”设置到1000都可以流畅运行。