Begin has been called before calling End after the last call to Begin

Bezvad

Terrarian
After using 64 bit tmodloader I keep getting this error, I've tried seeing if there is any help but none was helpful. I was using the tmodloader server in the steam folder with my friend. I couldn't use host and play because it was stuck on loading (if anyone can fix that that would be helpful).

My mods are:

Calamity Mod
Thorium Mod
SacredTools
Spirit Mod
Elemental Unleash
AlchemistNPC
The Balance Mod
Boss Checklist
Chad's Furniture Mod
Crystilium
Do it with a copper shortsword!
Elements Awoken
Fargo's Soul Mod
Fargo's Mutant Mod
imkSushi's Mod
Even More Modifiers
Loot Bags
Lostlorn
Magical Things
Magic Storage
Merchants+
Qwerty's Bosses and Items
Recipe Browser
Shorter Respawn Time
The Split Mod
VeinMiner

The error is:

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 transformationMatrix)
at Terraria.Main.do_Draw(GameTime gameTime)
at Terraria.Main.DoDraw(GameTime gameTime)
[17:45:29] [1/FATAL] [Terraria]: Main engine crash
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 transformationMatrix)
at Terraria.Main.do_Draw(GameTime gameTime)
at Terraria.Main.DoDraw(GameTime gameTime)
at Terraria.Main.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.SDL2_FNAPlatform.RunLoop(Game game)
at Microsoft.Xna.Framework.Game.Run()
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
 
I've tried disabling the mods it said in the log

Here is the full log

[18:31:20] [1/INFO] [tML]: Starting tModLoader v0.10.1.5ws client
[18:31:20] [1/INFO] [tML]: Executable: D:\Steam\steamapps\common\Terraria\Terraria.exe
[18:31:20] [1/INFO] [tML]: Working Directory: D:\Steam\steamapps\common\Terraria
[18:31:20] [1/INFO] [tML]: Launch Parameters: -high
[18:31:45] [6/INFO] [Terraria]: JIT loading finished
[18:31:45] [7/INFO] [tML]: Finding Mods...
[18:31:48] [6/INFO] [tML]: Sandboxing: CalamityMod
[18:31:48] [7/INFO] [tML]: Sandboxing: BalanceMod
[18:31:48] [3/INFO] [tML]: Sandboxing: CSSP
[18:31:48] [8/INFO] [tML]: Sandboxing: SpiritMod
[18:31:48] [9/INFO] [tML]: Sandboxing: imkSushisMod
[18:31:48] [10/INFO] [tML]: Sandboxing: Lostlorn
[18:31:49] [3/INFO] [tML]: Sandboxing: ElementsAwoken
[18:31:49] [9/INFO] [tML]: Sandboxing: Loot
[18:31:49] [10/INFO] [tML]: Sandboxing: MagicalThings
[18:31:49] [10/INFO] [tML]: Sandboxing: MagicStorage
[18:31:49] [9/INFO] [tML]: Sandboxing: LootBags
[18:31:49] [9/INFO] [tML]: Sandboxing: MerchantsPlus
[18:31:49] [10/INFO] [tML]: Sandboxing: Split
[18:31:49] [9/INFO] [tML]: Sandboxing: RecipeBrowser
[18:31:49] [7/INFO] [tML]: Sandboxing: Bluemagic
[18:31:49] [9/INFO] [tML]: Sandboxing: ShorterRespawn
[18:31:49] [9/INFO] [tML]: Sandboxing: chadsfurni
[18:31:50] [10/INFO] [tML]: Sandboxing: VeinMiner
[18:31:50] [10/INFO] [tML]: Sandboxing: WMITF
[18:31:50] [10/INFO] [tML]: Sandboxing: FargowiltasSouls
[18:31:50] [3/INFO] [tML]: Sandboxing: ThoriumMod
[18:31:50] [10/INFO] [tML]: Sandboxing: Fargowiltas
[18:31:50] [9/INFO] [tML]: Sandboxing: CrystiliumMod
[18:31:50] [7/INFO] [tML]: Sandboxing: BossChecklist
[18:31:51] [7/INFO] [tML]: Instantiating Mods...
[18:31:52] [7/INFO] [tML]: Initializing: ModLoader
[18:31:54] [7/INFO] [tML]: Initializing: BalanceMod
[18:32:03] [7/INFO] [tML]: Initializing: Bluemagic
[18:32:06] [7/INFO] [tML]: Initializing: BossChecklist
[18:32:06] [7/INFO] [tML]: Initializing: CalamityMod
[18:32:34] [7/INFO] [tML]: Initializing: chadsfurni
[18:32:43] [7/INFO] [tML]: Initializing: CrystiliumMod
[18:32:45] [7/INFO] [tML]: Initializing: CSSP
[18:32:45] [7/INFO] [tML]: Initializing: ElementsAwoken
[18:32:57] [7/INFO] [tML]: Initializing: ThoriumMod
[18:33:38] [7/INFO] [tML]: Initializing: SpiritMod
[18:33:55] [7/INFO] [tML]: Initializing: FargowiltasSouls
[18:33:57] [7/INFO] [tML]: Initializing: Fargowiltas
[18:33:58] [7/INFO] [tML]: Initializing: imkSushisMod
[18:33:58] [7/INFO] [tML]: Initializing: Loot
[18:33:59] [7/INFO] [tML]: Initializing: LootBags
[18:33:59] [7/INFO] [tML]: Initializing: Lostlorn
[18:34:01] [7/INFO] [tML]: Initializing: MagicalThings
[18:34:03] [7/INFO] [tML]: Initializing: MagicStorage
[18:34:03] [7/INFO] [tML]: Initializing: MerchantsPlus
[18:34:03] [7/INFO] [tML]: Initializing: RecipeBrowser
[18:34:03] [7/INFO] [tML]: Initializing: ShorterRespawn
[18:34:03] [7/INFO] [tML]: Initializing: Split
[18:34:11] [7/INFO] [tML]: Initializing: VeinMiner
[18:34:12] [7/INFO] [tML]: Initializing: WMITF
[18:34:12] [7/INFO] [tML]: Setting up...
[18:34:13] [7/INFO] [tML]: Loading: ModLoader
[18:34:13] [7/INFO] [tML]: Loading: BalanceMod
[18:34:14] [7/INFO] [tML]: Loading: Bluemagic
[18:34:15] [7/INFO] [tML]: Loading: BossChecklist
[18:34:15] [7/INFO] [tML]: Loading: CalamityMod
[18:34:17] [7/INFO] [tML]: Loading: chadsfurni
[18:34:18] [7/INFO] [tML]: Loading: CrystiliumMod
[18:34:18] [7/INFO] [tML]: Loading: CSSP
[18:34:18] [7/INFO] [tML]: Loading: ElementsAwoken
[18:34:19] [7/INFO] [tML]: Loading: ThoriumMod
[18:34:22] [7/INFO] [tML]: Loading: SpiritMod
[18:34:24] [7/INFO] [tML]: Loading: FargowiltasSouls
[18:34:24] [7/INFO] [tML]: Loading: Fargowiltas
[18:34:25] [7/INFO] [tML]: Loading: imkSushisMod
[18:34:25] [7/INFO] [tML]: Loading: Loot
[18:34:25] [7/INFO] [tML]: Loading: LootBags
[18:34:25] [7/INFO] [tML]: Loading: Lostlorn
[18:34:25] [7/INFO] [tML]: Loading: MagicalThings
[18:34:25] [7/INFO] [tML]: Loading: MagicStorage
[18:34:25] [7/INFO] [tML]: Loading: MerchantsPlus
[18:34:25] [7/INFO] [tML]: Loading: RecipeBrowser
[18:34:25] [7/INFO] [tML]: Loading: ShorterRespawn
[18:34:25] [7/INFO] [tML]: Loading: Split
[18:34:25] [7/INFO] [tML]: Loading: VeinMiner
[18:34:25] [7/INFO] [tML]: Loading: WMITF
[18:34:26] [7/INFO] [tML]: Adding Recipes...
[18:34:30] [7/DEBUG] [tML]: Assembly Resolve: -> RecipeBrowser_0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
[18:34:30] [7/DEBUG] [tML]: Assembly Resolve: -> RecipeBrowser_0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
[18:34:53] [13/INFO] [Terraria]: Loading World: LARGE AND EXPERT 5, IsCloud=False
[18:34:53] [13/INFO] [StatusText]: Resetting game objects
[18:34:56] [13/INFO] [StatusText]: Loading world data
[18:34:57] [13/INFO] [StatusText]: Settling liquids
[18:35:01] [13/INFO] [StatusText]: Loading map data
[18:35:01] [13/INFO] [StatusText]: Drawing map
[18:35:01] [13/INFO] [Terraria]: Entering world with player: Sans, IsCloud=True
[18:35:06] [1/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 transformationMatrix)
at Terraria.Main.do_Draw(GameTime gameTime)
at Terraria.Main.DoDraw(GameTime gameTime)
[18:35:06] [1/FATAL] [Terraria]: Main engine crash
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 transformationMatrix)
at Terraria.Main.do_Draw(GameTime gameTime)
at Terraria.Main.DoDraw(GameTime gameTime)
at Terraria.Main.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.SDL2_FNAPlatform.RunLoop(Game game)
at Microsoft.Xna.Framework.Game.Run()
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
 
I'm not that good with logs, so I cannot help you with any further but maybe try turning off steam cloud sync
sorry I couldn't help
 
It's all good I someone found a way to fix it, I just tried doing what u said and disabling mods and see which one works.
 
Sounds like a bug in one of the many mods you have.

If you can, please mention which mod it was. It would be helpful for the mod creator to fix it.
 
Definitely a mod. After disabling all mods you MUST repair XNA Framework if the notice still appears.
Then try to enable mods 1 by 1 to see which mod causes the error.
 
It crashes with any content mod I try. Calamity, Thorium, even the bad mod, Tremor. None of the content mods work.
Try disabling all mods and then enabling them one by one until the error shows up. That's your culprit right there.

The problem with this particular error is that's pretty much impossible to tell which mod is causing it, so that's really your best shot.
 
if this is still live, I've been having this crash at random while doing pretty much anything, opening a chest, closing a chest, storing items, taking out items, attacking, getting damaged, quick stack, picking up an item, breaking a block, etc. It seems to not matter what I'm doing it just happens.
 
for me i try to just play and randomly mid game it crashes with System.InvalidOperationException: Begin cannot be called again until End has been successfully called. and then some more text
 
Back
Top Bottom