Skip to content

Server keeps getting stuck in infinite loops, seemingly related to "LoopingCueManager" #249

@Pfodge

Description

@Pfodge

Describe the bug

Description
Server locks up in certain circumstances requiring restarting via docker compose restart before being able to continue playing

Steps to reproduce

  • Honestly very hard to reproduce as it has happened in two very distinct circumstances:
    • Once after everyone (4 players) had gone to bed but before getting end of day results screens, in which the game was stuck with everyone in bed just after receiving "server has gone to sleep" message.
    • Once at around 9:20am on Spring 27, Year 1, in which the game became unresponsive to certain interactions (couldn't open containers, couldn't pick up items off the ground) but could still walk around

Expected behavior

In both instances of the issue the server console was constantly spitting out the following:

sdvd-server       | [app         ]    at StardewValley.Audio.LoopingCueManager.Update(GameLocation currentLocation) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Audio\LoopingCueManager.cs:line 35
sdvd-server       | [app         ]    at StardewValley.Game1.UpdateLocations(GameTime time) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 6111
sdvd-server       | [app         ]    at StardewValley.Game1._update(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4326
sdvd-server       | [app         ]    at StardewValley.Game1.Update(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3454
sdvd-server       | [app         ]    at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in /home/runner/work/SMAPI/SMAPI/src/SMAPI/Framework/SCore.cs:line 1147

I could not clear the issue and was forced to restart the docker in order to continue playing

Additional Context

Including some of the server console messages up until the issue arose the second time (which was around around 9:20am on Spring 27, Year 1) :

sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:12 TRACE SMAPI]    task complete.
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:26 TRACE game] Warping to FarmHouse
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:26 TRACE SMAPI] Context: before save.
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:26 TRACE JunimoServer] Saving
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:26 TRACE JunimoServer] waiting 60 sec to kick non-ready players
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:27 TRACE JunimoServer] waited 20 sec to kick barrier. Was Canceled
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:42 TRACE game] SaveGame.Save() called.
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:42 TRACE SMAPI] Synchronizing 'Save' task...
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:42 TRACE game] Saving without compression...
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:42 TRACE SMAPI]    task complete.
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:42 TRACE game] SaveGame.Save() completed without exceptions.
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:46 TRACE SMAPI] Context: after save, starting spring 27 Y1.
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:24:46 TRACE game] Warping to Farm
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:25:07 INFO  JunimoServer] Clicking DialogBox
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:25:08 INFO  JunimoServer] Clicking DialogBox
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:25:26 TRACE JunimoServer] waited 60 sec to kick non-ready players. Was Canceled.
sdvd-server       | [app         ] �[39;49m�[39;49m�[30m[11:27:56 INFO  JunimoServer] Healthcheck ✓
sdvd-server       | [app         ] �[39;49m�[39;49m�[31m[11:28:48 ERROR game] An error occurred in the base update loop: NullReferenceException: Object reference not set to an instance of an object.
sdvd-server       | [app         ]    at StardewValley.Audio.LoopingCueManager.Update(GameLocation currentLocation) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Audio\LoopingCueManager.cs:line 35
sdvd-server       | [app         ]    at StardewValley.Game1.UpdateLocations(GameTime time) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 6111
sdvd-server       | [app         ]    at StardewValley.Game1._update(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4326
sdvd-server       | [app         ]    at StardewValley.Game1.Update(GameTime gameTime) in D:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3454
sdvd-server       | [app         ]    at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in /home/runner/work/SMAPI/SMAPI/src/SMAPI/Framework/SCore.cs:line 1147

Environment

  • OS: Ubuntu Server 24.04
  • Docker: 29.3.0, build 5927d80
  • JunimoServer: 1.5.0-preview.53
  • Mods: TimeSpeed

Final checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions