[2.1.8] Crash with LuaDebugAdapter

Post your bugs and problems so we can fix them.
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 208
Joined: Tue Feb 06, 2024 5:18 am
Contact:

[2.1.8] Crash with LuaDebugAdapter

Post by hgschmie »

Had the game sitting under the debugger on a breakpoint for a while, editing some of the source code files.

Then moving cursor out of vscode, game crashed immediately.
Attachments
factorio-current.log
(27.35 KiB) Downloaded 12 times
justarandomgeek
Filter Inserter
Filter Inserter
Posts: 314
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: [2.1.8] Crash with LuaDebugAdapter

Post by justarandomgeek »

Very strange. It looks like you caused a SetBreakpoints request, which then failed at a completely nonsensical spot as it was looking for the corresponding known source file to (re)validate those breakpoints. Can you tell me more about what you were doing before this happened?
User avatar
hgschmie
Fast Inserter
Fast Inserter
Posts: 208
Joined: Tue Feb 06, 2024 5:18 am
Contact:

Re: [2.1.8] Crash with LuaDebugAdapter

Post by hgschmie »

I was editing a migration file that had a breakpoint in it and at some point I renamed the file (from foo.lua to bar.lua). So the foo.lua was gone (and your explanation make sense, if it tried to revalidate the breakpoint in foo.lua, it would fail).
justarandomgeek
Filter Inserter
Filter Inserter
Posts: 314
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: [2.1.8] Crash with LuaDebugAdapter

Post by justarandomgeek »

i've submitted a couple patches to help investigate this in more detail (or if we're lucky, maybe just fix it)

mods, if we could adjust the title to "Crash with LuaDebugAdapter when updating breakpoints"
Post Reply

Return to “Bug Reports”