Solved Game crash whenever I use TMX or CF and smapi announced this to me

Heather

Greenhorn
I got this error when I use TMX or CF. And then I can't open file save anymore cause "SMAPI has stopped working". Can anyone help me please

An error occurred in the base update loop: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt32(String value) at StardewValley.Utility.parseStringToIntArray(String s, Char delimiter) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Utility.cs:line 6848 at StardewValley.NPC.loadEndOfRouteBehavior(String name) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\NPC.cs:line 4446 at StardewValley.NPC.getRouteEndBehaviorFunction(String behaviorName, String endMessage) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\NPC.cs:line 4423 at StardewValley.NPC.checkSchedule(Int32 timeOfDay) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\NPC.cs:line 3784 at StardewValley.GameLocation.performTenMinuteUpdate(Int32 timeOfDay) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Locations\GameLocation.cs:line 11784 at StardewValley.Game1.<>c.<performTenMinuteClockUpdate>b__670_0() in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 6512 at StardewValley.ModHooks.OnGame1_PerformTenMinuteClockUpdate(Action action) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\ModHooks.cs:line 8 at StardewValley.Game1.performTenMinuteClockUpdate() in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 6346 at StardewValley.Game1.UpdateGameClock(GameTime time) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 6598 at StardewValley.Game1._update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 4744 at StardewValley.Game1.Update(GameTime gameTime) in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\Game1.cs:line 3872 at StardewModdingAPI.Framework.SGame.<>c__DisplayClass40_0.<Update>b__0() in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SGame.cs:line 186 at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in C:\source\_Stardew\SMAPI\src\SMAPI\Framework\SCore.cs:line 1020

Here is my log: https://smapi.io/log/d1f00a6977f541f2a81206ab974e596d
 
I see 2 errors. The first is missing dialogue for the "Bouncer", and the second is the one you posted. That one appears to possibly related to broken schedule data for an NPC.

I'd start by following SMAPI's recommendation on updating the following mods:

SMAPI 3.12.5 → 3.12.6
Content Patcher
+ [CP] Life Cycle - Craftables
+ [GMCM] Fishing Made Easy Suite
+ Fishing Trawler - Map Patches
+ Ridgeside Village
1.23.3 → 1.23.4
3.3.4 → 3.3.6
3.0.23 → 4.0.0
1.3.3 → 1.3.6
1.2.13 → 1.2.16
CustomReminders 1.7.5 → 2.0.0
Fishing Trawler 1.3.3 → 1.3.6
Json Assets
+ [JA] Asian Fantasy Scarecrows

1.0.0 → 1.1.1
Multiple Spouses 3.2.0 → 3.2.1
NPC Map Locations 2.6.4 → 2.6.6
Ridgeside Village SMAPI 1.2.13 → 1.2.16

Note: I left out "SDV Expanded" from the above list; despite showing in the log. As it's recommending the wrong version. You should grab version "1.13.11"; when updating that mod.

Then retry loading the game, and generate a new log if there's still issues after updating your mods.
 

Heather

Greenhorn
I see 2 errors. The first is missing dialogue for the "Bouncer", and the second is the one you posted. That one appears to possibly related to broken schedule data for an NPC.

I'd start by following SMAPI's recommendation on updating the following mods:

SMAPI 3.12.5 → 3.12.6
Content Patcher
+ [CP] Life Cycle - Craftables
+ [GMCM] Fishing Made Easy Suite
+ Fishing Trawler - Map Patches
+ Ridgeside Village
1.23.3 → 1.23.4
3.3.4 → 3.3.6
3.0.23 → 4.0.0
1.3.3 → 1.3.6
1.2.13 → 1.2.16
CustomReminders 1.7.5 → 2.0.0
Fishing Trawler 1.3.3 → 1.3.6
Json Assets
+ [JA] Asian Fantasy Scarecrows

1.0.0 → 1.1.1
Multiple Spouses 3.2.0 → 3.2.1
NPC Map Locations 2.6.4 → 2.6.6
Ridgeside Village SMAPI 1.2.13 → 1.2.16

Note: I left out "SDV Expanded" from the above list; despite showing in the log. As it's recommending the wrong version. You should grab version "1.13.11"; when updating that mod.

Then retry loading the game, and generate a new log if there's still issues after updating your mods.
Hi there, after I updated those mods, I got this and open my old file save or create a new one....

_loadPreferences; exception occured trying open/read: System.IO.IOException: The process cannot access the file 'C:\Users\DELL\AppData\Roaming\StardewValley\startup_preferences' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor_PatchedBy<Platonymous.PyTK>(FileStream this, String path, FileMode mode, FileAccess access, FileShare share) at StardewValley.StartupPreferences._loadPreferences() in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\StartupPreferences.cs:line 422
 
Go ahead, and delete that "startup_preferences" file that it references. 'C:\Users\DELL\AppData\Roaming\StardewValley\startup_preferences'
The game will recreate it when relaunches.
 

Heather

Greenhorn
Go ahead, and delete that "startup_preferences" file that it references. 'C:\Users\DELL\AppData\Roaming\StardewValley\startup_preferences'
The game will recreate it when relaunches.
Sadly it does not work, I still got this error
_loadPreferences; exception occured trying open/read: System.IO.IOException: The process cannot access the file 'C:\Users\DELL\AppData\Roaming\StardewValley\startup_preferences' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor_PatchedBy<Platonymous.PyTK>(FileStream this, String path, FileMode mode, FileAccess access, FileShare share) at StardewValley.StartupPreferences._loadPreferences() in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\StartupPreferences.cs:line 422
 
Sadly it does not work, I still got this error
_loadPreferences; exception occured trying open/read: System.IO.IOException: The process cannot access the file 'C:\Users\DELL\AppData\Roaming\StardewValley\startup_preferences' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor_PatchedBy<Platonymous.PyTK>(FileStream this, String path, FileMode mode, FileAccess access, FileShare share) at StardewValley.StartupPreferences._loadPreferences() in C:\GitlabRunner\builds\Gq5qA5P4\1\ConcernedApe\stardewvalley\Farmer\Farmer\StartupPreferences.cs:line 422
You could try temporarily removing PyTK; to see if SMAPI, and the mods not reliant on it will at least load up to the menu. For some reason, PyTk is conflicting with 'startup_preferences'.
Is it not generating anything else in the log?
 

Heather

Greenhorn
You could try temporarily removing PyTK; to see if SMAPI, and the mods not reliant on it will at least load up to the menu. For some reason, PyTk is conflicting with 'startup_preferences'.
Is it not generating anything else in the log?
Nope, just that error left, I'll try it, thanks for your help ^^ have a nice day
 
Nope, just that error left, I'll try it, thanks for your help ^^ have a nice day

it got so many mods were based on PyTK :(
Thanks, you too!

That's to be expected. But, if SDV loads to the menu at least. You can re-add PyTK; and launch again. Hopefully, that would at least clear out the previous process lock.
 

Heather

Greenhorn
I found out my SMAPI has stopped working not because of CF or TMX, it was "process is terminated due to StackoverFlowException", that's why I can't play my old file save game
 
I found out my SMAPI has stopped working not because of CF or TMX, it was "process is terminated due to StackoverFlowException", that's why I can't play my old file save game
Well, the initial error was for mod data as I mentioned earlier. Which is why I wanted to see if updating all those mods would help.
""I see 2 errors. The first is missing dialogue for the "Bouncer", and the second is the one you posted. That one appears to possibly related to broken schedule data for an NPC.""

If you're getting any new errors. Could you post a new SMAPI log?
 
Sadly it didn't, even I create a new file save and when I go to sleep to save day 2, it'll crash again :<.

Here my new log: https://smapi.io/log/9dec06b2da6e42e2abf370c4aa680b35
Thanks for the new log. It looks like the old, schedule data error is gone. But, not the bouncer one relating to the CustomFixedDialogue. I also see the new 'startup_preferences' error you posted.
But, I'm seeing you're able to play past that without issue.

Nothing else really stands out to me. The original log, and this new log both show the last mod to load before it cuts off abruptly is this one:
Code:
19:21:56 TRACE Content Patcher Hey Kitties edited Characters\schedules\April.
Though, I'd usually expect to see errors generate afterwards. And, I can't seem to find it on google to inspect the mod data.
You could try temporarily removing it, and see if you can continue playing.

But, otherwise; I'm not too sure. Sorry, perhaps someone else can chime in/assist further.
 
Top