Mods loaded: base, EditorExtensions, EvenPickierDollies, fiber-optics
Chasing a bug in a mod, here is what I did:
- put a breakpoint in an event handler that runs out of on_tick
- single stepped the handler. It jumped to the right place in control.lua, which in turn calls another function in a different source file (scripts/other.lua)
- stepped into this, source file did not change. Debugger showed the right line number but still in control.lua, not in scripts/other.lua
- weird. Put a breakpoint into scripts/other.lua at the right place, pressed continue.
Game crashed all the way down to MacOS error reporting.
100% reproducible. Retried with trace = true (dap-trace.log attached)
[2.1.14] Crash under debugger, reproducible
[2.1.14] Crash under debugger, reproducible
- Attachments
-
- dap-trace.log
- (408.21 KiB) Downloaded 22 times
-
- factorio-current.log
- (9.07 KiB) Downloaded 24 times
-
- crash2.txt
- (167.77 KiB) Downloaded 23 times
-
- crash1.txt
- (167.99 KiB) Downloaded 25 times
Re: [2.1.14] Game crash while under debugger (reproducible)
Yesterday I a had similar thing happening while debugging within on_tick, but didn't pay attention how and why.
My Linux told me: vscodium window does not respond. And I did press "close" after three times "continue waiting".
It happend 3 to 4 times before I had found my bug.
After reading this post I tried to reproduce the problem, but had no luck with that.
Factorio 2.1.14, fmtk 2.1.9, vscodium 1.126
My Linux told me: vscodium window does not respond. And I did press "close" after three times "continue waiting".
It happend 3 to 4 times before I had found my bug.
After reading this post I tried to reproduce the problem, but had no luck with that.
Factorio 2.1.14, fmtk 2.1.9, vscodium 1.126
AI is the oligarch's God, anti-humanism their religion.
My mods
My mods
-
justarandomgeek
- Filter Inserter

- Posts: 326
- Joined: Fri Mar 18, 2016 4:34 pm
- Contact:
Re: [2.1.14] Crash under debugger, reproducible
hmm, looks like i fell into a loop trying to describe some value (possibly an error object?). will have to dig a little to say more than that though...
-
justarandomgeek
- Filter Inserter

- Posts: 326
- Joined: Fri Mar 18, 2016 4:34 pm
- Contact:
Re: [2.1.14] Crash under debugger, reproducible
oh wow this is extremely stupid:
- While trying to describe a value
- I try to call its __tostring for it to describe itself
- and when that fails, i then try to describe the value again for the error message
- which repeats the attemped __tostring
-
justarandomgeek
- Filter Inserter

- Posts: 326
- Joined: Fri Mar 18, 2016 4:34 pm
- Contact:
Re: [2.1.14] Crash under debugger, reproducible
fixed for 2.1.17
Re: [2.1.14] Crash under debugger, reproducible
Did this fix make it into 2.1.17? There was no mentioning of it in the release notes.
-
justarandomgeek
- Filter Inserter

- Posts: 326
- Joined: Fri Mar 18, 2016 4:34 pm
- Contact:

