[2.0.73][linux] Crash while saving (StringWriteStream.hpp::write)

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
User avatar
IThundxr
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Feb 13, 2026 8:14 pm
Contact:

[2.0.73][linux] Crash while saving (StringWriteStream.hpp::write)

Post by IThundxr »

Non-blocking saves are enabled, i'm not sure what actually caused this, i had factorio open in the background and came back to this when i tabbed back in.

Whenever i try to save it fails and returns a I/O error in the UI, and upon exiting the save the entire game crashed.

I've attached the log, the save file, and the invalid .tmp.zip save file it created
Attachments
factorio-current.log
(83.22 KiB) Downloaded 9 times
Train Test World.zip
(1.65 MiB) Downloaded 3 times
Train Test World.tmp.zip
(1.5 MiB) Downloaded 2 times
Loewchen
Global Moderator
Global Moderator
Posts: 10645
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.73][linux] Crash while saving (StringWriteStream.hpp::write)

Post by Loewchen »

I/O error sounds like a hardware issue, can you reproduce the crash with the save you provided?
User avatar
IThundxr
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Feb 13, 2026 8:14 pm
Contact:

Re: [2.0.73][linux] Crash while saving (StringWriteStream.hpp::write)

Post by IThundxr »

Loewchen wrote: Fri Feb 13, 2026 10:13 pm I/O error sounds like a hardware issue, can you reproduce the crash with the save you provided?
Nope, i've been playing on that same save (the last autosave) for a while and i haven't been able to reproduce it. Drive's SMART info shows no issues, firmware is also up to date.
User avatar
pioruns
Filter Inserter
Filter Inserter
Posts: 257
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: [2.0.73][linux] Crash while saving (StringWriteStream.hpp::write)

Post by pioruns »

Please post contents of

Code: Select all

sudo dmesg
after crash.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4399
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.73][linux] Crash while saving (StringWriteStream.hpp::write)

Post by boskid »

If there is no reproduction provided then i am going to throw this into 1/0 magic. Place where it crashes makes no sense (saving a boolean into a stream) except of one scenario that is plausible here and it would be Accumulator::save seeing a corrupted pointer to a control behavior and attempting to save a presumed control behavior at invalid address which goes through layers of code and crashes at the first piece of code that actually uses that pointer (saving ghost flag [bool] of a red wire connector of a behavior's circuit connector, literally the first byte of a behavior saved). That would fall into a memory corruption.
Post Reply

Return to “1 / 0 magic”