Issue "Object reference not set to an instance of an object" crashing when leaving farmhouse first thing in the morning

Freezingheat

Greenhorn
I've been playing this file for about a week or so, I'm currently in Summer year 1, and when I was playing the night before posting this, my game started crashing. The mods that I thought had caused the issue, smapi says they have no errors. I'm not sure how to fix this, and if someone could look into this for me I'd be so grateful.

https://smapi.io/log/2b97bab069984af6bd1610a78242c80d
Here is the link to the log^

For anyone that takes a look, thank you so much!
 
Last edited by a moderator:
Thanks for the log.

I'm seeing some farm animal related errors:
Code:
12:57:30    ERROR    game    An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
   at StardewValley.FarmAnimal.updateWhenNotCurrentLocation(Building currentBuilding, GameTime time, GameLocation environment) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 1073
   at StardewValley.AnimalHouse.updateWhenNotCurrentLocation(Building parentBuilding, GameTime time) in stardewvalley\Farmer\Farmer\Locations\AnimalHouse.cs:line 54
   at StardewValley.Locations.BuildableGameLocation.updateEvenIfFarmerIsntHere(GameTime time, Boolean skipWasUpdatedFlush) in stardewvalley\Farmer\Farmer\Locations\BuildableGameLocation.cs:line 214
   at StardewValley.Farm.updateEvenIfFarmerIsntHere(GameTime time, Boolean skipWasUpdatedFlush) in stardewvalley\Farmer\Farmer\Locations\Farm.cs:line 2200
   at StardewValley.Game1.UpdateLocations(GameTime time) in stardewvalley\Farmer\Farmer\Game1.cs:line 6492
   at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4867
   at StardewValley.Game1.Update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 3974
   at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1003
    repeats 1 times
12:57:36    ERROR    SMAPI    An error occurred in the overridden draw loop: NullReferenceException: Object reference not set to an instance of an object.
   at StardewValley.FarmAnimal.GetBoundingBox() in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 490
   at StardewValley.FarmAnimal.draw(SpriteBatch b) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 1007
   at StardewValley.Farm.draw(SpriteBatch b) in stardewvalley\Farmer\Farmer\Locations\Farm.cs:line 2070
   at StardewModdingAPI.Framework.SGame.DrawImpl(GameTime gameTime, RenderTarget2D target_screen) in SMAPI\Framework\SGame.cs:line 618
   at StardewModdingAPI.Framework.SGame._draw(GameTime gameTime, RenderTarget2D target_screen) in SMAPI\Framework\SGame.cs:line 216
Can you try temporarily removing these mods one at a time, and test loading the save out: "Custom Companions" or "Livestock Choices"
 

Freezingheat

Greenhorn
Thanks for the log.

I'm seeing some farm animal related errors:
Code:
12:57:30    ERROR    game    An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
   at StardewValley.FarmAnimal.updateWhenNotCurrentLocation(Building currentBuilding, GameTime time, GameLocation environment) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 1073
   at StardewValley.AnimalHouse.updateWhenNotCurrentLocation(Building parentBuilding, GameTime time) in stardewvalley\Farmer\Farmer\Locations\AnimalHouse.cs:line 54
   at StardewValley.Locations.BuildableGameLocation.updateEvenIfFarmerIsntHere(GameTime time, Boolean skipWasUpdatedFlush) in stardewvalley\Farmer\Farmer\Locations\BuildableGameLocation.cs:line 214
   at StardewValley.Farm.updateEvenIfFarmerIsntHere(GameTime time, Boolean skipWasUpdatedFlush) in stardewvalley\Farmer\Farmer\Locations\Farm.cs:line 2200
   at StardewValley.Game1.UpdateLocations(GameTime time) in stardewvalley\Farmer\Farmer\Game1.cs:line 6492
   at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4867
   at StardewValley.Game1.Update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 3974
   at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1003
    repeats 1 times
12:57:36    ERROR    SMAPI    An error occurred in the overridden draw loop: NullReferenceException: Object reference not set to an instance of an object.
   at StardewValley.FarmAnimal.GetBoundingBox() in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 490
   at StardewValley.FarmAnimal.draw(SpriteBatch b) in stardewvalley\Farmer\Farmer\FarmAnimals\FarmAnimal.cs:line 1007
   at StardewValley.Farm.draw(SpriteBatch b) in stardewvalley\Farmer\Farmer\Locations\Farm.cs:line 2070
   at StardewModdingAPI.Framework.SGame.DrawImpl(GameTime gameTime, RenderTarget2D target_screen) in SMAPI\Framework\SGame.cs:line 618
   at StardewModdingAPI.Framework.SGame._draw(GameTime gameTime, RenderTarget2D target_screen) in SMAPI\Framework\SGame.cs:line 216
Can you try temporarily removing these mods one at a time, and test loading the save out: "Custom Companions" or "Livestock Choices"
Thank you! I will try tonight and let you know what happened!
 
Top