Page 1 of 1
[2.0.21] Crash building new space platform (PollutionUpdateData::PollutionUpdateData into stl_vector.h)
Posted: Mon Nov 25, 2024 8:18 pm
by magie720
The attached save file consistently crashes when attempting to build a space platform.
To Trigger:
* Load save file
* Click on rocket silo
* Click "Build new space platform"
* Click "Create"
* Hit escape to return to normal view.
What happens:
* Rocket Launches
* "Smoke me a kipper" awarded
* "Unexpected error occured" dialog appears
Consistency: 100% (attempted 4 times)
Re: [2.0.21] Crash building new space platform (PollutionUpdateData::PollutionUpdateData into stl_vector.h)
Posted: Mon Nov 25, 2024 10:42 pm
by Rseding91
Thanks for the report. Based off where it's crashing my guess is what ever version of the C++ standard library you have installed is incorrect/corrupt. It's crashing inside the std::vector logic which we have zero control over and otherwise should work perfectly provided your local library files are not corrupt.
Re: [2.0.21] Crash building new space platform (PollutionUpdateData::PollutionUpdateData into stl_vector.h)
Posted: Mon Nov 25, 2024 11:16 pm
by BraveCaperCat
Best way to fix the problem would be to copy save games and other user data away from their current location (likely to somewhere like documents) then un-installing and re-installing the game. Then again, I've never used C++ myself and don't know if that will re-install the standard library.
Re: [2.0.21] Crash building new space platform (PollutionUpdateData::PollutionUpdateData into stl_vector.h)
Posted: Mon Nov 25, 2024 11:54 pm
by magie720
From what I can tell, the factorio binary itself got corrupted.
Since it was mentioned, the c++ library being used by factorio has md5sum:
Code: Select all
26b3d4ec128b9b6716dd4b8f1c205f9f /lib/x86_64-linux-gnu/libstdc++.so.6
And `sudo dpkg -V libstdc++6` reports no error.
In contrast, the factori binary with a crash has the md5sum:
Code: Select all
7f3d7cb2a75b84eb4d5b6e12a6853f0a factorio.orig/bin/x64/factorio
I downloaded 2.0.21 space age clean from the website and extracted it, to find the factorio binary there has a different hashsum:
Code: Select all
70728fbb0e8e2ad722381b919df63e93 factorio/bin/x64/factorio
Copying my save file to the new factorio install allows the rocket launch to complete without error.
Copying the new factorio binary to the old directory and launching from there also seems to work without issue.
Re: [2.0.21] Crash building new space platform (PollutionUpdateData::PollutionUpdateData into stl_vector.h)
Posted: Tue Nov 26, 2024 12:04 am
by magie720
For good measure, I took a diff of the hexdump of the two binaries. It looks like there was a single bitflip:
Code: Select all
< 01b9f970: c780 6807 0000 0000 0000 48c7 c070 0700 ..h.......H..p..
---
> 01b9f970: c780 6807 0000 0000 0000 48c7 8070 0700 ..h.......H..p..
This issue occured on my first playsession after the in-game updater updated it to 2.0.21, so something probably went wrong during the update.