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

Bug/Issue Game will not launch with multi monitor setups

Discussion in 'Support' started by Meflakcannon, Jan 14, 2018.

  1. Meflakcannon

    Meflakcannon Space Hobo

    Dual Monitor Setup. Game will launch if I disable either monitor.

    Message: Sequence contains no elements
    InnerException:
    Stack Trace: at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
    at StardewValley.Options.setToDefaults()
    at StardewValley.Options..ctor()
    at StardewValley.Game1.LoadContent()
    at Microsoft.Xna.Framework.Game.Initialize()
    at StardewValley.Game1.Initialize()
    at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
    at StardewValley.Program.Main(String[] args)

    When game is launched on primary monitor (#1) with monitor 2 turned off. Game will launch. When game is launched on monitor 2, with Monitor 1 turned off I get a no suitable graphics error message.

    Below error message caused while enabling 2nd monitor while game was running (crashes game immediately).

    Message: A previous Draw call threw an unhandled exception. See InnerException for details.
    InnerException: System.InvalidOperationException: Begin cannot be called again until End has been successfully called.
    at Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix)
    at Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState)
    at StardewValley.Game1.Draw(GameTime gameTime)
    at Microsoft.Xna.Framework.Game.DrawFrame()
    at Microsoft.Xna.Framework.Game.Paint(Object sender, EventArgs e)
    at Microsoft.Xna.Framework.GameWindow.OnPaint()
    at Microsoft.Xna.Framework.WindowsGameWindow.mainForm_Paint(Object sender, PaintEventArgs e)
    Stack Trace: 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)
     

    Share This Page