Closed DefectiveNu closed 2 years ago
Huh, interesting. I found the problem code that's causing this issue. Thanks for reporting!
not sure if this will get seen but when withdrawing full stacks of crates, I got a similar error, and don't know if the same fix will fix this too:
[18:34:28.161] [Main Thread/WARN] [tML]: Silently Caught Exception:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at MagicStorage.Components.TEStorageUnit.WithdrawFromItemCollection(List`1 items, Item lookFor, Item& result, Boolean keepOneIfFavorite, Action`1 onItemRemoved, Action`2 onItemStackReduced) in MagicStorage\Components\TEStorageUnit.cs:line 183
at MagicStorage.Components.TEStorageUnit.TryWithdraw(Item lookFor, Boolean locked, Boolean keepOneIfFavorite) in MagicStorage\Components\TEStorageUnit.cs:line 163
at MagicStorage.Components.TEStorageHeart.Withdraw(Item lookFor, Boolean keepOneIfFavorite) in MagicStorage\Components\TEStorageHeart.cs:line 533
at MagicStorage.Components.TEStorageHeart.processClientOperations() in MagicStorage\Components\TEStorageHeart.cs:line 140
at MagicStorage.Components.TEStorageHeart.Update() in MagicStorage\Components\TEStorageHeart.cs:line 110
at Terraria.WorldGen.UpdateWorld_Inner() in tModLoader\Terraria\WorldGen.cs:line 46894
at DMD<Terraria.WorldGen::UpdateWorld>()
at DMD<Terraria.Main::DoUpdateInWorld>(Main this, Stopwatch sw)
at Terraria.Main.DoUpdate(GameTime& gameTime) in tModLoader\Terraria\Main.cs:line 13131
at Terraria.Main.Update(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 12686
at DMD<Terraria.Main::DedServ_PostModLoad>(Main this, Boolean& reloadMods)
at Terraria.Main.DedServ() in tModLoader\Terraria\Main.cs:line 4202
at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 237
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 196
at MonoLaunch.<>c__DisplayClass1_0.<Main>b__0() in tModLoader\Terraria\MonoLaunch.cs:line 52
at System.Threading.Thread.StartCallback()
This stacktrace looks similar to to second stacktrace in the original post.
you know, I only compared it to the first trace, which had some references to crafting in it, while the 2nd didn't. Thanks for the quick reply
Happened twice, once to a friend and once to me (I was hosting via Host & Play)
Friend's issue was crafting Tungsten armor, I was crafting a max stack of wood platforms.
For mine, the stack seemed to appear but when I went to grab it, it seemed all the wood (ingredients section) disappeared and then came back, but then I didn't get my platforms, but the materials were used up.
Storage was about 2/3 full
Log from Tungsten armor crafting issue (nothing else within 1m of this):
Log from platform crafting issue (also no other logs at the same time):
Mods/versions from the logs: