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

Bug/Issue Linux crash on loading/saving file

Discussion in 'Mac / Linux Bug Reports' started by toote, Jul 29, 2016.

  1. toote

    toote Big Damn Hero

    When starting a new game, the game crashes at the point the actual game interaction would start. Basically, when it creates the save game file (the black screen that just reads "Saving..." in the lower bottom).


    The console output:

    $ ./StardewValley.bin.x86
    Cannot connect to server socket err = No such file or directory
    Cannot connect to server request channel
    jack server is not running or cannot be started
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
    Setting breakpad minidump AppID = 413150
    Steam_SetMinidumpSteamID: Caching Steam ID: 76561198184151331 [API loaded no]
    [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'StardewValley.SaveGame' threw an exception. ---> System.Exception: Compiler failed to produce the assembly. Output: ''
    at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) <0xa5f9a158 + 0x009f7> in <filename unknown>:0
    at Mono.CSharp.CSharpCodeCompiler.CompileFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0xa5f986e8 + 0x001b3> in <filename unknown>:0
    at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0xa5f98638 + 0x0002b> in <filename unknown>:0
    at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0xa5f98020 + 0x00035> in <filename unknown>:0
    at System.Xml.Serialization.Compiler.Compile (System.Reflection.Assembly parent, System.String ns, System.Xml.Serialization.XmlSerializerCompilerParameters xmlParameters, System.Security.Policy.Evidence evidence) <0xa5f96df0 + 0x003e0> in <filename unknown>:0
    at System.Xml.Serialization.TempAssembly.GenerateAssembly (System.Xml.Serialization.XmlMapping[] xmlMappings, System.Type[] types, System.String defaultNamespace, System.Security.Policy.Evidence evidence, System.Xml.Serialization.XmlSerializerCompilerParameters parameters, System.Reflection.Assembly assembly, System.Collections.Hashtable assemblies) <0xa5fa0000 + 0x00d7b> in <filename unknown>:0
    at System.Xml.Serialization.TempAssembly..ctor (System.Xml.Serialization.XmlMapping[] xmlMappings, System.Type[] types, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0xe731e5d0 + 0x001c3> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly (System.Xml.Serialization.XmlMapping xmlMapping, System.Type type, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0xa603b8d0 + 0x000b3> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Xml.Serialization.XmlAttributeOverrides overrides, System.Type[] extraTypes, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0xa6034988 + 0x001e3> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Xml.Serialization.XmlAttributeOverrides overrides, System.Type[] extraTypes, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace, System.String location) <0xa6034930 + 0x00043> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Type[] extraTypes) <0xa60348e0 + 0x0003f> in <filename unknown>:0
    at StardewValley.SaveGame..cctor () <0xa6034000 + 0x008c7> in <filename unknown>:0
    --- End of inner exception stack trace ---
    at StardewValley.Menus.SaveGameMenu.update (Microsoft.Xna.Framework.GameTime time) <0xa60e78d0 + 0x0011b> in <filename unknown>:0
    at StardewValley.Game1.updateActiveMenu (Microsoft.Xna.Framework.GameTime gameTime) <0xdfd5a958 + 0x00bc0> in <filename unknown>:0
    at StardewValley.Game1.Update (Microsoft.Xna.Framework.GameTime gameTime) <0xdfd56000 + 0x025e7> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) <0xe490f6d8 + 0x0003f> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Tick () <0xe490edf0 + 0x0051f> in <filename unknown>:0
    at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () <0xe490eb68 + 0x00037> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0xf400a350 + 0x0014b> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Run () <0xf400a2f8 + 0x00027> in <filename unknown>:0
    at StardewValley.Program.Main (System.String[] args) <0xf708f058 + 0x0009b> in <filename unknown>:0

    There is no other log file as indicated in the instructions to submit bugs at ~/.config/StardewValley/ErrorLogs

    When I try to Load a game (of which there are none because I am unable to start a game). The following error appears:

    $ ./StardewValley.bin.x86
    Cannot connect to server socket err = No such file or directory
    Cannot connect to server request channel
    jack server is not running or cannot be started
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
    Setting breakpad minidump AppID = 413150
    Steam_SetMinidumpSteamID: Caching Steam ID: 76561198184151331 [API loaded no]
    [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'StardewValley.SaveGame' threw an exception. ---> System.Exception: Compiler failed to produce the assembly. Output: ''
    at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) <0xbfe07190 + 0x009f7> in <filename unknown>:0
    at Mono.CSharp.CSharpCodeCompiler.CompileFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0xbfe25e00 + 0x001b3> in <filename unknown>:0
    at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0xbfe25d50 + 0x0002b> in <filename unknown>:0
    at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0xbfe25738 + 0x00035> in <filename unknown>:0
    at System.Xml.Serialization.Compiler.Compile (System.Reflection.Assembly parent, System.String ns, System.Xml.Serialization.XmlSerializerCompilerParameters xmlParameters, System.Security.Policy.Evidence evidence) <0xbfe24508 + 0x003e0> in <filename unknown>:0
    at System.Xml.Serialization.TempAssembly.GenerateAssembly (System.Xml.Serialization.XmlMapping[] xmlMappings, System.Type[] types, System.String defaultNamespace, System.Security.Policy.Evidence evidence, System.Xml.Serialization.XmlSerializerCompilerParameters parameters, System.Reflection.Assembly assembly, System.Collections.Hashtable assemblies) <0xcbf0e818 + 0x00d7b> in <filename unknown>:0
    at System.Xml.Serialization.TempAssembly..ctor (System.Xml.Serialization.XmlMapping[] xmlMappings, System.Type[] types, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0xe777b5d0 + 0x001c3> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly (System.Xml.Serialization.XmlMapping xmlMapping, System.Type type, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0xd21108e8 + 0x000b3> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Xml.Serialization.XmlAttributeOverrides overrides, System.Type[] extraTypes, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace, System.String location, System.Security.Policy.Evidence evidence) <0xd21098a8 + 0x001e3> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Xml.Serialization.XmlAttributeOverrides overrides, System.Type[] extraTypes, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace, System.String location) <0xd2109850 + 0x00043> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Type[] extraTypes) <0xd2109800 + 0x0003f> in <filename unknown>:0
    at StardewValley.SaveGame..cctor () <0xd2108f20 + 0x008c7> in <filename unknown>:0
    --- End of inner exception stack trace ---
    at StardewValley.Menus.TitleMenu.update (Microsoft.Xna.Framework.GameTime time) <0xdfd55f80 + 0x00957> in <filename unknown>:0
    at StardewValley.Game1.updateActiveMenu (Microsoft.Xna.Framework.GameTime gameTime) <0xdfd526a0 + 0x00bc0> in <filename unknown>:0
    at StardewValley.Game1.Update (Microsoft.Xna.Framework.GameTime gameTime) <0xdfd4e000 + 0x02a3f> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) <0xdfe1abb0 + 0x0003f> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Tick () <0xdfe1a2c8 + 0x0051f> in <filename unknown>:0
    at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () <0xdfe1a040 + 0x00037> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0xf3fc03c0 + 0x0014b> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Run () <0xf3fc0368 + 0x00027> in <filename unknown>:0
    at StardewValley.Program.Main (System.String[] args) <0xf7045058 + 0x0009b> in <filename unknown>:0 ​


    My system:
    OS: Debian testing (updated to latest packages) 32 bits
    Kernel: 4.6.0-1-amd64 (I know, it is weird, that is why I run the game from the console)
    BuildID 1246815
     
      Last edited: Jul 29, 2016
    • tccoxon

      tccoxon Procedurally Generated Programmer

      Yeah your setup with a 32-bit distro and a 64-bit kernel is a little odd, and it wouldn't entirely surprise me if that confuses a JIT runtime like Mono... If possible, would you be able to try running a 32-bit kernel and seeing if the same crash occurs?
       
      • toote

        toote Big Damn Hero

        I will see if I can do that... but while installing a 32 bit kernel is not a problem making it run due to the combination of all the drivers in both architectures may be a problem.

        Will let you know if I can try anything.
        --- Post updated ---
        Indeed, with a 32-bit kernel the game can go through with the creation of the save-file.

        If you ever plan to work on this, let me know if I can further assist you with debugging.
         

        Share This Page