Page 1 of 1
[2.1.12] Crash using debugger while save is being loaded after script assert
Posted: Wed Jul 29, 2026 2:17 am
by protocol_1903
pYmod versions from git (just alienlife and dependents, mods attached. graphics mods not included, need to download from portal)
- Start factorio from vscode with debugger attached
- Load attached save or start new save
- Debugger catches assert error
- Game crashes to desktop
Pretty repeatable on my machine, though not always. Sometimes the 'an unrecoverable error has occured, please make a bug report, would you like to open the log file' popup appears multiple times in a row after hitting open/cancel.
Re: [2.1.12] Crash using debugger while save is being loaded after script assert
Posted: Wed Jul 29, 2026 2:56 pm
by justarandomgeek
a quick look suggests this is the checkstack thing again, in another variation
Re: [2.1.12] Crash using debugger while save is being loaded after script assert
Posted: Thu Aug 06, 2026 1:17 am
by justarandomgeek
poking around at this some more trying to reconstruct the specific events - i have been unable to reproduce a crash now (and the checkstack fixes in 2.1.13 may very well have fixed it, iirc you said it was less reproducible after that), but more specifically what occurred is this:
1. while in a break for an error
2. one of your Watch Expressions (or possibly a hover/inline hint?) was evaluated
3. which looked up a global variable
4. which tripped your metatable to warn on undefined globals
5. which called debug.traceback
6. which segfaulted walking up the chain of CallInfos?!?!
if you do manage to reproduce it again, i would like to know all the active Watch Expressions, or better yet a dap trace log (trace:true in launch.json)