Page 1 of 1

[1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Tue Jun 01, 2021 10:26 pm
by Criarino
My game is crashing every few minutes, returning to the desktop. I use a bunch of mods including Space exploration and Krastorio 2, and taking a look on the log it looks like a spaceship issue, but when I asked in the SE discord they said to seek help here....
I have no idea how to reproduce or what may cause this crash. I had just finished reorganizing my space station and was just admiring my work when the game crashed for the first time. It's a 200 hours save, and this is the first time something like this happens.
I've tried to disable some mods and verify the files via steam, without success. The log is attached, and I can upload the save if necessary.
Please help me, the game is unplayable and I REALLY don't want to lose a 200 hours save.

Re: Unknown crash with SE...?

Posted: Tue Jun 01, 2021 10:30 pm
by Loewchen
Post the save file and more logs with crashes, see 3638.

Re: [1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Tue Jun 01, 2021 11:00 pm
by Criarino
this is the save game: https://drive.google.com/file/d/1BqKouW ... sp=sharing. It's an autosave a bit before the first crash. After that I tried playing a bit more but it always crashed after a few minutes (at different times). I'm sorry i can't elaborate more, but I really have no idea what is causing this.

Re: [1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Wed Jun 02, 2021 6:17 am
by boskid
Looking at the log file i can only say one thing: system instability.

I was unable to reproduce any issues with this save file, it works fine. If you are certain its not a system instability, please post more log files to verify if they all happen in the same place or if they are all around.

Re: [1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Thu Jun 03, 2021 3:06 pm
by Criarino
SE's creator said it looked like the game was trying to delete something on a spaceship and crashed, so I entered /editor mode, deleted said spaceship and rebuilt it from scratch. It's been working fine for a while now, I will post another log if the crash happens again. Thanks for the help.

Re: [1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Sat Jun 05, 2021 11:20 pm
by Criarino
It was working fine until I got several crashes in a row. Again, I did nothing in special to trigger the crash. There is no apparent relation between the crashes, the first one (factorio-current1) occurred when the game was autosaving, then 2 crashes immediately after reloading the previous save, one a while after, and the last around 2 hours after the first crash (the file named only factorio-current is the last one). Should I open a new issue for this?
This is the savefile: https://drive.google.com/file/d/1opj6Y5 ... sp=sharing

Re: [1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Sun Jun 06, 2021 1:17 am
by Criarino
and another one

Re: [1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Sun Jun 06, 2021 8:11 am
by boskid
I am confused quite a lot because there are completly unrelated crashes happening (LuaContext::clearTemporaryStateIncremental, 2x agui::Tab::resizeToContents) but at the same time DetailedEntitySearch::setupFromSurface happened twice and the inner cause of them (having corrupted pointer in the EntityConnector::nextOnTile) will also crash while saving chunks, but then the crash which happened during save when chunks were saved, was not even close to the code which uses EntityConnectors.

I was running provided save file even more but nothing wrong happened. Without any way to reproduce this issue there is nothing i can do so i will keep this bug report in the "Pending" until some sort of reproduction is provided.

Re: [1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Sun Jun 06, 2021 5:41 pm
by Criarino
Maybe it's my system then. I will clean my HD and install win10 today. I'll come back here if the crashes persist

Re: [1.1.34] Crashes (luasurface.cpp (397): DetailedEntitySearch::setupFromSurface)

Posted: Thu Jul 01, 2021 2:49 am
by Criarino
sorry for the delay, a lot of things happened and I couldn't use my PC for a long time.
After formatting my hdd and installing win10 the game is running fine, even after a dozen or so more hours. The problem was either my system or some incompatibility/error with win7. I'm sorry for using your time.