BeepBoop
Newcomer
Hi all!
When trying to play local co-op with two controllers, the game always crashes when trying to join with the second controller. This bug happens even without any mods and when SMAPI is disconnected from Steam.
Repro steps:
1) Launch SV from Steam
2) Move game window to second monitor (in my case, TV)
3) Load a farm using a controller (no keyboard+mouse used)
4) Once farm loaded, press "Start" on a second controller
5) The game will crash
Expected behavior - the game not crashing :-P
Note: The game will work perfectly on monitor 1, but always crash on monitor 2 - whether you start the game there or start it on your laptop (monitor 1) and drag to monitor 2 (where it will simply crash)
Error logs from game:
When trying to play local co-op with two controllers, the game always crashes when trying to join with the second controller. This bug happens even without any mods and when SMAPI is disconnected from Steam.
Repro steps:
1) Launch SV from Steam
2) Move game window to second monitor (in my case, TV)
3) Load a farm using a controller (no keyboard+mouse used)
4) Once farm loaded, press "Start" on a second controller
5) The game will crash
Expected behavior - the game not crashing :-P
Note: The game will work perfectly on monitor 1, but always crash on monitor 2 - whether you start the game there or start it on your laptop (monitor 1) and drag to monitor 2 (where it will simply crash)
Error logs from game:
Code:
Message: A previous Draw call threw an unhandled exception. See InnerException for details.
InnerException: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Xna.Framework.Graphics.Texture2D.CreateTexture(GraphicsDevice graphicsDevice, Int32 width, Int32 height, Boolean mipMap, UInt32 usage, _D3DPOOL pool, SurfaceFormat format)
at Microsoft.Xna.Framework.Graphics.Texture2D..ctor(GraphicsDevice graphicsDevice, Int32 width, Int32 height, Boolean mipMap, SurfaceFormat format)
at Microsoft.Xna.Framework.Content.Texture2DReader.Read(ContentReader input, Texture2D existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.InvokeReader[T](ContentTypeReader reader, Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObjectInternal[T](Object existingInstance)
at Microsoft.Xna.Framework.Content.SpriteFontReader.Read(ContentReader input, SpriteFont existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.InvokeReader[T](ContentTypeReader reader, Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObjectInternal[T](Object existingInstance)
at Microsoft.Xna.Framework.Content.ContentReader.ReadObject[T]()
at Microsoft.Xna.Framework.Content.ContentReader.ReadAsset[T]()
at Microsoft.Xna.Framework.Content.ContentManager.ReadAsset[T](String assetName, Action`1 recordDisposableObject)
at Microsoft.Xna.Framework.Content.ContentManager.Load[T](String assetName)
at StardewValley.LocalizedContentManager.Load[T](String assetName, LanguageCode language) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\LocalizedContentManager.cs:line 259
at StardewValley.Menus.ChatBox.messageFont(LanguageCode language) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\ChatBox.cs:line 1494
at StardewValley.Menus.ChatMessage.breakNewLines(StringBuilder sb) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\ChatBox.cs:line 155
at StardewValley.Menus.ChatMessage.parseMessageForEmoji(String messagePlaintext) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\ChatBox.cs:line 119
at StardewValley.Menus.ChatBox.receiveChatMessage(Int64 sourceFarmer, Int32 chatKind, LanguageCode language, String message) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\ChatBox.cs:line 1404
at StardewValley.Menus.ChatBox.addInfoMessage(String message) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Menus\ChatBox.cs:line 380
at StardewValley.Network.GameServer.stopServer() in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Network\GameServer.cs:line 249
at StardewValley.Game1.UnloadContent() in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3497
at StardewValley.GameRunner.UnloadContent() in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 855
at Microsoft.Xna.Framework.Game.DeviceDisposing(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GraphicsDeviceManager.OnDeviceDisposing(Object sender, EventArgs args)
at Microsoft.Xna.Framework.GraphicsDeviceManager.HandleDisposing(Object sender, EventArgs e)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.~GraphicsDevice()
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Dispose(Boolean )
at Microsoft.Xna.Framework.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate)
at Microsoft.Xna.Framework.GraphicsDeviceManager.ApplyChanges()
at StardewValley.Game1.SetWindowSize(Int32 w, Int32 h) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 1400
at StardewValley.Game1.<>c__DisplayClass547_0.<Window_ClientSizeChanged>b__0(Game1 instance) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 1326
at StardewValley.GameRunner.ExecuteForInstances(Action`1 action) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 711
at StardewValley.Game1.Window_ClientSizeChanged(Object sender, EventArgs e) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 1324
at StardewValley.GameRunner.<>c.<Draw>b__17_0(Game1 instance) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 556
at StardewValley.GameRunner.ExecuteForInstances(Action`1 action) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 711
at StardewValley.GameRunner.Draw(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\LocalMultiplayer.cs:line 554
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) in C:\GitlabRunner\builds\Gq5qA5P4\0\ConcernedApe\stardewvalley\Farmer\Farmer\Program.cs:line 156
Game Version: 1.5.1
SDK Helper: SteamHelper
Game Language: en
GPU: Intel(R) HD Graphics 620
OS: Win32NT Microsoft Windows NT 6.2.9200.0
Multiplayer (Split Screen)
In-game Date: fall 15 Y5 Time of Day: 600
Game Location: FarmHouse