Page 1 of 1

[raiguard][2.0.17] Crash on game start (Linux Steam)

Posted: Tue Nov 12, 2024 11:53 pm
by Illiander42
Game doesn't even get to the splash screen. Other games work fine, fullscreen and windowed.

No mods are currently enabled except Space Age (all three)

Independent install works fine, so this is a steam intergration issue.

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
   0.281 Error StacktraceToStream.cpp:14: Error getting stacktrace: /proc/self/exe
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
Stack trace logging done
   0.282 Error SDLWindow.cpp:132: SDL couldn't be initialized. SDL_Error: No available video device
   0.282 Error CrashHandler.cpp:643: Received 6
Logger::writeStacktrace skipped.
   0.282 Error Util.cpp:95: 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.
   0.282 Error MessageDialog.cpp:53: Unable to show message dialog. SDL Error: [pipe() failed: Too many open files]

Re: [2.0.17] Crash on game start (Linux Steam)

Posted: Wed Nov 13, 2024 1:55 am
by ealrann
Same here, on Archlinux.
It happened last week after a Steam update, I suppose they updated their runtime.

Running the game from the standalone version (downloaded from factorio.com) works perfectly, But impossible to run it from steam.

Here's the console log of steam when I try to launch the game :

Code: Select all

Game Recording - would start recording game 427520, but recording for this game is disabled
Adding process 171147 for gameID 427520
Adding process 171148 for gameID 427520
Adding process 171149 for gameID 427520
pid 171234 != 171230, skipping destruction (fork without exec?)
pid 171239 != 171230, skipping destruction (fork without exec?)
   0.000 Initializing Steam API.
[S_API] SteamAPI_Init(): Loaded '/home/eal/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 427520
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561197963098264 [API loaded no]
   0.000 Error CrashHandler.cpp:641: Received SIGSEGV
   0.000 Error Util.cpp:95: 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.
Adding process 171230 for gameID 427520
Gtk-Message: 02:48:55.966: Failed to load module "canberra-gtk-module"
Gtk-Message: 02:48:55.983: Failed to load module "canberra-gtk-module"
This option is not available. Please see --help for all possible usages.
   0.000 Error MessageDialog.cpp:218: Unable to show message dialog. SDL Error: [zenity reported error or failed to launch: 255]
Adding process 171260 for gameID 427520
Adding process 171261 for gameID 427520
Game Recording - game stopped [gameid=427520]
Removing process 171261 for gameID 427520
Removing process 171260 for gameID 427520
Removing process 171230 for gameID 427520
Removing process 171149 for gameID 427520
Removing process 171148 for gameID 427520
Removing process 171147 for gameID 427520

Re: [2.0.17] Crash on game start (Linux Steam)

Posted: Wed Nov 13, 2024 6:17 am
by vinzenz
Illiander42 wrote: Tue Nov 12, 2024 11:53 pm Game doesn't even get to the splash screen. Other games work fine, fullscreen and windowed.

No mods are currently enabled except Space Age (all three)

Independent install works fine, so this is a steam intergration issue.

Code: Select all

Factorio crashed. Generating symbolized stacktrace, please wait ...
   0.281 Error StacktraceToStream.cpp:14: Error getting stacktrace: /proc/self/exe
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
   0.282 Error StacktraceToStream.cpp:14: Error getting stacktrace: failed to read executable information
Stack trace logging done
   0.282 Error SDLWindow.cpp:132: SDL couldn't be initialized. SDL_Error: No available video device
   0.282 Error CrashHandler.cpp:643: Received 6
Logger::writeStacktrace skipped.
   0.282 Error Util.cpp:95: 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.
   0.282 Error MessageDialog.cpp:53: Unable to show message dialog. SDL Error: [pipe() failed: Too many open files]
These lines in your log look concerning: Opening zip /home/illy/.factorio/mods/Train_Ore_Color-016_1.2.0.zip failed: I/O error
Have you tried launching steam with this flag -compat-force-slr off ?
There's more discussion about the steam runtime in this thread: viewtopic.php?f=182&t=120128

Re: [2.0.17] Crash on game start (Linux Steam)

Posted: Wed Nov 13, 2024 9:39 am
by Illiander42
vinzenz wrote: Wed Nov 13, 2024 6:17 am These lines in your log look concerning: Opening zip /home/illy/.factorio/mods/Train_Ore_Color-016_1.2.0.zip failed: I/O error
Have you tried launching steam with this flag -compat-force-slr off ?
There's more discussion about the steam runtime in this thread: viewtopic.php?f=182&t=120128
Looks like everything works with that steam flag (and those lines go away), so I guess this confirms another one for the runtime breaking everything.

Tried forcing a few Proton versions and they crashed later in the boot process, but still before the main menu.

Merge threads because they're the same issue? (Except for their wierd systemd /home stuff (if it matters or helps, I don't run systemd and am willing to try some options if you think that would be useful for testing fixes))

Re: [2.0.17] Crash on game start (Linux Steam)

Posted: Tue Nov 19, 2024 8:59 am
by Illiander42
2.0.20 did not fix this.

Re: [raiguard][2.0.17] Crash on game start (Linux Steam)

Posted: Tue Jan 07, 2025 10:48 pm
by raiguard
This is very strange - SDL is unable to see any video devices whatsoever, so the game can't even show a window. Furthermore, zenity fails to launch so it can't even show an error box.

This honestly looks like an SLR bug to me. I would recommend opening a bug report at https://github.com/ValveSoftware/steam-runtime.

We are also investigating updating to SLR 3.0; Factorio currently uses SLR 1.0.