I get a crash pretty regularly when using magic storage extra:
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Microsoft.Xna.Framework.Graphics.OpenGLDevice.DrawIndexedPrimitives(PrimitiveType primitiveType, Int32 baseVertex, Int32 minVertexIndex, Int32 numVertices, Int32 startIndex, Int32 primitiveCount, IGLBuffer indices, IndexElementSize indexElementSize)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.DrawIndexedPrimitives(PrimitiveType primitiveType, Int32 baseVertex, Int32 minVertexIndex, Int32 numVertices, Int32 startIndex, Int32 primitiveCount)
at Microsoft.Xna.Framework.Graphics.SpriteBatch.DrawPrimitives(Texture texture, Int32 baseSprite, Int32 batchSize)
at Microsoft.Xna.Framework.Graphics.SpriteBatch.FlushBatch()
at Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
at Terraria.UI.GameInterfaceLayer.Draw()
at DMD<Terraria.Main:

rawInterface>(Main , GameTime )
at SpiritMod.SpiritDetours.DrawParticles(orig_DrawInterface orig, Main self, GameTime gameTime) in SpiritMod\SpiritDetours.cs:line 85
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_()
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
at Terraria.FNALaunch.Main(String[] args)
Happens in tModLaoder 32 and 64 bit.
why I think it happens:
A combination out of:
- a 1440p monitor which makes more items render in the magic storage than normal
- fast usage of magic storage. every crash happens after writing something quickly into the searchbar or scrolling fast