You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lzj10
changed the title
[UE] Bug: 在setTimeout中不规范清理自身后,嵌套的setInterval和setTimeout不会执行
[UE] Bug: 在setTimeout中清理自身后,嵌套的setInterval和setTimeout不会执行
Jan 12, 2024
前置阅读 | Pre-reading
Puer的版本 | Puer Version
master 6256231
UE的版本 | UE Version
5.2
发生在哪个平台 | Platform
All
错误信息 | Error Message
No response
问题重现 | Bug reproduce
类似这么写的代码,test interval nest,test timeout nest不会输出,虽然代码写的有点奇怪,但是再chrome中可以正常运行,因为在复杂嵌套的时候很难保证在嵌套中没有清理自身的handle
原因是在clearTimeout的回调中释放了DelegateHandleId,然后在callback中调用setTimeout或者setInterval重新申请,callback调用结束后又再次删除了重新申请的DelegateHandleId
在chrome中可以正常运行。所以感觉是不是可以在callback执行后,判断!Continue删除定时器的时候,判断一下执行Function前后的TimerInfos[DelegateHandleId].TickerHandle是否一致,判断id是否有被复用申请再删除
The text was updated successfully, but these errors were encountered: