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

Bug/Issue Crash on creating first save or trying to load, I'm using Ubuntu 16.04 64bits

Discussion in 'Mac / Linux Bug Reports' started by Darukeru, Sep 5, 2016.

  1. Darukeru

    Darukeru Orbital Explorer

    Title explain my situation, I tried different tricks but I couldn't make it work. Running it trough terminal shows some "unhandled exception blablabla..." Error on StardewValley.GameSave... etc Error running mcs: Out of memory.

    Tried installing it on Debian 8 64bits and it worked.
     
    • tccoxon

      tccoxon Procedurally Generated Programmer

      How much free memory do you have when you run the game? Also, could you paste the whole error? Thanks.
       
      • Darukeru

        Darukeru Orbital Explorer

        How much free disk space? or how much RAM? I donĀ“t know how to check how much free RAM is available in a certain moment:/

        This is the full error:

        [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'StardewValley.SaveGame' threw an exception. ---> System.SystemException: Error running mcs: Out of memory
        at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) <0x4073cae0 + 0x0054f> in <filename unknown>:0
        at Mono.CSharp.CSharpCodeCompiler.CompileFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0x4073b8c0 + 0x001cf> in <filename unknown>:0
        at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromSourceBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0x4073b800 + 0x00033> in <filename unknown>:0
        at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource (System.CodeDom.Compiler.CompilerParameters options, System.String[] sources) <0x4073b120 + 0x00049> 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) <0x40739b70 + 0x004aa> 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) <0x4071fac0 + 0x00fb3> 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) <0x406739e0 + 0x00233> 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) <0x40714b50 + 0x000a7> 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) <0x4070d0a0 + 0x0024f> 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) <0x4070d040 + 0x0004f> in <filename unknown>:0
        at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Type[] extraTypes) <0x4070cff0 + 0x00037> in <filename unknown>:0
        at StardewValley.SaveGame..cctor () <0x4070c5b0 + 0x00a1b> in <filename unknown>:0
        --- End of inner exception stack trace ---
        at StardewValley.Menus.TitleMenu.update (Microsoft.Xna.Framework.GameTime time) <0x406dfdd0 + 0x00a83> in <filename unknown>:0
        at StardewValley.Game1.updateActiveMenu (Microsoft.Xna.Framework.GameTime gameTime) <0x406dc440 + 0x00a7d> in <filename unknown>:0
        at StardewValley.Game1.Update (Microsoft.Xna.Framework.GameTime gameTime) <0x406d7180 + 0x02a9f> in <filename unknown>:0
        at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) <0x406d6ea0 + 0x00043> in <filename unknown>:0
        at Microsoft.Xna.Framework.Game.Tick () <0x406d68f0 + 0x00363> in <filename unknown>:0
        at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () <0x406d39e0 + 0x0003f> in <filename unknown>:0
        at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0x405721c0 + 0x001c8> in <filename unknown>:0
        at Microsoft.Xna.Framework.Game.Run () <0x40572160 + 0x00027> in <filename unknown>:0
        at StardewValley.Program.Main (System.String[] args) <0x40537f20 + 0x000ab> in <filename unknown>:0

         
        • tccoxon

          tccoxon Procedurally Generated Programmer

          Try running it in Ubuntu again. If it crashes due to lack of memory again, run the following command in a terminal to check how much free memory you have:

          Code:
          grep -E 'Mem|Cache|Swap' /proc/meminfo
          
          You'll see something like this in the output:
          Code:
          MemTotal:       16363400 kB
          MemFree:         1413800 kB
          Cached:          1380612 kB
          SwapCached:       162216 kB
          SwapTotal:       4194300 kB
          SwapFree:        1922788 kB
          
          Paste that into a reply.
           
          • Lazarus_long

            Lazarus_long Void-Bound Voyager

            You can also run:

            Code:
            free -h
            This will show you the memory info in "human readable" amounts. An example when I run it on my home server:
            Code:
            $ free -h
                            total        used        free      shared  buff/cache   available
            Mem:            15G        2.3G         12G        9.0M        1.1G         12G
            Swap:           30G          0B         30G
            To get total disk usage you can try:
            Code:
            df -h
            I hope that helps a bit.
             
            • smithkevinc

              smithkevinc Void-Bound Voyager

              Bit late to this, but if you have wine-mono installed, remove it. In terminal:
              dpkg -l | grep wine-mono​
              I remove it and everything worked again.
              sudo apt remove wine-mono0.0.8 (in my case)​
              It's possible another installed mono package is getting in the way.
              For me, it was that one.
               

              Share This Page