[1.1.87] Linux - Factorio crashing on big maps

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
jogsosog
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Aug 14, 2023 1:49 pm
Contact:

[1.1.87] Linux - Factorio crashing on big maps

Post by jogsosog »

Hello, everyone

Recently I moved from my long time windows machine to a new linux one. I should stress everything worked fine in my previous install, so it's definitely not the maps being corrupted or something along those lines.

This is a new Arch install, NVIDIA GPU with drivers installed (see below).

Code: Select all

$ pacman -Qi | egrep 'Name.*(nvidia|vulkan)'                                                                                                                                                                   
Name            : nvidia
Name            : nvidia-utils
Name            : vulkan-icd-loader
Factorio has been crashing for me after a while on some big maps I have. On one of them, it simply crashes after a few seconds (a lot going on). On another one, it runs fine until I enable power lines to be visible in the world map, then it crashes too.

I have ruled out it being a HW or driver issue as this build runs GPU benchmarks just fine. Running the game also doesn't come even close to using all the machine's resources so it can't be that it's too weak. Does factorio have some specific linux dependency I am not accounting for? Leaving the logs for the second map here, let me know if the first map's logs would help as well - although they are very nearly identical, even with regards to the errors.

Code: Select all

0.000 2023-08-13 14:28:15; Factorio 1.1.87 (build 61545, linux64, full)
0.000 Operating system: Linux
0.000 Program arguments: "/opt/games/factorio/bin/x64/factorio" 
0.000 Config path: /opt/games/factorio/config/config.ini
0.000 Read data path: /opt/games/factorio/data
0.000 Write data path: /opt/games/factorio [322089/476387MB]
0.000 Binaries path: /opt/games/factorio/bin
0.002 System info: [CPU: AMD Ryzen 9 7900X 12-Core Processor, 24 cores, RAM: 31229 MB]
0.002 Environment: DISPLAY=:0 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=plasma XDG_SESSION_DESKTOP=KDE XDG_CURRENT_DESKTOP=KDE __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
0.002 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
0.006 Video driver: x11
0.006 Available displays: 1
0.006  [0]: HP P24h G4 24" - {[0,0], 1920x1080, SDL_PIXELFORMAT_RGB888, 60Hz}
0.072 Initialised OpenGL:[0] NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2; driver: 3.3.0 NVIDIA 535.98
0.072   [Extensions] s3tc:yes; KHR_debug:yes; ARB_clear_texture:yes, ARB_copy_image:yes
0.072   [Version] 3.3
0.072 Graphics settings preset: very-high
0.072   Dedicated video memory size 8192 MB
0.091 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality] [Color: 32bit]
0.091                   [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100]
0.101 [Audio] Backend:SDL(default); Driver:pulseaudio, Device:Default device, Depth:16, Channels:2, Frequency:44100
0.208 Loading mod core 0.0.0 (data.lua)
0.235 Loading mod base 1.1.87 (data.lua)
0.310 Loading mod base 1.1.87 (data-updates.lua)
0.353 Checksum for core: 1996978587
0.353 Checksum of base: 4153197346
0.456 Prototype list checksum: 3034860339
0.481 Loading sounds...
0.535 Info PlayerData.cpp:76: Local player-data.json available, timestamp 1691933125
0.535 Info PlayerData.cpp:83: Cloud player-data.json unavailable
0.595 Initial atlas bitmap size is 16384
0.611 Created atlas bitmap 16384x16372 [none]
0.612 Created atlas bitmap 16384x13224 [none]
0.612 Created atlas bitmap 8192x4188 [decal]
0.612 Created atlas bitmap 16384x5568 [low-object, linear-minification]
0.612 Created atlas bitmap 8192x4416 [mipmap, linear-minification, linear-magnification, linear-mip-level]
0.612 Created atlas bitmap 16384x6064 [terrain, mipmap, linear-minification, linear-mip-level]
0.612 Created atlas bitmap 4096x3216 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
0.612 Created atlas bitmap 4096x1840 [smoke, mipmap, linear-minification, linear-magnification]
0.612 Created atlas bitmap 4096x3088 [mipmap]
0.613 Created atlas bitmap 8192x2272 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
0.613 Created atlas bitmap 8192x1496 [alpha-mask]
0.614 Created atlas bitmap 16384x14768 [shadow, linear-magnification, alpha-mask]
0.614 Created atlas bitmap 8192x2352 [shadow, mipmap, linear-magnification, alpha-mask]
0.614 Created atlas bitmap 2048x240 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
0.618 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
0.908 Parallel Sprite Loader initialized (threads: 23)
3.739 Sprites loaded
3.748 Generated mipmaps (4) for atlas [3] of size 16384x5568   
3.751 Generated mipmaps (3) for atlas [4] of size 8192x4416   
3.768 Generated mipmaps (3) for atlas [5] of size 16384x6064   
3.771 Generated mipmaps (3) for atlas [6] of size 4096x3216   
3.772 Generated mipmaps (3) for atlas [7] of size 4096x1840   
3.785 Generated mipmaps (3) for atlas [8] of size 4096x3088   
3.798 Generated mipmaps (5) for atlas [9] of size 8192x2272   
3.800 Generated mipmaps (3) for atlas [12] of size 8192x2352   
3.811 Custom mipmaps uploaded (1942)
3.859 Factorio initialised
3.861 Info HttpSharedState.cpp:58: Downloading https://updater.factorio.com/updater/get-available-versions?username=jogsosog&token=<private>&apiVersion=2
4.381 Some core updates would be reachable if experimental updates were enabled.
4.381 0 packages available to download (experimental updates disabled).
22.056 Loading map /opt/games/factorio/saves/BigWorld.zip: 102657261 bytes.
22.063 Loading level.dat: 283000718 bytes.
22.068 Info Scenario.cpp:204: Map version 1.1.76-0
29.842 Loading script.dat: 1191 bytes.
29.843 Checksum for script /opt/games/factorio/temp/currently-playing/control.lua: 3702463597
70.652 Error CrashHandler.cpp:639: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
/tmp/factorio-build-RWsLVt/src/Util/Logger.cpp (336): Logger::writeStacktrace(FileWriteStream*, StackTraceInfo*)
/tmp/factorio-build-RWsLVt/src/Util/Logger.cpp (346): Logger::logStacktrace(StackTraceInfo*)
/tmp/factorio-build-RWsLVt/src/Util/CrashHandler.cpp (188): CrashHandler::writeStackTrace(CrashHandler::CrashReason)
/tmp/factorio-build-RWsLVt/src/Util/CrashHandler.cpp (642): CrashHandler::commonSignalHandler(int)
/tmp/factorio-build-RWsLVt/src/Util/CrashHandler.cpp (648): CrashHandler::SignalHandler(int)
0x7f190c63e70f
/tmp/factorio-build-RWsLVt/src/Entity/UpdatableEntity.cpp (143): UpdatableEntity::setActive(bool, Entity&, bool, bool) [clone .constprop.0]
/tmp/factorio-build-RWsLVt/src/Surface/ActiveEntitiesOrder.hpp (130): void EntityOrderHelpers::EntityOrderList<LogisticRobot, ConstructionRobot, Inserter, Roboport, HeatPipe, Loader, AssemblingMachine, Furnace, MiningDrill, FluidWagon, ArtilleryWagon, CargoWagon, Locomotive, Character, Boiler, Generator, BurnerGenerator, Reactor, Lab, LandMine, ArithmeticCombinator, ArtilleryFlare, ArtilleryProjectile, ArtilleryTurret, Beam, Car, SpiderVehicle, CharacterCorpse, CombatRobot, Corpse, DeciderCombinator, ElectricEnergyInterface, EnemySpawner, Explosion, FireFlame, FlameThrowerExplosion, FluidStream, FluidTurret, FlyingText, Gate, HeatInterface, HighlightBoxEntity, InfinityContainer, InfinityPipe, ItemRequestProxy, OffshorePump, ParticleSource, PowerSwitch, Projectile, Pump, Radar, ProgrammableSpeaker, RocketSilo, RocketSiloRocket, SimpleSmoke, SmokeWithTrigger, SpeechBubble, Sticker, Turret, Unit>::update<MiningDrill>(EntityOrderHelpers::ActiveEntitiesEntry&, IntrusiveListImplementation<UpdatableEntity, void, false, false>::Iterator&)
/tmp/factorio-build-RWsLVt/src/Surface/ActiveEntitiesOrder.hpp (139): EntityOrderHelpers::EntityOrderList<LogisticRobot, ConstructionRobot, Inserter, Roboport, HeatPipe, Loader, AssemblingMachine, Furnace, MiningDrill, FluidWagon, ArtilleryWagon, CargoWagon, Locomotive, Character, Boiler, Generator, BurnerGenerator, Reactor, Lab, LandMine, ArithmeticCombinator, ArtilleryFlare, ArtilleryProjectile, ArtilleryTurret, Beam, Car, SpiderVehicle, CharacterCorpse, CombatRobot, Corpse, DeciderCombinator, ElectricEnergyInterface, EnemySpawner, Explosion, FireFlame, FlameThrowerExplosion, FluidStream, FluidTurret, FlyingText, Gate, HeatInterface, HighlightBoxEntity, InfinityContainer, InfinityPipe, ItemRequestProxy, OffshorePump, ParticleSource, PowerSwitch, Projectile, Pump, Radar, ProgrammableSpeaker, RocketSilo, RocketSiloRocket, SimpleSmoke, SmokeWithTrigger, SpeechBubble, Sticker, Turret, Unit>::update(std::array<EntityOrderHelpers::ActiveEntitiesEntry, 60ul>&, IntrusiveListImplementation<UpdatableEntity, void, false, false>::Iterator&)
/tmp/factorio-build-RWsLVt/src/Surface/ActiveEntitiesList.hpp (13): ActiveEntitiesList::update()
/tmp/factorio-build-RWsLVt/src/Surface/Surface.cpp (1638): Surface::update()
/tmp/factorio-build-RWsLVt/src/Map/Map.cpp (1632): Map::updateEntities()
/tmp/factorio-build-RWsLVt/src/Map/Map.cpp (1590): Map::update()
/tmp/factorio-build-RWsLVt/src/Game.cpp (210): Game::update()
/tmp/factorio-build-RWsLVt/src/Scenario/Scenario.cpp (1346): Scenario::update()
/tmp/factorio-build-RWsLVt/src/Scenario/Scenario.cpp (1236): Scenario::updateStep()
/tmp/factorio-build-RWsLVt/src/MainLoop.cpp (1349): MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) [clone .isra.0]
/tmp/factorio-build-RWsLVt/src/MainLoop.cpp (1202): MainLoop::gameUpdateLoop(MainLoop::HeavyMode)
/opt/gcc-12.2.0/include/c++/12.2.0/bits/std_function.h (591): std::function<void ()>::operator()() const
/tmp/factorio-build-RWsLVt/src/Util/WorkerThread.cpp (72): WorkerThread::loop()
/tmp/tmp.muiMGHWJQ4/objdir/../gcc-12.2.0/libstdc++-v3/src/c++11/thread.cc (82): execute_native_thread_routine
0x7f190c68c9ea
0x7f190c71123b
0xffffffffffffffff
Stack trace logging done
70.743 Error CrashHandler.cpp:195: Map tick at moment of crash: 20513680
70.743 Error Util.cpp:100: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
User avatar
jodokus31
Smart Inserter
Smart Inserter
Posts: 1629
Joined: Sun Feb 26, 2017 4:13 pm
Contact:

Re: [1.1.87] Linux - Factorio crashing on big maps

Post by jodokus31 »

Some question come to my mind:
- Is the save from Windows? Does a new game started only on linux works fine?
- Why is the game under /opt/games/factorio/ ? Do you have the proper RW access?
- As linux user, I could try the save file and check, if it crashes for me, too. I don't have encountered anything like that, yet.
jogsosog
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Aug 14, 2023 1:49 pm
Contact:

Re: [1.1.87] Linux - Factorio crashing on big maps

Post by jogsosog »

jodokus31 wrote: Mon Aug 14, 2023 3:45 pm - Is the save from Windows? Does a new game started only on linux works fine?
The saves are from windows, yes. I would love to have a big linux save to use for testing but I simply don't. The issue seems more related to the amount of activity on the save, however, as in small bases it doesn't crash. I have also found that on a big enough online game the same is true.
jodokus31 wrote: Mon Aug 14, 2023 3:45 pm - Why is the game under /opt/games/factorio/ ? Do you have the proper RW access?
I am not using steam so I just figured /opt was as a good a place as any for this. Recently got the AUR package for factorio, which is installed in /usr and it doesn't make a difference, same issues. I have checked that I have the right permissions for everything too.
jodokus31 wrote: Mon Aug 14, 2023 3:45 pm - As linux user, I could try the save file and check, if it crashes for me, too. I don't have encountered anything like that, yet.
PM'd you the save :P
jogsosog
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Aug 14, 2023 1:49 pm
Contact:

Re: [1.1.87] Linux - Factorio crashing on big maps

Post by jogsosog »

I should also mention that the crashing is kind of random. Some times, the crash happens immediately after loading the file (full loading bar still visible). It could be 5 seconds or a minute, very unpredictable even for the same save.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14914
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.87] Linux - Factorio crashing on big maps

Post by Rseding91 »

If you have some exact steps to reproduce the crash let me know. Something like: load a save, wait 1 minute 22 seconds -> crash.

But if it's "load a save and wait between 5-50 minutes" that says your computer is most likely unstable (bad RAM, bad CPU overclock/RAM overclock) and you're getting corrupt data from that.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Technical Help”