Preserve out of resources runtimes. (#59049)

Knowing what lines triggered this bug will help me nag lummox, but the runtime never made it to logs because world/Error would runtime on log_game and Reboot()

I need to know if its list creation or list expansion or both.
This commit is contained in:
Kyle Spier-Swenson
2021-05-12 18:27:54 -07:00
committed by GitHub
parent 8cd8ab7c32
commit 684491701d
+3 -3
View File
@@ -20,11 +20,11 @@ GLOBAL_VAR_INIT(total_runtimes_skipped, 0)
return //this will never happen.
else if(copytext(E.name, 1, 18) == "Out of resources!")//18 == length() of that string + 1
log_world("BYOND out of memory. Restarting")
log_game("BYOND out of memory. Restarting")
log_world("BYOND out of memory. Restarting ([E?.file]:[E?.line])")
TgsEndProcess()
. = ..()
Reboot(reason = 1)
return ..()
return
if (islist(stack_trace_storage))
for (var/line in splittext(E.desc, "\n"))