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
local console = require 'jass.console'
local runtime = require 'jass.runtime'
local jass = require 'jass.common'
console.enable = true
print = console.write
function test()
local trg = jass.CreateTrigger()
jass.TriggerRegisterPlayerEvent(trg, jass.Player(0), jass.EVENT_PLAYER_END_CINEMATIC)
jass.TriggerAddAction(trg, function ()
print("ESC", coroutine.running())
end)
end
local co = coroutine.create(test)
coroutine.resume(co)
runtime.sleep = true
代码如下 测试版本 ydwe1.32.13 疯狂按esc即可闪退
大概 runtime.sleep 无论什么情况下都要置顶 否则会发生崩溃 提交到这里警示一下其他人注意一下吧
崩溃的原因是 触发器所在的子线程被回收 之后再次回调时是野指针产生的崩溃
The text was updated successfully, but these errors were encountered: