This bug happens during startup at 40% "cropping bitmaps."
If CPU usage is high (mining cryptocurrency...) when launching the game, it sometimes crashes at 40%. Error messages change from crash to crash. Sometimes it is "Could not create atlas bitmap size(xx,xx), probably not enough video memory", sometimes just "Unexpected error." Steam also usually crashes (no error, just closes) when this happens.
Originally I thought that it had something to do with gpu mining, but this still sometimes happens when it is off, and all of the 4 (3.5) gb of VRAM is free. Due to randomnes of this happening, I was unable to test if this also happens with other kind of CPU load, than crypto mining. This also is not strictly 0.16.20 crash, this has happened before on older .16.x builds.
[0.16.20] Random crash on startup if CPU usage is high
[0.16.20] Random crash on startup if CPU usage is high
- Attachments
-
- factorio-dump-previous.dmp
- Unexpected error occurred dump
- (519.97 KiB) Downloaded 46 times
-
- factorio-previous.log
- Unexpected error occurred.
- (7.48 KiB) Downloaded 70 times
-
- factorio-previous.log
- Couldn't create atlas bitmap
- (7.48 KiB) Downloaded 75 times
Re: [0.16.20] Random crash on startup if CPU usage is high
Thanks for the report. It's crashing running out of memory trying to allocate a 3.3 MB buffer to load an image from disk.
Most likely your mining software is taking up a large amount of RAM and then trying to load high res sprites is taking up even more to the point of exhaustion.
You can try turning off parallel sprite loading which will reduce the amount of RAM the game wants at startup by changing the config.ini line "thread-sprite-loading" to false. (also be sure to un-comment it).
Most likely your mining software is taking up a large amount of RAM and then trying to load high res sprites is taking up even more to the point of exhaustion.
You can try turning off parallel sprite loading which will reduce the amount of RAM the game wants at startup by changing the config.ini line "thread-sprite-loading" to false. (also be sure to un-comment it).
If you want to get ahold of me I'm almost always on Discord.
Re: [0.16.20] Random crash on startup if CPU usage is high
I should have mentioned that I have 10gb free ram when the crash occurs, so it is not about running out of it.
Maybe something does not happen as fast as some other thread expects and it causes a problem?
Maybe something does not happen as fast as some other thread expects and it causes a problem?
Re: [0.16.20] Random crash on startup if CPU usage is high
It crashed failing to allocate memory which is 100% an "out of memory" issue regardless of what you see in task manager at the time of it happening.migulis wrote:I should have mentioned that I have 10gb free ram when the crash occurs, so it is not about running out of it.
Maybe something does not happen as fast as some other thread expects and it causes a problem?
If you want to get ahold of me I'm almost always on Discord.