1. Hey Guest! Our new game Wargroove has released! Check out the forums or wiki for more information!
    Dismiss Notice

[Solved] Mono mscorlib.dll error - Linux

Discussion in 'Mac / Linux Bug Reports' started by Uyuiyu, Jul 11, 2017.

  1. Uyuiyu

    Uyuiyu Void-Bound Voyager

    The game crashes when pressing "load" or "new", terminal shows following log:
    Please use SDL 2.0.5 or higher.
    setGameMode( 'titleScreenGameMode (0)' )
    gameMode was 'titleScreenGameMode (0)', set to 'errorLogMode (11)'.
    gameMode was 'errorLogMode (11)', set to 'playingGameMode (3)'.
    [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'StardewValley.SaveGame' threw an exception. ---> System.InvalidOperationException: Unable to generate a temporary class (result=1).
    error : Corlib not in sync with this runtime: expected corlib version 1050000000, found 140.
    error : Loaded from: /opt/gog-stardew-valley/game/mscorlib.dll
    error : Download a newer corlib or a newer runtime at http://www.mono-project.com/download.

    at System.Xml.Serialization.Compiler.Compile (System.Reflection.Assembly parent, System.String ns, System.Xml.Serialization.XmlSerializerCompilerParameters xmlParameters, System.Security.Policy.Evidence evidence) <0x40ae1390 + 0x0084f> 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) <0x40ac6a50 + 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) <0x40a12ec0 + 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) <0x40abc890 + 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) <0x40ab5070 + 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) <0x40ab5010 + 0x0004f> in <filename unknown>:0
    at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Type[] extraTypes) <0x40ab4fc0 + 0x00037> in <filename unknown>:0
    at StardewValley.SaveGame..cctor () <0x40ab4520 + 0x00a77> in <filename unknown>:0
    --- End of inner exception stack trace ---
    at StardewValley.Menus.LoadGameMenu..ctor () <0x40ab30a0 + 0x011ef> in <filename unknown>:0
    at StardewValley.Menus.TitleMenu.update (Microsoft.Xna.Framework.GameTime time) <0x40a81e10 + 0x00a5b> in <filename unknown>:0
    at StardewValley.Game1.updateActiveMenu (Microsoft.Xna.Framework.GameTime gameTime) <0x40a7c7b0 + 0x00e39> in <filename unknown>:0
    at StardewValley.Game1.Update (Microsoft.Xna.Framework.GameTime gameTime) <0x40a76cd0 + 0x02cd3> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) <0x40a76b80 + 0x00043> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Tick () <0x40a765d0 + 0x00363> in <filename unknown>:0
    at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () <0x40a73d40 + 0x0003f> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0x4090dfc0 + 0x001c8> in <filename unknown>:0
    at Microsoft.Xna.Framework.Game.Run () <0x4090df60 + 0x00027> in <filename unknown>:0
    at StardewValley.Program.Main (System.String[] args) <0x408ccf20 + 0x000ab> in <filename unknown>:0
     
    • Uyuiyu

      Uyuiyu Void-Bound Voyager

      Ironically mscorlib.dll 1050000000 gives the error:
      "Error: Corlib not in sync with this runtime: expected corlib version 140, found 1050000000" at startup and mscorlib.dll 140 gives the error:
      "Error: Corlib not in sync with this runtime: expected corlib version 1050000000, found 140" when pressing load or new, so I started the game with mscorlib.dll 140 (Default) and before pressing load or new I replaced it with mscorlib.dll 1050000000 (/usr/lib/mono/4.5/), it works. It's quite uncomfortable anyway

      (It's completely fixed, I've done a workaround in bash that moves the files)
       
        Last edited: Jul 11, 2017
      • jcsanyi

        jcsanyi Space Hobo

        I'm seeing this same error (arch linux w/ gog_stardew_valley 2.8.0.10).
        Can you post more details about how you worked around this?

        This isn't really solved, is it? It sounds like something that should be fixed in the game itself.

        -Jonathan
         
        • nerdnils

          nerdnils Space Hobo

          I tried this but it does not matter what version of mscorlib.dll I copy, the error persists. Any other solution?
           

          Share This Page