Standalone [1.3] tModLoader FNA (32bit/64bit) (Branch of tML)

Is this normal? I press alt+tab and the game breaks, how to fix it? 64 bit

[17:52:16] [1/ERROR] [Terraria]: System.AccessViolationException: Попытка чтения или записи в защищенную память. Это часто свидетельствует о том, что другая память повреждена.
в Microsoft.Xna.Framework.Graphics.OpenGLDevice.<>c__DisplayClass177_0.<SetVertexBufferData>b__0()
в DMD<Microsoft.Xna.Framework.Graphics.OpenGLDevice::ForceToMainThread>(OpenGLDevice , Action )
в Terraria.ModLoader.Engine.GLCallLocker.HookForceToMainThread(orig_ForceToMainThread orig, Object self, Action action)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.UpdateVertexBuffer(Int32 count)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.FlushBatch()
в Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
в DMD<Terraria.Main::DoDraw>(Main , GameTime )
в Terraria.Main.Draw(GameTime gameTime)
[17:52:16] [1/ERROR] [tML]: Unhandled Exception
System.AccessViolationException: Попытка чтения или записи в защищенную память. Это часто свидетельствует о том, что другая память повреждена.
в Microsoft.Xna.Framework.Graphics.OpenGLDevice.<>c__DisplayClass177_0.<SetVertexBufferData>b__0()
в DMD<Microsoft.Xna.Framework.Graphics.OpenGLDevice::ForceToMainThread>(OpenGLDevice , Action )
в Terraria.ModLoader.Engine.GLCallLocker.HookForceToMainThread(orig_ForceToMainThread orig, Object self, Action action)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.UpdateVertexBuffer(Int32 count)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.FlushBatch()
в Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
в DMD<Terraria.Main::DoDraw>(Main , GameTime )
в Terraria.Main.Draw(GameTime gameTime)
в Microsoft.Xna.Framework.Game.RedrawWindow()
в Microsoft.Xna.Framework.SDL2_FNAPlatform.Win32OnPaint(IntPtr func, IntPtr evtPtr)

Необработанное исключение: System.AccessViolationException: Попытка чтения или записи в защищенную память. Это часто свидетельствует о том, что другая память повреждена.
в Microsoft.Xna.Framework.Graphics.OpenGLDevice.<>c__DisplayClass177_0.<SetVertexBufferData>b__0()
в DMD<Microsoft.Xna.Framework.Graphics.OpenGLDevice::ForceToMainThread>(OpenGLDevice , Action )
в Terraria.ModLoader.Engine.GLCallLocker.HookForceToMainThread(orig_ForceToMainThread orig, Object self, Action action)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.UpdateVertexBuffer(Int32 count)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.FlushBatch()
в Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
в DMD<Terraria.Main::DoDraw>(Main , GameTime )
в Terraria.Main.Draw(GameTime gameTime)
в Microsoft.Xna.Framework.Game.RedrawWindow()
в Microsoft.Xna.Framework.SDL2_FNAPlatform.Win32OnPaint(IntPtr func, IntPtr evtPtr)
 
Is this normal? I press alt+tab and the game breaks, how to fix it? 64 bit

[17:52:16] [1/ERROR] [Terraria]: System.AccessViolationException: Попытка чтения или записи в защищенную память. Это часто свидетельствует о том, что другая память повреждена.
в Microsoft.Xna.Framework.Graphics.OpenGLDevice.<>c__DisplayClass177_0.<SetVertexBufferData>b__0()
в DMD<Microsoft.Xna.Framework.Graphics.OpenGLDevice::ForceToMainThread>(OpenGLDevice , Action )
в Terraria.ModLoader.Engine.GLCallLocker.HookForceToMainThread(orig_ForceToMainThread orig, Object self, Action action)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.UpdateVertexBuffer(Int32 count)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.FlushBatch()
в Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
в DMD<Terraria.Main::DoDraw>(Main , GameTime )
в Terraria.Main.Draw(GameTime gameTime)
[17:52:16] [1/ERROR] [tML]: Unhandled Exception
System.AccessViolationException: Попытка чтения или записи в защищенную память. Это часто свидетельствует о том, что другая память повреждена.
в Microsoft.Xna.Framework.Graphics.OpenGLDevice.<>c__DisplayClass177_0.<SetVertexBufferData>b__0()
в DMD<Microsoft.Xna.Framework.Graphics.OpenGLDevice::ForceToMainThread>(OpenGLDevice , Action )
в Terraria.ModLoader.Engine.GLCallLocker.HookForceToMainThread(orig_ForceToMainThread orig, Object self, Action action)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.UpdateVertexBuffer(Int32 count)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.FlushBatch()
в Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
в DMD<Terraria.Main::DoDraw>(Main , GameTime )
в Terraria.Main.Draw(GameTime gameTime)
в Microsoft.Xna.Framework.Game.RedrawWindow()
в Microsoft.Xna.Framework.SDL2_FNAPlatform.Win32OnPaint(IntPtr func, IntPtr evtPtr)

Необработанное исключение: System.AccessViolationException: Попытка чтения или записи в защищенную память. Это часто свидетельствует о том, что другая память повреждена.
в Microsoft.Xna.Framework.Graphics.OpenGLDevice.<>c__DisplayClass177_0.<SetVertexBufferData>b__0()
в DMD<Microsoft.Xna.Framework.Graphics.OpenGLDevice::ForceToMainThread>(OpenGLDevice , Action )
в Terraria.ModLoader.Engine.GLCallLocker.HookForceToMainThread(orig_ForceToMainThread orig, Object self, Action action)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.UpdateVertexBuffer(Int32 count)
в Microsoft.Xna.Framework.Graphics.SpriteBatch.FlushBatch()
в Microsoft.Xna.Framework.Graphics.SpriteBatch.End()
в DMD<Terraria.Main::DoDraw>(Main , GameTime )
в Terraria.Main.Draw(GameTime gameTime)
в Microsoft.Xna.Framework.Game.RedrawWindow()
в Microsoft.Xna.Framework.SDL2_FNAPlatform.Win32OnPaint(IntPtr func, IntPtr evtPtr)
I think this build needs to be updated, that's all.
 
Is there any way to fix this?
[08:01:51] [1/WARN] [tML]: Silently Caught 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.Clear(ClearOptions options, Vector4 color, Single depth, Int32 stencil)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Vector4 color, Single depth, Int32 stencil)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(Color color)
at DMD<Terraria.Main::DoDraw>(Main , 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)

[08:01:51] [1/ERROR] [Terraria]: 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.Clear(ClearOptions options, Vector4 color, Single depth, Int32 stencil)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Vector4 color, Single depth, Int32 stencil)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(Color color)
at DMD<Terraria.Main::DoDraw>(Main , GameTime )
at Terraria.Main.Draw(GameTime gameTime)
 
Is there any way to fix this?
[08:01:51] [1/WARN] [tML]: Silently Caught 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.Clear(ClearOptions options, Vector4 color, Single depth, Int32 stencil)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Vector4 color, Single depth, Int32 stencil)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(Color color)
at DMD<Terraria.Main::DoDraw>(Main , 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)

[08:01:51] [1/ERROR] [Terraria]: 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.Clear(ClearOptions options, Vector4 color, Single depth, Int32 stencil)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(ClearOptions options, Vector4 color, Single depth, Int32 stencil)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Clear(Color color)
at DMD<Terraria.Main::DoDraw>(Main , GameTime )
at Terraria.Main.Draw(GameTime gameTime)
Check the update device the your graphics device
 
discord envite link is dead on bot hthe github and the forums.terraria.org, where can i get installation instructions
 
Me and my friends keep getting game running out of memory no matter who hosts the world. Our biggest mods are Calamity, Calamity Vanities and Mr. Plagues Authentic Races. The rest are small qol mods.
Here's the Server Log .
 

Attachments

  • server.log
    60.4 KB · Views: 65
Me and my friends keep getting game running out of memory no matter who hosts the world. Our biggest mods are Calamity, Calamity Vanities and Mr. Plagues Authentic Races. The rest are small qol mods.
Here's the Server Log .

after rereading and verifying there might be an infinite loop related to calamity and authentic races, if you have recipe browser mod installed it may show the specific recipe thats looping and filling up your ram.
-- calamity does not play well with others due to its sheer size and modifications of local files.(instead of cloning and renaming them) ive personally had many issues with calamity and other mods and literally just dealt with one minutes ago which is why im here. {calamity > | < fargos mutant mod}

>in this case your solution is to report the issues to the mod makers not the tmod 64 loader, and uninstall either the racial mod or calamity mod until iether one creates a patch for the other >best bet is to report the issue to both then wait a week and try again by downloading updates<

_______________________________________

if that doesnt solve your problem then

you need more ram on your pc if you have tmod64 bit correctly installed, because tmod 64 latest version supports up to 32 gigabytes, and if both you and your friend are having the same issue than its not likely that the issue is too many background programs running (see msconfig for details on that)
your solution is
1 to use "iobit driver booster free" and open the tools section to see your system information > motherboard, and manufacturer name
2 visit "crucial ram finder" from google or whatnot and find the cheapest ram available for that pc|laptop, it needs to be 8 g total or higher, most youll probably need is 16 gigabytes.
if you need help installing ram there are literally thousands of "how to install ram" tutorials on youtube

i hope this information helps you and others :)
 
Last edited:
Try this
calamity The most recent Calamity mod update broke several things and causes a frequent Out Of Memory error, to fix this download the February release of Calamity (v 1.5.0.4) and the November release of Calamity Music (v 1.5.0.3) and manually place it into your mods folder which is typically located at \Documents\My Games\Terraria\ModLoader\Mods in your C drive If this causes you to be unable to move, interact with objects, or any other issues then you must remove a mod named "Calamity's Vanities" until Calamity fixes the other issues Release v1.5.0.4 · MountainDrew8/CalamityMod
Release v1.5.0.3 · CalamityTeam/CalamityModMusicPublic

Copy from discord 64 bit launcher
 
So i am running a Calamity world with some other mods with my friend, and every time the Old One's Army event start, this error occurred after the first wave:

09/07/2021 1:14:58 AM
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at SDL2.SDL.SDL_GL_SwapWindow(IntPtr window)
at Microsoft.Xna.Framework.Graphics.OpenGLDevice.SwapBuffers(Nullable`1 sourceRectangle, Nullable`1 destinationRectangle, IntPtr overrideWindowHandle)
at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Present()
at Microsoft.Xna.Framework.GraphicsDeviceManager.Microsoft.Xna.Framework.IGraphicsDeviceManager.EndDraw()
at Microsoft.Xna.Framework.Game.EndDraw()
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_()

This error doesn't appear in the 32bit version, only in the 64bit and only in the Old One's Army event
Any help would be greatly appreciated, thank you.
Still an issue with the newest version... No logs for me though, just a segmentation fault. Happens soon after first spawn. It seems that a few people experience the same thing with slightly different timing and logs

Sometimes it just freezes. Some things continue to render. Rain stopped. Weird stuff popping up on the player constantly.
This time this in logs but varies.
Code:
[01:04:14] [1/WARN] [tML]: Silently Caught Exception:
System.BadImageFormatException: Nieprawidłowy dostęp do lokalizacji w pamięci. (Exception from HRESULT: 0x800703E6)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Runtime.InteropServices.Marshal.FreeHGlobal(IntPtr hglobal)
   at Microsoft.Xna.Framework.Audio.SoundEffectInstance.Dispose(Boolean disposing)
   at DMD<Terraria.Main::UpdateAudio>(Main )
   at Terraria.Main.DoUpdate(GameTime gameTime)
   at Terraria.Main.Update(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)
1650841517808.png
 
Last edited:
Hey Dradon,
I'm having an issue running Tmod 64 bit. Whenever I try to run the game it gets stuck on the command prompt and says...

[00:34:55] [1/INFO] [tML]: Starting tModLoader v0.11.8.9 Win32NT client (6/10/2022)
[00:34:55] [1/INFO] [tML]: Running on NetFramework 4.8
[00:34:55] [1/INFO] [tML]: Engine: FNA
[00:34:55] [1/INFO] [tML]: Executable: M:\Steam\steamapps\common\tModLoader\tModLoader64Bit.exe
[00:34:55] [1/INFO] [tML]: Working Directory: M:\Steam\steamapps\common\tModLoader
[00:34:55] [1/INFO] [tML]: Launch Parameters:
[00:34:55] [1/DEBUG] [tML]: Assembly Resolve: -> MonoMod.RuntimeDetour, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null
[00:34:55] [1/DEBUG] [tML]: Assembly Resolve: MonoMod.RuntimeDetour, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null -> MonoMod.Utils, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null
[00:34:55] [1/DEBUG] [tML]: Assembly Resolve: MonoMod.RuntimeDetour, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null -> Mono.Cecil, Version=0.11.1.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e
[00:34:55] [1/DEBUG] [tML]: Assembly Resolve: -> Ionic.Zip.Reduced, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c
[00:34:55] [1/DEBUG] [tML]: Assembly Resolve: -> FNA, Version=20.4.0.0, Culture=neutral, PublicKeyToken=null
[00:34:55] [1/DEBUG] [tML]: Assembly Resolve: -> Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
[00:34:56] [1/DEBUG] [tML]: Assembly Resolve: -> Steamworks.NET, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null
[00:34:56] [1/DEBUG] [tML]: Assembly Resolve: ReLogic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> FNA, Version=17.4.0.0, Culture=neutral, PublicKeyToken=null
[00:34:56] [1/WARN] [tML]: Upgraded Reference FNA -> Version=17.4.0.0 -> 20.4.0.0

There are no new submission into the crash-log so i'm not sure what this is. I've been playing normally for awhile and this is just now happening.

Edit: I did a clean install of both terraria/tmod loader/64bit and the problem still persists.

Edit 2: I have not found the problem yet but, when I run Phasmaphobia then run tmod 64, it somehow works. This is the text on the cmd...(the bold is the new text)

[13:29:17] [1/INFO] [tML]: Starting tModLoader v0.11.8.9 Win32NT client (6/10/2022)
[13:29:17] [1/INFO] [tML]: Running on NetFramework 4.8
[13:29:17] [1/INFO] [tML]: Engine: FNA
[13:29:17] [1/INFO] [tML]: Executable: M:\Steam\steamapps\common\tModLoader\tModLoader64bit.exe
[13:29:17] [1/INFO] [tML]: Working Directory: M:\Steam\steamapps\common\tModLoader
[13:29:17] [1/INFO] [tML]: Launch Parameters:
[13:29:17] [1/DEBUG] [tML]: Assembly Resolve: -> MonoMod.RuntimeDetour, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null
[13:29:17] [1/DEBUG] [tML]: Assembly Resolve: MonoMod.RuntimeDetour, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null -> MonoMod.Utils, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null
[13:29:17] [1/DEBUG] [tML]: Assembly Resolve: MonoMod.RuntimeDetour, Version=19.12.19.1, Culture=neutral, PublicKeyToken=null -> Mono.Cecil, Version=0.11.1.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e
[13:29:17] [1/DEBUG] [tML]: Assembly Resolve: -> Ionic.Zip.Reduced, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c
[13:29:17] [1/DEBUG] [tML]: Assembly Resolve: -> FNA, Version=20.4.0.0, Culture=neutral, PublicKeyToken=null
[13:29:17] [1/DEBUG] [tML]: Assembly Resolve: -> Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
[13:29:17] [1/DEBUG] [tML]: Assembly Resolve: -> Steamworks.NET, Version=9.1.0.0, Culture=neutral, PublicKeyToken=null
[13:29:17] [1/DEBUG] [tML]: Assembly Resolve: ReLogic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null -> FNA, Version=17.4.0.0, Culture=neutral, PublicKeyToken=null
[13:29:17] [1/WARN] [tML]: Upgraded Reference FNA -> Version=17.4.0.0 -> 20.4.0.0
[13:29:18] [1/WARN] [tML]: Silently Caught Exception:
System.DllNotFoundException: Unable to load DLL '/usr/lib/libobjc.A.dylib': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Microsoft.Xna.Framework.Graphics.MetalDevice.sel_registerName(Byte[] name)
at Microsoft.Xna.Framework.Graphics.MetalDevice..cctor()
at Microsoft.Xna.Framework.SDL2_FNAPlatform.CreateWindow()
at Microsoft.Xna.Framework.Game..ctor()
at Terraria.Main..ctor()
at Terraria.Program.LaunchGame_()
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
at Terraria.FNALaunch.Main(String[] args)

[13:29:18] [1/DEBUG] [tML]: Hook On.Terraria.IO.WorldFile::LoadChests(BinaryReader) added by tModLoader
[13:29:18] [1/DEBUG] [tML]: Hook On.Terraria.IO.WorldFile::SaveChests(BinaryWriter) added by tModLoader
[13:29:18] [1/INFO] [tML]: Checking Steam installation...

Edit 3: It seems to be working just fine. Will update if something else happens.
 
Last edited:
Back
Top Bottom