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

Bug/Issue Game Crashes while Saving right after the Intro

Discussion in 'Support' started by BunkyisMe, Jul 30, 2017.

  1. BunkyisMe

    BunkyisMe Space Hobo

    Hi,

    I just bought and downloaded the game off of steam yesterday. The game starts fine and I am able to make a character but after going through the into. The game tries to save and then crashes. Giving a "Stardew Valley has stopped working" message. [​IMG]
    When I start up the game again there are no saves. And if I make a new game it does the same thing.

    I'm on a Asus laptop:
    Windows 8.1 64-bit
    Processor: Intel(R) Core(TM) i7-4700HQ CPU @ 2.4GHz
    RAM: 8 GB
    Dedicated NIVIDIA Geforce GTX 850M Graphics Card

    I tried:
    - Turning off steam cloud sync
    - Verifying files with steam
    - running steam as administrator
    - Reinstalling dotNetFx40_Full_x86_x64.exe (because that was suggested on other forms)
    It didn't install though instead game me the below message
    [​IMG]
    - Reinstalled xnafx40_redist.msi, that seemed to work
    - Restarting my computer

    I don't know if there is a log somewhere of this incident, if there is I don't know were to find it.

    I would really apreciate any help so I can actually play this game which seems pretty cool. :)
     
    • BunkyisMe

      BunkyisMe Space Hobo

      Oh, I found the log file:
      Message: The type initializer for 'StardewValley.SaveGame' threw an exception.
      InnerException: System.InvalidOperationException: Unable to generate a temporary class (result=1).
      error CS2001: Source file 'C:\Windows\TEMP\jfyyhj2d.0.cs' could not be found

      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)
       
      • Roskii Heiral

        Roskii Heiral Heliosphere

        I didn't see if you mentioned this, do you have any mods?
         
        • BunkyisMe

          BunkyisMe Space Hobo

          No I don't have any mods
           
          • BunkyisMe

            BunkyisMe Space Hobo

            I found the a fix: I realize I was only running steam as an administrator and not the game. So when I went to C:\Games\Steam\steamapps\common\Stardew Valley and ran Stardew Valley.exe as an administrator it worked!!
             
              Roskii Heiral likes this.
            • Roskii Heiral

              Roskii Heiral Heliosphere

              I'm very glad! Enjoy stardew, its really great!
               
              • nerdnils

                nerdnils Space Hobo

                Starting the game as administrator is a very bad solution.
                And this solution does not even work for linux. Starting as root gives the same error.
                 

                Share This Page