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

Bug/Issue Help. Game crashes after first save/after intro

Discussion in 'Support' started by DraedBeast, Oct 17, 2016.

  1. DraedBeast

    DraedBeast Void-Bound Voyager

    Hello. So I just bought the game last night and was really exciting to play it, but it keeps crashing on me whenever it tries to save for the first time. I don't know exactly what to do. I tried running steam in admin mod, tried running the game from it's root file in admin mode, and tried restarting my computer. I have noticed a few people have had this issue before, but I still could never fix it. I can't even play the game right now. Can anyone help me please? Thank you.
     
    • orbwhisper

      orbwhisper Space Hobo

      Its 2017 and I just started the game, SAME ISSUE! Did you ever get a fix or just throw yer hands up and cry?
       
      • Peregwyn

        Peregwyn Intergalactic Tourist

        I have the same problem. I was playing fine after the last update. Then there was a windows update and I went on vacation. When I returned, my save games were not showing up in the load screen and I cannot create a new game. It crashes on saving the first night. I do have a save game from 5/21/2017 in my appdata folder.

        i am playing through Steam.
        I have uninstalled, reinstalled, verified integrity of game files
        I had alrready whitelisted the entire steamapps folder in my antivirus, but added the Stardew Valley folder as well.
        I have no mods


        Message: The type initializer for 'StardewValley.SaveGame' threw an exception.
        InnerException: System.IO.FileNotFoundException: Could not find file 'C:\Users\Chris\AppData\Local\Temp\s4ojzeqz.dll'.
        File name: 'C:\Users\XXXX\AppData\Local\Temp\s4ojzeqz.dll'
        at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
        at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
        at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
        at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost)
        at System.IO.File.ReadAllBytes(String path)
        at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)
        at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
        at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
        at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
        at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
        at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
        at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
        at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace, String location, Evidence evidence)
        at System.Xml.Serialization.XmlSerializer..ctor(Type type, XmlAttributeOverrides overrides, Type[] extraTypes, XmlRootAttribute root, String defaultNamespace, String location, Evidence evidence)
        at System.Xml.Serialization.XmlSerializer..ctor(Type type, Type[] extraTypes)
        at StardewValley.SaveGame..cctor()
        Stack Trace: at StardewValley.SaveGame.<Save>d__47.MoveNext()
        at StardewValley.Menus.SaveGameMenu.update(GameTime time)
        at StardewValley.Game1.Update(GameTime gameTime)
        at Microsoft.Xna.Framework.Game.Tick()
        at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
        at Microsoft.Xna.Framework.GameHost.OnIdle()
        at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
        at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
        at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
        at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
        at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
        at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
        at System.Windows.Forms.Application.Run(Form mainForm)
        at Microsoft.Xna.Framework.WindowsGameHost.Run()
        at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
        at StardewValley.Program.Main(String[] args)
         
        • SunnySeattleSeal

          SunnySeattleSeal Space Hobo

          Same here. Just got the game literally two days ago. I can play into making my character, arrive at the bus, speak to the NPCs. Then when I'm supposed to rest, the game crashes completely while saving. I've verified folders, reinstalled steam and the game numerous times, ran as admin for steam AND the game directly. This issue is aggravating and saddening, I've heard so much about this game and I just wanna experience it!
           
          • nerdnils

            nerdnils Space Hobo

            Same issue here. Is there still no solution after 2 years? Shame. Google only spits out dozens of such threads with people experiencing this bug.

            Is there not solution to get the game to work?

            [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 1050400003, 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) <0x4219a3e0 + 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) <0x4217fc30 + 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) <0x41f84ec0 + 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) <0x42176740 + 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.Evi
            dence evidence) <0x4216f4f0 + 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) <0x4216f490 + 0x0004f> in
            <filename unknown>:0
            at System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.Type[] extraTypes) <0x4216f440 + 0x00037> in <filename unknown>:0
            at StardewValley.SaveGame..cctor () <0x4216e9a0 + 0x00a77> in <filename unknown>:0
            --- End of inner exception stack trace ---
            at StardewValley.Menus.SaveGameMenu.update (Microsoft.Xna.Framework.GameTime time) <0x4216e680 + 0x001ef> in <filename unknown>:0
            at StardewValley.Game1.updateActiveMenu (Microsoft.Xna.Framework.GameTime gameTime) <0x41fee000 + 0x00bc9> in <filename unknown>:0
            at StardewValley.Game1.Update (Microsoft.Xna.Framework.GameTime gameTime) <0x41fe87c0 + 0x0267f> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.DoUpdate (Microsoft.Xna.Framework.GameTime gameTime) <0x41fe8670 + 0x00043> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Tick () <0x41fe80e0 + 0x00343> in <filename unknown>:0
            at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop () <0x41fe7df0 + 0x0003f> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Run (GameRunBehavior runBehavior) <0x41e7ffb0 + 0x001c8> in <filename unknown>:0
            at Microsoft.Xna.Framework.Game.Run () <0x41e7ff50 + 0x00027> in <filename unknown>:0
            at StardewValley.Program.Main (System.String[] args) <0x41e3ef20 + 0x000ab> in <filename unknown>:0


            Newest version from gog.
             
              Last edited: Feb 20, 2018
            • nerdnils

              nerdnils Space Hobo

              So there is still no solution for this?
               

              Share This Page