tModLoader

tModLoader

High FPS Support
JJ's Place 13 Jan, 2024 @ 1:04pm
In game crash.
Not sure what exactly is causing the issue but i was waling though a cobweb when the crash occurred. Don't know if its related bu thought id mention it.


Logs:
[15:00:42.895] [Main Thread/ERROR] [Terraria]: System.InvalidOperationException: Begin has been called before calling End after the last call to Begin. Begin cannot be called again until End has been successfully called.
at Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix) in D:\a\tModLoader\tModLoader\FNA\src\Graphics\SpriteBatch.cs:line 284
at Terraria.GameContent.AnOutlinedDrawRenderTargetContent.HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch) in tModLoader\Terraria\GameContent\AnOutlinedDrawRenderTargetContent.cs:line 31
at Terraria.Graphics.Renderers.MapHeadRenderer.PrepareRenderTarget(GraphicsDevice device, SpriteBatch spriteBatch) in tModLoader\Terraria\Graphics\Renderers\MapHeadRenderer.cs:line 72
at DMD<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime gameTime)
at HighFPSSupport.TickRateModifier.OnDraw(orig_DoDraw orig, Main self, GameTime gameTime) in HighFPSSupport\TickRateModifier.cs:line 64
at Hook<System.Void HighFPSSupport.TickRateModifier::OnDraw(Terraria.On_Main+orig_DoDraw,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at SyncProxy<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52853
at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52834
[15:00:43.004] [Main Thread/FATAL] [tML]: Main engine crash

Tip: This is likely a mod's fault. Disable mods one by one and check if the issue persists

System.InvalidOperationException: Begin has been called before calling End after the last call to Begin. Begin cannot be called again until End has been successfully called.
at Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix) in D:\a\tModLoader\tModLoader\FNA\src\Graphics\SpriteBatch.cs:line 284
at Terraria.GameContent.AnOutlinedDrawRenderTargetContent.HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch) in tModLoader\Terraria\GameContent\AnOutlinedDrawRenderTargetContent.cs:line 31
at Terraria.Graphics.Renderers.MapHeadRenderer.PrepareRenderTarget(GraphicsDevice device, SpriteBatch spriteBatch) in tModLoader\Terraria\Graphics\Renderers\MapHeadRenderer.cs:line 72
at DMD<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime gameTime)
at HighFPSSupport.TickRateModifier.OnDraw(orig_DoDraw orig, Main self, GameTime gameTime) in HighFPSSupport\TickRateModifier.cs:line 64
at Hook<System.Void HighFPSSupport.TickRateModifier::OnDraw(Terraria.On_Main+orig_DoDraw,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at SyncProxy<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52853
at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52834
at Microsoft.Xna.Framework.Game.Tick() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 562
at Microsoft.Xna.Framework.Game.RunLoop() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 878
at Microsoft.Xna.Framework.Game.Run() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 419
at Terraria.Program.RunGame() in tModLoader\Terraria\Program.cs:line 266
[15:00:43.010] [Main Thread/DEBUG] [TerrariaSteamClient]: Send: shutdown
< >
Showing 1-10 of 10 comments
Stellar  [developer] 13 Jan, 2024 @ 3:00pm 
Yeah I can't get anything strange to happen by moving through cobwebs. Have you encountered this crash multiple times before?
JJ's Place 13 Jan, 2024 @ 6:35pm 
Yes I have. I think it has more to do with rendering a certain amount of tiles consecutively. I noticed that when I was constantly moving the crash would happen faster. But when i slowed down and moved at a slower pace I was able to go longer without crashing. But this crash happens every time i try to play. I do have a pretty large mod list so if I find specific mod conflicts I will report them here.
JJ's Place 28 Jan, 2024 @ 7:31pm 
So from testing this crash seems to happen when ever I enable the Secrets of the Shadows mod. I am not 100% sure though. Ill do more testing but at least we have a mod to start testing with.
JJ's Place 28 Jan, 2024 @ 7:38pm 
Ok I am glad i tested more. I can get the crash to happen constantly with SOTS and Nitrate enabled along with this mod.
Stellar  [developer] 28 Jan, 2024 @ 7:41pm 
Oh yeah I wouldn't expect this mod to be super compatible with Nitrate LOL

Is it specifically Nitrate or the combination of it with SOTS as well?
JJ's Place 28 Jan, 2024 @ 7:44pm 
Yes when I disable Nitrate the crash doesn't happen.
JJ's Place 28 Jan, 2024 @ 7:45pm 
Let me test vice versa
JJ's Place 28 Jan, 2024 @ 7:46pm 
Ok my bad the problem is just with Nitrate
Stellar  [developer] 28 Jan, 2024 @ 7:51pm 
Yeah If you want to use Nitrate for its optimizations I would expect things to probably work okay, but I wouldn't try and use the optimizations from both mods at once.
Last edited by Stellar; 28 Jan, 2024 @ 7:51pm
JJ's Place 28 Jan, 2024 @ 8:06pm 
Yeah I figured. And if you need it, all the settings for this mod I kept on default. Thanks for the quick response though.
< >
Showing 1-10 of 10 comments
Per page: 1530 50