[Dominik] [0.17.68] Crashes involving FluidBox during save and in gameplay

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
terdol
Burner Inserter
Burner Inserter
Posts: 14
Joined: Tue Sep 17, 2019 2:02 pm
Contact:

[Dominik] [0.17.68] Crashes involving FluidBox during save and in gameplay

Post by terdol »

Hey, I'm running modded game with major mods Space Exploration (and all dependancies) + Bobs (more or less half mods). Also some QoL etc. All in all its around 30 mods. More relevant - fluid mods I'm running are flow control, compressed fluids and fluids from space exploration. I was playing normal game, but last ~20-30 hours are on cheat mode to have fund designing nice working moon bases. I'm experiencing those crashes while playing on Ubuntu 18.04 steam version. When I get home I'll also check if this happens on windows machine.

I've tried to get easy recreating steps ready, but crashes seem to be random. By random I mean: get autosave -> place few entities -> save manually -> crash. repeat that again -> no crash. Sometimes I can play an hour without issue at all, while some times I'll get 3 crashes between 2 autosaves (at different moments).

I don't have first few crash logs, since I was trying to recreate crashes and write down steps to be able to reporduce it more easily so that I could supply save file for debugging as well. Right now I'm uploading 3 logs.

Log1 - crash while saving: https://pastebin.com/1gg8mHjF
Log2 - crash in runtime: https://pastebin.com/tCTCevh1
Log3 - crash while saving: https://pastebin.com/fQ3t4Avc

Log2 needs a comment: After loading game, pretty much no action was taken and especially anything to do with fluids. After loading game again from the same point, game continued as normal for an hour or so.

More context: I'm building moon bases for space exploration science packs - right now I'm focused on astronomics to reach 2.04/s extended astronomic catalogue, which for scale is around 7000 machines. My previous version was much smaller <1000 machines. it was running smoothly until 0.17.62 or so (then I went for holidays). I've built around 80% of production so I wanted to start it, test and saturate everything. This is when problem first appeared. Since first crash I've done maybe 3 hours in-game. But due to reloading and such, game might have progressed about 1 hour forward or so. For first 90 hours or so there was no issue at all, so I'm very sceptical this is an issue with earth base and therefore compressed fluids mod (only place I use this mod). My previous astronomic base was also running for hours without issue with fluids. I'm using flow control valves in space, so maybe something there, but looking at stacktrace I'm also not sure if this is mod issue at all.

My best bet would be some weird cases with robot attrition bots randomly destroying pipes and then fluid system not being updated correctly on pipe entity remove and crashing on state retrieval during save. But that is just a random guess.

I'll update this post with further information (status on windows and further logs if this happens again).

@Edit:
Log4 - runtime: https://pastebin.com/z3BXHsh4
Log5 - runtime: https://pastebin.com/4igxXk8Y
Log6 - runtime: https://pastebin.com/8CSg25Bh (much richer stacktrace, with lua errors)
Log7 - save: https://pastebin.com/ckZxSL2A
Log8 - runtime: https://pastebin.com/z6vmifF5 (while loading blueprint from ctrl+v)
Log9 - runtime: https://pastebin.com/N1Yme2rn
Log10 - runtime: https://pastebin.com/trrsJE9J

@Edit2:
Running the same save at home on windows for 3 hours didn't raise any issues. This is either linux issue or a problem with that machine. I guess it's much easier for me to try to replicate those crashes on different linux machine to either confirm that this is individual case or to actually have a confirmation that this is problem with linux binary. I'm thinking of setting up temporary linux os on the same machine at home that was working well with windows, but this is not 10 minute task, so more data will come during the weekend, unless there will be any questions.
Dominik
Former Staff
Former Staff
Posts: 658
Joined: Sat Oct 12, 2013 9:08 am
Contact:

Re: [Dominik] [0.17.68] Crashes involving FluidBox during save and in gameplay

Post by Dominik »

Hi, sorry for the issues you have.
I am not sure about the cause. Some of the logs point to an issue that is fixed in this version but most show some unspecific corruption which may or may not be connected to it. I don't think that it is a corruption of your system because then we would see issues in other areas of the game too. One possible explanation why it works on the new machine is that you have some different mod setup which triggers migration and that fixes the fluid issue.
I think that it would be best to try the next version which will likely fix it.
terdol
Burner Inserter
Burner Inserter
Posts: 14
Joined: Tue Sep 17, 2019 2:02 pm
Contact:

Re: [Dominik] [0.17.68] Crashes involving FluidBox during save and in gameplay

Post by terdol »

Since this save has been crashing, I have been playing unmodded for fun on that machine. That has also crashed without mods, but I've created another bug report for that. however it was after almost 20 hours so it is irrelevant to this one.
I still have plans to test this on linux on different machine, but in meantime I wanna give small update.

I have updated game to 0.17.69, that was released today/yesterday. I have also updated all mods that I use in this save.

I have also played this save at home on windows for 2-3 hours, but sadly I've lost that progress due to steam cloud sync problems. So I figured out, I'll replay those 2-3 hours on system that I had crashes on. Maybe I was jsut extremely lucky and they have stopped right as I switched machine. Also wanted to test new version.

And it crashed. It took approx 10 minutes? Maybe less. This time however crash is not related (at least in stacktrace) to fluidbox. There was crash in memory releasing, looking like minor memory smearing. I don't think you are troubleshooting mods too much, however as far as i remember there shouldn't be this kind of problems inside lua scripts. Scripts should have automatic memory management and engine is doing all deeper memory operations. That would mean this particular problem is lua-engine related? Correct me if I'm wrong.

Anyway here is a log: https://pastebin.com/dcaBAKBb

I'll post further updates.

PS. About your points: Mods and settings are 100% synchronized between machines. There is no mod migrations afaik when switching. I haven't changed mod loadout since starting this save. I also use factorio sync mods to save feature. When testing I even checked factorio version + versions of all mods to be exactly the same.
terdol
Burner Inserter
Burner Inserter
Posts: 14
Joined: Tue Sep 17, 2019 2:02 pm
Contact:

Re: [Dominik] [0.17.68] Crashes involving FluidBox during save and in gameplay

Post by terdol »

So I tried this save on windows machine that had no problems, but this time using windows (ubuntu 18.04 fresh install) and game ran well for 3 hours without issues. This was on 0.17.69. On linux machine that generated initial crashes 0.17.69 was also running okay for 2 more hours. So whatever this was, I'm beginning to suspect was vixed in 0.17.69 version if that makes any sense.

There is left however the other crash mentioned in post above. Should I create new topic for that?
Post Reply

Return to “Pending”