1. This forum is archived for reference. For support & bug reports visit the help section of forums.stardewvalley.net

[Solved] Crash-to-Desktop/Black screen on Linux

Discussion in 'Mac / Linux Bug Reports' started by Gangsir, Jul 25, 2016.

  1. DunbarTrout

    DunbarTrout Space Hobo

    Using Ubuntu 16.04.1. Enrolled in beta and ran the intro. Once the Mayor leaves and tells me to go to bed, it crashes.

    Here is the link to the error log:

    http://pastebin.com/MCZGJmC0
     
    • meldrian[holarse]

      meldrian[holarse] Intergalactic Tourist

      Hi there, Ubuntu14.04.4 LTS
      getting this when i try to start the game from steam (64bit):

      shock@spock:~/.steam/steam/steamapps/common/Stardew Valley$ ./StardewValley.bin.x86_64
      [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Specified cast is not valid.
      at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection () <0x41b7a220 + 0x00034> in <filename unknown>:0
      at System.Diagnostics.DiagnosticsConfiguration.Initialize () <0x41b7a0c0 + 0x0009f> in <filename unknown>:0
      at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize () <0x41b7a030 + 0x0000f> in <filename unknown>:0
      at System.Diagnostics.TraceInternal.InitializeSettings () <0x41b79e40 + 0x000d3> in <filename unknown>:0
      at System.Diagnostics.TraceInternal.get_UseGlobalLock () <0x41b79e10 + 0x0000b> in <filename unknown>:0
      at System.Diagnostics.TraceInternal.WriteLine (System.String message) <0x41b79600 + 0x00077> in <filename unknown>:0
      at System.Diagnostics.Debug.WriteLine (System.String message) <0x41b794c0 + 0x0000f> in <filename unknown>:0
      at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) <0x41b78af0 + 0x001c7> in <filename unknown>:0
      at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) <0x41b784d0 + 0x00027> in <filename unknown>:0
      at Microsoft.Xna.Framework.Game..ctor () <0x41b75f00 + 0x0081f> in <filename unknown>:0
      at StardewValley.Game1..ctor () <0x41b75220 + 0x0012b> in <filename unknown>:0
      at StardewValley.Program.Main (System.String[] args) <0x41b4ef30 + 0x00087> in <filename unknown>:0

      launching the 32bit binary directly opens a new black window, gives no useful information whatsoever.
      ./StardewValley.bin.x86
      Setting breakpad minidump AppID = 413150
      Steam_SetMinidumpSteamID: Caching Steam ID: 76561197964428586 [API loaded no]

      Hope this helps somehow.
       
      • kathaj

        kathaj Space Hobo

        Same error as OP. When I try to launch SW through Steam, it says "preparing to launch Stardew Valley", then nothing. It seems to run for a very short time, then chrashes (the library bar is updated).


        Message: Specified cast is not valid.
        InnerException:
        Stack Trace: at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection () <0x413bb220 + 0x00034> in <filename unknown>:0
        at System.Diagnostics.DiagnosticsConfiguration.Initialize () <0x413bb0c0 + 0x0009f> in <filename unknown>:0
        at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize () <0x413bb030 + 0x0000f> in <filename unknown>:0
        at System.Diagnostics.TraceInternal.InitializeSettings () <0x413bae40 + 0x000d3> in <filename unknown>:0
        at System.Diagnostics.TraceInternal.get_UseGlobalLock () <0x413bae10 + 0x0000b> in <filename unknown>:0
        at System.Diagnostics.TraceInternal.WriteLine (System.String message) <0x413ba600 + 0x00077> in <filename unknown>:0
        at System.Diagnostics.Debug.WriteLine (System.String message) <0x413ba4c0 + 0x0000f> in <filename unknown>:0
        at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) <0x413b9af0 + 0x001c7> in <filename unknown>:0
        at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) <0x413b94d0 + 0x00027> in <filename unknown>:0
        at Microsoft.Xna.Framework.Game..ctor () <0x413b6f00 + 0x0081f> in <filename unknown>:0
        at StardewValley.Game1..ctor () <0x413b6220 + 0x0012b> in <filename unknown>:0
        at StardewValley.Program.Main (System.String[] args) <0x4138ff30 + 0x00087> in <filename unknown>:0


        Debian 8.2, 64bit
        Latest version of Steam
        Nvidia GTX750, proprietary drivers (352.79)
        Intel i5-750
         
        • Gangsir

          Gangsir Space Spelunker

          Yep, everyone here seems to have two distinct crashes. Some can launch and then crash on save, some immediately crash. I wonder how easy this would be to fix, considering there's so many people experiencing what looks to be the exact same problem.
           
          • MysticTempest

            MysticTempest Spaceman Spiff

            Update:

            I was able to get the game running using the following launch option: "-force-glcore"


            I tried both binaries once again, even though I'm on a 64bit system:

            The x86 binary launches, and runs fine. Except for the character creation screen. Text entry is messed up, and extra characters are added in every keystroke.

            The x64 binary launches perfectly for me using the above launch options. Text entry is fine, intro is fine. So far it works nicely now.
             
            • Gangsir

              Gangsir Space Spelunker

              I tried that argument through steam, failed to launch. Then, tried it on the 64 bit binary(StardewValley.bin.x86_64), same result. (Both spat out a log similar to my original crash log)


              [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Specified cast is not valid.
              at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection () <0x4009e220 + 0x00034> in <filename unknown>:0
              at System.Diagnostics.DiagnosticsConfiguration.Initialize () <0x4009e0c0 + 0x0009f> in <filename unknown>:0
              at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize () <0x4009e030 + 0x0000f> in <filename unknown>:0
              at System.Diagnostics.TraceInternal.InitializeSettings () <0x4009de40 + 0x000d3> in <filename unknown>:0
              at System.Diagnostics.TraceInternal.get_UseGlobalLock () <0x4009de10 + 0x0000b> in <filename unknown>:0
              at System.Diagnostics.TraceInternal.WriteLine (System.String message) <0x4009d600 + 0x00077> in <filename unknown>:0
              at System.Diagnostics.Debug.WriteLine (System.String message) <0x4009d4c0 + 0x0000f> in <filename unknown>:0
              at Microsoft.Xna.Framework.SdlGamePlatform..ctor (Microsoft.Xna.Framework.Game game) <0x4009caf0 + 0x001c7> in <filename unknown>:0
              at Microsoft.Xna.Framework.GamePlatform.PlatformCreate (Microsoft.Xna.Framework.Game game) <0x4009c4d0 + 0x00027> in <filename unknown>:0
              at Microsoft.Xna.Framework.Game..ctor () <0x40099f00 + 0x0081f> in <filename unknown>:0
              at StardewValley.Game1..ctor () <0x40099220 + 0x0012b> in <filename unknown>:0
              at StardewValley.Program.Main (System.String[] args) <0x40072f30 + 0x00087> in <filename unknown>:0


              Then, tried it on the x86 binary(StardewValley.bin.x86), and it launched to a black screen with the sound of birds chirping. No error log. Still unplayable, but...Progress!
              --- Post updated ---
              After the most recent patch (Build number 1246815), the game no longer crashes on startup. It instead produces a completely black window, with the sound of birds chirping. This happens no matter the way I launch it.

              My attempts to launch via the binaries:


              noah@noah-HP-Pavilion-dv4-Notebook-PC:~/.local/share/Steam/steamapps/common/Stardew Valley$ ./StardewValley.bin.x86_64
              Please use SDL 2.0.5 or higher.
              Setting breakpad minidump AppID = 413150
              Steam_SetMinidumpSteamID: Caching Steam ID: REDACTED [API loaded no]
              Killed
              noah@noah-HP-Pavilion-dv4-Notebook-PC:~/.local/share/Steam/steamapps/common/Stardew Valley$ ./StardewValley.bin.x86
              Setting breakpad minidump AppID = 413150
              Steam_SetMinidumpSteamID: Caching Steam ID: REDACTED [API loaded no]
              Killed


              The "Please use SDL 2.0.5 or higher" line is interesting. An issue on my end?

              Launching via steam causes the same result. But, it's at least staying open, just with a black screen. Progress!
               
                Last edited: Jul 26, 2016
              • Lazarus_long

                Lazarus_long Void-Bound Voyager

                I do not think the SDL error is the source of your problem. I get it too and and I am not crashing. A quick look through the SDL libraries available in the Ubuntu repositories shows libsdl2-2.0-0 as the highest stable version. Unless they are pulling the *sdl.so from another package they must be compiling against a slightly newer version.
                 
                • Bromine

                  Bromine Void-Bound Voyager

                  Last edited: Jul 27, 2016
                • Gangsir

                  Gangsir Space Spelunker

                  Interesting. Mine does the same, but doesn't produce an error log.
                   
                  • Lazarus_long

                    Lazarus_long Void-Bound Voyager

                    Looking in the install directory I see MonoGame.Framework.dll.config and it's a text file containing
                    Code:
                    <?xml version="1.0" encoding="utf-8"?>
                    <configuration>
                       <dllmap dll="SDL2.dll" os="osx" target="libSDL2.dylib"/>
                       <dllmap dll="soft_oal.dll" os="osx" target="libopenal.dylib" />
                       <dllmap dll="SDL2.dll" os="linux" cpu="x86" target="./lib/libSDL2-2.0.so.0"/>
                       <dllmap dll="soft_oal.dll" os="linux" cpu="x86" target="./lib/libopenal.so.1" />
                       <dllmap dll="SDL2.dll" os="linux" cpu="x86-64" target="./lib64/libSDL2-2.0.so.0"/>
                       <dllmap dll="soft_oal.dll" os="linux" cpu="x86-64" target="./lib64/libopenal.so.1" />
                    </configuration>
                    So that shows us that the game supplied it's own version of the sdl and openal libraries. Gangsir, your Graphics card it the onboard Intel, right? And what about you Bromine?
                     
                      Last edited: Jul 27, 2016
                    • Bromine

                      Bromine Void-Bound Voyager

                      These are my specs! :D
                       
                      • Gangsir

                        Gangsir Space Spelunker

                        Correct. I don't think this is a graphics card issue, because lots of people with varied graphics cards(My Intel, other Intels, AMD, etc) are experiencing this crash/black screen. I think it's an issue on the dev end.
                         
                        • Lazarus_long

                          Lazarus_long Void-Bound Voyager

                          I think you are right. I just wish I new what changed in the last update, because it fixed my crash and I am able to play on my intel desktop with nvidia graphics and Mint 18, but the two of you can't play on your laptops. I was hoping for more in common between your two systems. I would love to troubleshoot, but without knowing more of what the game is or isn't doing it would just be a shot in the dark. Even the error logs are not very informative. <sigh>
                           
                          • MysticTempest

                            MysticTempest Spaceman Spiff

                            So, I've been trying to break the game since I got it working But, I've deleted & reinstalled a few times; even stopped using that launch option I mentioned and it still works for me. So, I'm not too sure what's up at the moment.
                            I'm researching debugging stuff like this at the moment: show libraries used by executable

                            And, attached an output of the command shown in the link above which is a list of files opened by the 64bit Stardew binary. My game is running fine so maybe it'll help someone compare.
                             

                              Attached Files:

                            • paragordius

                              paragordius Lucky Number 13

                              I'm also getting the black screen/birds chirping on the new update (basically the same result as launching the 32bit bin directly).

                              On another note, it actually starts in my Chromebook's Ubuntu chroot ¯\_(ツ)_/¯
                               
                              • ShneekeyTheLost

                                ShneekeyTheLost Master Astronaut

                                I'm getting the same issue everyone else is with the black screen and birds chirping. I tried running it with elevated privileges to see if it was an issue with not wanting to run something because of sudo, but that didn't help.

                                Running an AM3+ board with an AMD FX-8320 and an nvidia GeForce 730. Running Mint 17.

                                I suspect this is the crossover between either OpenGL or MONO and XNA, but I have no proof to support this suspicion. I tried running it with Steam Overlay disabled, because I know that can sometimes cause issues (it does when I try to run Fallout: New Vegas through WINE), but that didn't help either.
                                 
                                • dellis1972

                                  dellis1972 Space Hobo

                                  For those of you having the black screen issue. If you have mono installed can you try the following from the installation directory

                                  `export MONO_LOG_LEVEL=debug && mono -v StardewValley.exe`

                                  And post any logs, it might contain some useful information.
                                  Warning.. it will spit out a TON of text.
                                   
                                  • veoeluz

                                    veoeluz Intergalactic Tourist

                                    Did as dellis suggested. see log.
                                     

                                      Attached Files:

                                    • Gangsir

                                      Gangsir Space Spelunker

                                      Alright, see attached file. It still launches to a black screen when doing that, by the way.

                                      Oh, and since the amount of text exceeds my terminal history, I had to send the output into a file to get it:

                                      Code:
                                       export MONO_LOG_LEVEL=debug && mono -v StardewValley.exe > monoexport.txt 
                                       

                                        Attached Files:

                                      • ShneekeyTheLost

                                        ShneekeyTheLost Master Astronaut

                                        Please see attached MONO log:
                                         

                                          Attached Files:

                                        Share This Page