You can sign up to get a daily email of our articles, see the Mailing List page!
Stardew Valley won't launch (Steam - Ubuntu)
Page: 1/2»
  Go to:

NOTE: Game works with Proton 5.0-9. (Unstable, crashes) But it should work natively.



When I launch my game from Steam, it gets stuck in "Running..." (Game window won't show up) freezes my computer for a bit and then crashes.

Log:

Spoiler, click me
GameAction [AppID 413150, ActionID 2] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 413150, ActionID 2] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 413150, ActionID 2] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 413150, ActionID 2] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 413150, ActionID 2] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 413150, ActionID 2] : LaunchApp continues with user response "CreatingProcess"
Game update: AppID 413150 "", ProcID 3276, IP 0.0.0.0:0
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Starting app 413150
>>> Adding process 3276 for game ID 413150
GameAction [AppID 413150, ActionID 2] : LaunchApp changed task to WaitingGameWindow with ""
>>> Adding process 3277 for game ID 413150
>>> Adding process 3278 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 413150, ActionID 2] : LaunchApp changed task to Completed with ""
>>> Adding process 3279 for game ID 413150
>>> Adding process 3280 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 3281 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 3282 for game ID 413150
>>> Adding process 3283 for game ID 413150
exception inside UnhandledException handler: The type initializer for 'System.Console' threw an exception.
 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) <0x41faa270 + 0x00127> in <filename unknown>:0
  at System.TermInfoReader..ctor (System.String term, System.String filename) <0x41faa0b0 + 0x00127> in <filename unknown>:0
  at System.TermInfoDriver..ctor (System.String term) <0x41fa9000 + 0x00193> in <filename unknown>:0
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) <0x41fa8fc0 + 0x00027> in <filename unknown>:0
  at System.ConsoleDriver..cctor () <0x41fa8cd0 + 0x000a7> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) <0x41fa8680 + 0x00043> in <filename unknown>:0
  at System.Console..cctor () <0x41fa8390 + 0x00173> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at StardewValley.Game1.set_gameMode (Byte value) <0x41faafc0 + 0x00053> in <filename unknown>:0
  at StardewValley.Program.handleException (System.Object sender, System.UnhandledExceptionEventArgs args) <0x41faac20 + 0x00047> in <filename unknown>:0
free(): invalid pointer
Stacktrace:
 
 
Native stacktrace:
 
        ./StardewValley.bin.x86_64() [0x45124d]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0) [0x7f43674503c0]
        /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb) [0x7f436727418b]
        /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b) [0x7f4367253859]
        /lib/x86_64-linux-gnu/libc.so.6(+0x903ee) [0x7f43672be3ee]
        /lib/x86_64-linux-gnu/libc.so.6(+0x9847c) [0x7f43672c647c]
        /lib/x86_64-linux-gnu/libc.so.6(+0x99cac) [0x7f43672c7cac]
        /home/nehu/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so(+0x2341b) [0x7f43675e341b]
        /lib/x86_64-linux-gnu/libc.so.6(__cxa_finalize+0xce) [0x7f436727815e]
        /home/nehu/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so(+0x7443) [0x7f43675c7443]
 
Debug info from gdb:
 
pid 3286 != 3283, skipping destruction (fork without exec?)
 
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
 
/home/nehu/.local/share/Steam/steamapps/common/Stardew Valley/StardewValley: line 38:  3283 Aborted                 (core dumped) ./StardewValley.bin.x86_64 $@
Game removed: AppID 413150 "", ProcID 3276
Uploaded AppInterfaceStats to Steam
Exiting app 413150
No cached sticky mapping in ActivateActionSet.

Tried using TERM=xterm steam, and launching the game.
Spoiler, click me
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 413150, ActionID 1] : LaunchApp continues with user response "CreatingProcess"
Opted-in Controller Mask for AppId 413150: 0
Game update: AppID 413150 "", ProcID 2855, IP 0.0.0.0:0
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Starting app 413150
>>> Adding process 2855 for game ID 413150
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 2856 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 2857 for game ID 413150
>>> Adding process 2859 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 2860 for game ID 413150
>>> Adding process 2861 for game ID 413150
>>> Adding process 2862 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 2863 for game ID 413150
Please use SDL 2.0.5 or higher.
Window_ClientSizeChanged(); Window.ClientBounds={X:560 Y:300 Width:1280 Height:720}
Window_ClientSizeChanged(); options is null, returning.
/home/nehu/.local/share/Steam/steamapps/common/Stardew Valley/StardewValley: line 38:  2863 Killed                  ./StardewValley.bin.x86_64 $@
/data/src/common/pipes.cpp (770) : Assertion Failed: fatal stalled cross-thread pipe
/data/src/common/pipes.cpp (770) : Assertion Failed: fatal stalled cross-thread pipe
/data/src/common/pipes.cpp (770) : Fatal assert failed: /data/src/common/pipes.cpp, line 770.  Application exiting.
 
/data/src/common/pipes.cpp (770) : Fatal assert failed: /data/src/common/pipes.cpp, line 770.  Application exiting.
 
Installing breakpad exception handler for appid(steam)/version(1591251555)
[0704/133030.318388:INFO:crash_reporting.cc(270)] Crash reporting enabled for process: renderer
[0704/133032.068795:INFO:crash_reporting.cc(270)] Crash reporting enabled for process: renderer
crash_20200704133010_27.dmp[2973]: Uploading dump (out-of-process)
/tmp/dumps/crash_20200704133010_27.dmp
_ExitOnFatalAssert
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$
nehu@nehu-pc:~$ [0704/133036.644056:ERROR:x11_software_bitmap_presenter.cc(133)] XGetWindowAttributes failed for window 0
[0704/133038.002517:WARNING:x11_util.cc(1415)] X error received: serial 163, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 55, minor_code 0 (X_CreateGC)
[0704/133038.002458:WARNING:x11_util.cc(1415)] X error received: serial 164, error_code 3 (BadWindow (invalid Window parameter)), request_code 3, minor_code 0 (X_GetWindowAttributes)
[0704/133039.790062:WARNING:x11_util.cc(1415)] X error received: serial 166, error_code 13 (BadGC (invalid GC parameter)), request_code 60, minor_code 0 (X_FreeGC)
crash_20200704133010_27.dmp[2973]: Finished uploading minidump (out-of-process): success = yes
crash_20200704133010_27.dmp[2973]: response: CrashID=bp-b774d342-e9a3-4f0c-9e51-c14df2200704
crash_20200704133010_27.dmp[2973]: file ''/tmp/dumps/crash_20200704133010_27.dmp'', upload yes: ''CrashID=bp-b774d342-e9a3-4f0c-9e51-c14df2200704''


Tried launching it directly from the game folder with:

StardewValley.exe
StardewValley.bin.x86
StardewValley.bin.x86_64

With and without steam open. (Fresh installation). Locks my computer for a bit, steam won't even open.

My other games that work natively, without any tweaking (Currently I only installed Torchlight II and Rimworld) use QTerminal to launch. While Stardew Valley uses Mono Runtime. So Mono must be the problem?




• Lubuntu 20.04 LTS - 64 bits
• Intel Celeron CPU G540 @2.50GHz
• 2GB ram
• ATI Radeon HD 5450


Last edited by DesperateNewbie on 10 July 2020 at 5:05 pm UTC

eldaking 4 Jul

From the error messages, it looks to be not a problem with the game but with Steam (more specifically, the in-game overlay). The first thing I would try to do was to launch the game directly from the folder if you haven't done that already (i.e., running the executable directly) instead of using steam or the steam-created shortcuts (that launch steam first).

Are other Steam game working correctly right now? If they are, it might be an issue of how the game communicates with the steam overlay. I would recommend verifying the files with Steam, which would re-download any missing or corrupted files. I can't test it as I have Stardew Valley on GOG instead of Steam. Otherwise, maybe it is an issue with your Steam installation, and re-installing Steam might help.

Quoting: eldakingFrom the error messages, it looks to be not a problem with the game but with Steam (more specifically, the in-game overlay). The first thing I would try to do was to launch the game directly from the folder if you haven't done that already (i.e., running the executable directly) instead of using steam or the steam-created shortcuts (that launch steam first).

Are other Steam game working correctly right now? If they are, it might be an issue of how the game communicates with the steam overlay. I would recommend verifying the files with Steam, which would re-download any missing or corrupted files. I can't test it as I have Stardew Valley on GOG instead of Steam. Otherwise, maybe it is an issue with your Steam installation, and re-installing Steam might help.

Hello. I'm really dumb. I bought SW mainly because it was Linux compatible and I thought it would run straight 'out of the box' without any tweaking, like all my other games did. Turns out I just had to run it with Proton 5.0-9. So I guess the "Native" thing is a lie? Or doesn't work at all?

Thanks for helping and I'm sorry for wasting your time. I'm new to linux gaming. This is embarrassing!

Liam Dawe 5 Jul

I've never had a problem with it, although I can't say what your issue was since you edited your post which I assume has removed any log file that was there. Please dont do that, it prevents future help to find the actual issue as it might affect you elsewhere. Proton should not be needed.

Quoting: Liam DaweI've never had a problem with it, although I can't say what your issue was since you edited your post which I assume has removed any log file that was there. Please dont do that, it prevents future help to find the actual issue as it might affect you elsewhere. Proton should not be needed.

I figured, since my fix wasn't related to the log I gave, may as well just remove it. But I'll edit my post and add it again!

You're right, Proton shouldn't be needed. So this thread is not really "solved" I guess.

Liam Dawe 5 Jul

Looks like this was your actual issue: https://stackoverflow.com/questions/49242075/mono-bug-magic-number-is-wrong-542

You can probably just add "export TERM=xterm" to the StardewValley launch script. Seems like a common issue that other games have seen too, it's a problem with Mono.

Same issues as Pyre for some: https://www.gog.com/forum/pyre/you_may_have_trouble_running_this_from_the_terminal_on_linux
Same issue as Celeste for some: https://steamcommunity.com/app/504230/discussions/4/1726450077639752239/#c1726450077640398502

You get the idea.

Last edited by Liam Dawe on 5 July 2020 at 4:30 pm UTC

I had the same issue shown in the first log ("Magic number is wrong: 542") Redirecting the output to a file when launching StardewValley directly would allow it to launch.
In my environment, TERM was set to xterm-256color. (This was after upgrading to Ubuntu 20.04, but I'm not sure this caused the change in the TERM variable, or the error in the terminfo database). Changing TERM to 'xterm' fixed the problem for me and Stardew Valley would launch.

I realize the original poster tried this, and it didn't work for them (well, it got a bit further and stopped on a new error). I'm putting this here to be clear on the first step to try in case anyone else runs into the first problem.

Quoting: Liam DaweLooks like this was your actual issue: https://stackoverflow.com/questions/49242075/mono-bug-magic-number-is-wrong-542

You can probably just add "export TERM=xterm" to the StardewValley launch script. Seems like a common issue that other games have seen too, it's a problem with Mono.

Same issues as Pyre for some: https://www.gog.com/forum/pyre/you_may_have_trouble_running_this_from_the_terminal_on_linux
Same issue as Celeste for some: https://steamcommunity.com/app/504230/discussions/4/1726450077639752239/#c1726450077640398502

You get the idea.
I modified the SV launch script, adding "export TERM=xterm" before "if [ "$ARCH" == "x86_64" ]; then"

SV Shell Script
Spoiler, click me
#!/bin/bash
# MonoKickstart Shell Script
# Written by Ethan "flibitijibibo" Lee

# Move to script's directory
cd "`dirname "$0"`"

# Get the system architecture
UNAME=`uname`
ARCH=`uname -m`

# MonoKickstart picks the right libfolder, so just execute the right binary.
if [ "$UNAME" == "Darwin" ]; then
# ... Except on OSX.
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:./osx/

# El Capitan is a total idiot and wipes this variable out, making the
# Steam overlay disappear. This sidesteps "System Integrity Protection"
# and resets the variable with Valve's own variable (they provided this
# fix by the way, thanks Valve!). Note that you will need to update your
# launch configuration to the script location, NOT just the app location
# (i.e. Kick.app/Contents/MacOS/Kick, not just Kick.app).
# -flibit
if [ "$STEAM_DYLD_INSERT_LIBRARIES" != "" ] && [ "$DYLD_INSERT_LIBRARIES" == "" ]; then
export DYLD_INSERT_LIBRARIES="$STEAM_DYLD_INSERT_LIBRARIES"
fi

ln -sf mcs.bin.osx mcs
./StardewValley.bin.osx $@
else
export TERM=xterm
if [ "$ARCH" == "x86_64" ]; then
ln -sf mcs.bin.x86_64 mcs
./StardewValley.bin.x86_64 $@
else
ln -sf mcs.bin.x86 mcs
./StardewValley.bin.x86 $@
fi
fi


Game didn't launch.

Quoting: gaminglemurI had the same issue shown in the first log ("Magic number is wrong: 542") Redirecting the output to a file when launching StardewValley directly would allow it to launch.
In my environment, TERM was set to xterm-256color. (This was after upgrading to Ubuntu 20.04, but I'm not sure this caused the change in the TERM variable, or the error in the terminfo database). Changing TERM to 'xterm' fixed the problem for me and Stardew Valley would launch.
I realize the original poster tried this, and it didn't work for them (well, it got a bit further and stopped on a new error). I'm putting this here to be clear on the first step to try in case anyone else runs into the first problem.

TERM was set to xterm-256color in my case too. I changed it to xterm, and launched the game (With the modified shell script)

It didn't work;

Spoiler, click me
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 413150, ActionID 1] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 413150, ActionID 1] : LaunchApp continues with user response "CreatingProcess"
Opted-in Controller Mask for AppId 413150: 0
Game update: AppID 413150 "", ProcID 2267, IP 0.0.0.0:0
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Starting app 413150
>>> Adding process 2267 for game ID 413150
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
>>> Adding process 2268 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 413150, ActionID 1] : LaunchApp changed task to Completed with ""
>>> Adding process 2269 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 2270 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 2271 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 2272 for game ID 413150
>>> Adding process 2273 for game ID 413150
ERROR: ld.so: object '/home/nehu/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 2274 for game ID 413150
Please use SDL 2.0.5 or higher.
Window_ClientSizeChanged(); Window.ClientBounds={X:560 Y:300 Width:1280 Height:720}
Window_ClientSizeChanged(); options is null, returning.
/home/nehu/.local/share/Steam/steamapps/common/Stardew Valley/StardewValley: line 39:  2274 Killed                  ./StardewValley.bin.x86_64 $@
Game removed: AppID 413150 "", ProcID 2267 
Uploaded AppInterfaceStats to Steam
Exiting app 413150

I'm trying to figure out what I did wrong. Any ideas?

Liam Dawe 6 Jul

Are there any logs in: ~/.config/StardewValley/ErrorLogs ?

Additionally, try it in windowed mode to check if it's a full-screen issue. You can switch it in the ~/.config/StardewValley/startup_preferences file.

Quoting: Liam DaweAre there any logs in: ~/.config/StardewValley/ErrorLogs ?

Additionally, try it in windowed mode to check if it's a full-screen issue. You can switch it in the ~/.config/StardewValley/startup_preferences file.

I didn't find any folder related to Stardew Valley in .config.

I got really tired of testing. With every single change, I had to forcefully restart my computer because it completely freezes everytime I launch the game.

I give up. I must be the only guy with this problem lol. I would play with proton but is unstable and it crashes. Refunding.

Last edited by DesperateNewbie on 7 July 2020 at 1:48 am UTC

Liam Dawe 9 Jul

It's not an overlay problem, those errors in the log about it can be entirely ignored.

While you're here, please consider supporting GamingOnLinux on:

Patreon, Liberapay or PayPal Donation.

We have no adverts, no paywalls, no timed exclusive articles. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!

You need to Register and Login to comment, submit articles and more.


Or login with...