Pathoschild / SMAPI

The modding API for Stardew Valley.
https://smapi.io/
GNU Lesser General Public License v3.0
1.77k stars 260 forks source link

Crash on returning to farm in the late afternoon/evening #563

Closed Jessicanity closed 6 years ago

Jessicanity commented 6 years ago

I'm pretty sure this is SMAPI issue, as it doesn't happen if I run the game without SMAPI. I was hoping the newest update would sort it, but it seems not. Basically, if I return to the farm in the evening the game crashes, be it returning from town, the forest, the mountains, or going back outside from the farmhouse.

I also do have some .xnb mods, which don't appear in the mods folder, but they don't require SMAPI and again the game runs fine without SMAPI. I also was having these issues before installing them.

However, in case it is relevant, the XNB mods are the updated version of A Less Yellow Stardew Valley (here) and the Totally Tubular Toolkit (here) for installing custom breeds with a save-editor, so you can have multiple custom breeds.

Error log:

[15:09:27 ERROR SMAPI] An error occured in the overridden draw loop: System.NullReferenceException: Object reference not set to an instance of an object.
   at StardewModdingAPI.Framework.SGame.DrawImpl(GameTime gameTime) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SGame.cs:line 968
   at StardewModdingAPI.Framework.SGame.Draw(GameTime gameTime) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SGame.cs:line 729
[15:09:27 TRACE SMAPI] Recovering sprite batch from error...
[15:09:27 TRACE SMAPI] Disposing...
[15:09:27 TRACE SMAPI] Disposing the content coordinator. Content managers will no longer be usable after this point.

Mods folders and Save folder attached.

Jess_190306304.zip Mods.zip

Pathoschild commented 6 years ago

That should be fixed in the latest versions of Stardew Valley and SMAPI (currently 1.3.24 and beta 20.1 respectively).

If it still happens after updating, come ask in #modding on the Stardew Valley Discord or post in the SMAPI support thread. (GitHub issues are only used for SMAPI development tasks.)