PC Troubleshooting Terraria Issues

Thanks a lot! I really hope this helps additional users, and it gives me a reference I can go back and copy paste from. Thanks for all your help creating, managing, and updating this thread. You're awesome! :D
If there any more addendum you may have feel free to DM me those, so you don't have to post them here. Just send the bbcode modules, but I can always do reply to get the code to copy it.
 
Hello when i start terraria up it fails and gives me this
---------------------------
Terraria: Error
---------------------------
System.Threading.SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.

at Terraria.IO.Preferences.Save(Boolean createFile)

at Terraria.Main.SaveSettings()

at Terraria.Main.OpenSettings()

at Terraria.Main.ClientInitialize()

at Terraria.Main.Initialize()

at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)

at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
---------------------------
OK
---------------------------
PLZ HELP
 

Did you already try the synch lock exception fixes shown in my post and in the original post? Here it is again in case you missed it.

index.php
This particular cause can actually boil down to a few different errors and crash reports, but after deleting config.json which many troubleshooting steps have you do you'll finally get this one. This simply means that Terraria does not have the permissions or access required to create and modify the config.json file.
1. Disabling, or adding an exception to, Windows Defender: I have users start with disabling windows defender to see if that's what causing the issue, if it is, I have them re-enable it and then add an exception to Terraria.exe located in the install directory and Terraria's default save location which is located in \Documents\My Games\Terraria.

How to disable Windows Defender
  • Open the Settings Page for Windows, this can be done by clicking the start button and then clicking the gear icon towards the bottom left hand side of the screen. Alternatively you can also type in settings and click the gear icon that pops up if you're having trouble locating it.
  • Click on "Update and Security".
  • Make sure the shield icon is selected on the left hand side.
  • Click on "Virus and Threat Protection".
  • Click on "Virus and Threat Protection Settings".
  • Click the toggle switch on under "Real Time Protection" so that it says off.
  • You should now be prompted by the UAC, select yes.
  • Windows Defender should now be disabled, if you had problems following this short tutorial, click here to visit a section of the Ten Forums that covers this topic complete with pictures.
If this did not solve your problem or this does not apply to you move to step 2

2. Add an Exception to your Anti-Virus Program: You can also just temporarily turn off your Anti-Virus program to see if this is causing the issue. Once it's determined if it is causing the problem you'll want to turn it back on and just add an exception to the program, as keeping it off is not recommended as it can expose your system to malware and viruses. Make sure that both Terraria's install directory, it's application file (.exe), and the default save location \Documents\My Games\Terraria are added. The steps on how to add an exception, and what you can add as an exception are going to differ from program to program. If you're not sure you can always google it or ask the Tech Support Section for help. Programs known to cause issues with Terraria include: BitDefender, MalwareBytes, and McAfee.

If this did not solve your problem or this does not apply to you move to step 3

3. Adjust Windows File Permissions and Ownership: We need to make sure all users have Full Control over Terraria's default save directory to see if this will solve the error. There's two different ways to do this. If one doesn't work out for you, maybe the other one will. The Ownership part of this tutorial was written up by the Quality Assurance Director for Relogic, Thanks Arkhayla!

Method 1: Changing Permissions
  • Go to your Documents and find you "My Games" Folder, right click it and select properties.
  • In the new window that will pop up there should be bunch of tabs, click on the security tab.
  • You'll need to select each of the users on there and give them full control. So click on a user/group from the list then select edit.
  • A new window will pop up, in this new window click on a user/group and make sure the full control checkbox is checked.
  • Do this for all users and groups, afterwards see if that fixed it and you can launch the game.
  • Below you will find an example image that may clarify some of the previous steps
3UJorJf.png
moLX64W.png


Method 2: Changing Ownership
  • Open My Documents\My Games\ and right click the Terraria folder Or wherever your directory is
  • Click Properties.
  • Click the Security tab
  • Click the "Advanced" button.
  • Click "Change" next to Owner.
  • Type your username, click the "Check Names" button, then click OK.
  • Check "Replace owner on subcontainers and objects" under the owner's name.
  • Click OK again. If you get a message saying "Do you want to replace the directory permissions with permissions granting you full control?", click "Yes" and you're done.
  • Click the "Edit" button.
  • Click on your username from the list.
  • Check "Full control" underneath it.
  • Click OK.
  • Click OK again.
If this did not solve your problem or this does not apply to you move to step 4

4. Run Terraria as an Administrator: Browse to you installation directory, by default for steam it is C:\Program Files (x86)\Steam\steamapps\common\Terraria then right click the application and select run administrator.

If this did not solve your problem or this does not apply to you move to step 5

5. Erase All Previous Terraria Data and Installations on your Computer: This method was found by a user on our forums in a thread that I helped troubleshoot with them. Thanks TheWolfLike101! First uninstall Terraria, then back up any save data you might want to keep located in either \Documents\My Games\Terraria\Worlds and \Documents\My Games\Terraria\Players. Now delete the Terraria folder in \Documents\My Games. Finally do a file search for anything that might be Terraria related. Afterwards reinstall Terraria and launch it, if no error is thrown you can copy back over your world and player files that I mentioned you should back up.

If this did not solve your problem or this does not apply to you move to step 6


6. Changing the Default Save Directory: It's possible to manipulate and change the default save directory in the event all previous steps have failed to help you. This method was found by a user on our forum, Thanks TorZar! It was originally used by TorVar to change the directory for mod purposes, but I believe the same method can be used to help solve this problem.

Method 1: Using a Shortcut - The Install Directory
  • Navigate to your install directory of Terraria, by default for steam it should be: C:\Program Files (x86)\Steam\steamapps\common\Terraria
  • Right click Terraria.exe and select "Create Shortcut".
  • Right click the newly created shortcut and select properties.
  • In the target field add -savedirectory saves at the end, it should now look something like below, and save it's files to the install directory in a folder called saves
T5cTqDB.png


Method 2: Using a Shortcut - Any Directory
  • Navigate to your install directory of Terraria, by default for steam it should be: C:\Program Files (x86)\Steam\steamapps\common\Terraria
  • Right click Terraria.exe and select "Create Shortcut".
  • Right click the newly created shortcut and select properties.
  • In the target field add -savedirectory and then add the file path so that it looks something like this -savedirectory C:\Terraria Save Data. Any file path can be used so long as you have the proper permissions on that user to modify files there. You can use a file path for a folder on your desktop, your local app data, or even an external drive. (so long as that drive is mounted)
ns6ahII.png
 
OMG THX ive been trying to fix this for a good 2 or 3 days now IT WORKED
[doublepost=1539375598,1539375116][/doublepost]But now a new prob when i try to go into single player or multi player and even exit it gives me this
---------------------------
Terraria: Error
---------------------------
System.IO.FileNotFoundException: Could not find file 'C:\Users\Luca Daddabbo\Documents\My Games\Terraria\Players'.

File name: 'C:\Users\Luca Daddabbo\Documents\My Games\Terraria\Players'

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)

at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)

at System.IO.Directory.CreateDirectory(String path)

at Terraria.Main.LoadPlayers()

at Terraria.GameContent.UI.States.UICharacterSelect.OnActivate()

at Terraria.UI.UIElement.Activate()

at Terraria.UI.UserInterface.SetState(UIState state)

at Terraria.Main.DrawMenu(GameTime gameTime)

at Terraria.Main.DoDraw(GameTime gameTime)

at Terraria.Main.Draw(GameTime gameTime)

at Microsoft.Xna.Framework.Game.DrawFrame()

at Microsoft.Xna.Framework.Game.Tick()

at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)

at Microsoft.Xna.Framework.GameHost.OnIdle()

at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()

at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)

at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)

at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

at System.Windows.Forms.Application.Run(Form mainForm)

at Microsoft.Xna.Framework.WindowsGameHost.Run()

at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)

at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
---------------------------
OK
---------------------------
it worked when i turned of realtime protection but when i added two execptions exaclty Terraria.exe and Documents/My Games/Terraria edit i tested it out and i can enter game fine now just even without exclutions but still cant exit or go into single/multi player without crash
 
Last edited:
That would be step 3 of the solutions I posted to you, just apply it to \Documents\My Games\Terraria.
 
i checked it all of them on terraria folder already have full permisions but can you show me some pictures and exaclty what to type for exclutions to see in case i am typing them wrong
 
So to confirm, when realtime protection is turned off, you can get into a single player game, but when turned on with exclusions you still crash correct?

make sure you installation directory is excluded, by default for steam it should be: C:\Program Files (x86)\Steam\steamapps\common\Terraria

then make sure your save and game file directory is excluded it should be: C:\Users\**USERNAME**\Documents\My Games\Terraria (you must replace "**USERNAME**" with the user profile of the account your using for your computer)
 
ok yes for the realtime protection off thing but do i do file, folder, file folder or process for exluding and please tell me for each one to write whether it's file file folder folder or process
 
I am unfamiliar with the options, could you please include a screenshot of the options that confuse you?

If I'm not mistaken though, you should have it exclude the two folders at the directories I listed, and you may even need to exclude the process Terraria.exe

If that doesn't work get the screenshot and I'll look it over.
 
wow that was fast XD but anyways ill try and oh if it helps i launch terraria on a copy shortcut because i did install tmodloader and wanted to save vannila terraria so i made a copy before install and shortcuted it to desktop so i launch from steam for mod and shortcut for vannila
 
upload_2018-11-30_0-54-16.png
I dont know what catagory this error is under, but this happens whenever I try to launch Terraria from Steam.
 
View attachment 213974I dont know what catagory this error is under, but this happens whenever I try to launch Terraria from Steam.

This one:

index.php
This particular cause can actually boil down to a few different errors and crash reports, but after deleting config.json which many troubleshooting steps have you do you'll finally get this one. This simply means that Terraria does not have the permissions or access required to create and modify the config.json file.
1. Disabling, or adding an exception to, Windows Defender: I have users start with disabling windows defender to see if that's what causing the issue, if it is, I have them re-enable it and then add an exception to Terraria.exe located in the install directory and Terraria's default save location which is located in \Documents\My Games\Terraria.

How to disable Windows Defender
  • Open the Settings Page for Windows, this can be done by clicking the start button and then clicking the gear icon towards the bottom left hand side of the screen. Alternatively you can also type in settings and click the gear icon that pops up if you're having trouble locating it.
  • Click on "Update and Security".
  • Make sure the shield icon is selected on the left hand side.
  • Click on "Virus and Threat Protection".
  • Click on "Virus and Threat Protection Settings".
  • Click the toggle switch on under "Real Time Protection" so that it says off.
  • You should now be prompted by the UAC, select yes.
  • Windows Defender should now be disabled, if you had problems following this short tutorial, click here to visit a section of the Ten Forums that covers this topic complete with pictures.
If this did not solve your problem or this does not apply to you move to step 2

2. Add an Exception to your Anti-Virus Program: You can also just temporarily turn off your Anti-Virus program to see if this is causing the issue. Once it's determined if it is causing the problem you'll want to turn it back on and just add an exception to the program, as keeping it off is not recommended as it can expose your system to malware and viruses. Make sure that both Terraria's install directory, it's application file (.exe), and the default save location \Documents\My Games\Terraria are added. The steps on how to add an exception, and what you can add as an exception are going to differ from program to program. If you're not sure you can always google it or ask the Tech Support Section for help. Programs known to cause issues with Terraria include: BitDefender, MalwareBytes, and McAfee.

If this did not solve your problem or this does not apply to you move to step 3

3. Adjust Windows File Permissions and Ownership: We need to make sure all users have Full Control over Terraria's default save directory to see if this will solve the error. There's two different ways to do this. If one doesn't work out for you, maybe the other one will. The Ownership part of this tutorial was written up by the Quality Assurance Director for Relogic, Thanks Arkhayla!

Method 1: Changing Permissions
  • Go to your Documents and find you "My Games" Folder, right click it and select properties.
  • In the new window that will pop up there should be bunch of tabs, click on the security tab.
  • You'll need to select each of the users on there and give them full control. So click on a user/group from the list then select edit.
  • A new window will pop up, in this new window click on a user/group and make sure the full control checkbox is checked.
  • Do this for all users and groups, afterwards see if that fixed it and you can launch the game.
  • Below you will find an example image that may clarify some of the previous steps
3UJorJf.png
moLX64W.png


Method 2: Changing Ownership
  • Open My Documents\My Games\ and right click the Terraria folder Or wherever your directory is
  • Click Properties.
  • Click the Security tab
  • Click the "Advanced" button.
  • Click "Change" next to Owner.
  • Type your username, click the "Check Names" button, then click OK.
  • Check "Replace owner on subcontainers and objects" under the owner's name.
  • Click OK again. If you get a message saying "Do you want to replace the directory permissions with permissions granting you full control?", click "Yes" and you're done.
  • Click the "Edit" button.
  • Click on your username from the list.
  • Check "Full control" underneath it.
  • Click OK.
  • Click OK again.
If this did not solve your problem or this does not apply to you move to step 4

4. Run Terraria as an Administrator: Browse to you installation directory, by default for steam it is C:\Program Files (x86)\Steam\steamapps\common\Terraria then right click the application and select run administrator.

If this did not solve your problem or this does not apply to you move to step 5

5. Erase All Previous Terraria Data and Installations on your Computer: This method was found by a user on our forums in a thread that I helped troubleshoot with them. Thanks TheWolfLike101! First uninstall Terraria, then back up any save data you might want to keep located in either \Documents\My Games\Terraria\Worlds and \Documents\My Games\Terraria\Players. Now delete the Terraria folder in \Documents\My Games. Finally do a file search for anything that might be Terraria related. Afterwards reinstall Terraria and launch it, if no error is thrown you can copy back over your world and player files that I mentioned you should back up.

If this did not solve your problem or this does not apply to you move to step 6


6. Changing the Default Save Directory: It's possible to manipulate and change the default save directory in the event all previous steps have failed to help you. This method was found by a user on our forum, Thanks TorZar! It was originally used by TorVar to change the directory for mod purposes, but I believe the same method can be used to help solve this problem.

Method 1: Using a Shortcut - The Install Directory
  • Navigate to your install directory of Terraria, by default for steam it should be: C:\Program Files (x86)\Steam\steamapps\common\Terraria
  • Right click Terraria.exe and select "Create Shortcut".
  • Right click the newly created shortcut and select properties.
  • In the target field add -savedirectory saves at the end, it should now look something like below, and save it's files to the install directory in a folder called saves
T5cTqDB.png


Method 2: Using a Shortcut - Any Directory
  • Navigate to your install directory of Terraria, by default for steam it should be: C:\Program Files (x86)\Steam\steamapps\common\Terraria
  • Right click Terraria.exe and select "Create Shortcut".
  • Right click the newly created shortcut and select properties.
  • In the target field add -savedirectory and then add the file path so that it looks something like this -savedirectory C:\Terraria Save Data. Any file path can be used so long as you have the proper permissions on that user to modify files there. You can use a file path for a folder on your desktop, your local app data, or even an external drive. (so long as that drive is mounted)
ns6ahII.png
 
My friend has been having this problem for almost 5 months now and we've done every XNA driver updates steam restarts. Everything is up to date can anyone help?
 
My friend has been having this problem for almost 5 months now and we've done every XNA driver updates steam restarts. Everything is up to date can anyone help?

Edit: What problem exactly? Could you have your friend enable logs and then grab them?
 
wasn't sure where to post this and figured since there was a thread for troubleshooting i'd post here. recently i had trouble using steam integration with the dedicated server software that came with terraria by default. it'd always ask me to launch from the steam client. after comparing my files between my current computer and an older one that had the functionality, i found my answer. i was simply missing the steam_appid.txt which only contains the steam appid for terraria(105600) and needs to be in steamapps/common/terraria. i couldn't find any other info on this problem so i figured i'd post about it somewhere. hope it helps someone.
 
please help me nothing works this is what i am getting

Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Xna.Framework.Graphics.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
at Terraria.WindowsLaunch.Main(String[] args)
the fix with the 64 and 32 bit dlls did not work please help me i am on windows 10
 
please help me nothing works this is what i am getting

Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Xna.Framework.Graphics.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
at Terraria.WindowsLaunch.Main(String[] args)
the fix with the 64 and 32 bit dlls did not work please help me i am on windows 10

The DLL you're unable to load is different then the one in my guide so use the one below for yours:

Remember your 64 bit DLL's go in System32 and your 32 bit DLL's go in SysWow64.

32 Bit D3D8THK.dll goes in C:\Windows\SysWOW64

64 Bit D3D8THK.dll goes in C:\Windows\System32

32 Bit D3D9.dll goes in C:\Windows\SysWOW64

64 Bit D3D9.dll goes in C:\Windows\System32

32 Bit D3DX9_41.dll goes in C:\Windows\SysWOW64

64 Bit D3DX9_41.dll goes in C:\Windows\System32

32 Bit MSVCR100.dll goes in C:\Windows\SysWOW64

64 Bit MSVCR100.dll goes in C:\Windows\System32

32 Bit MSVCRT.dll goes in C:\Windows\SysWOW64

64 Bit MSVCRT.dll goes in C:\Windows\System32

Download link to DLL Package.
 
i fixed my game not launching issue with the dlls (thanks) but after that for the first time of my 7 years of loving this game i get no sound and terraria doesnt even pop up in the sound mixer which i think does the music stuck at 0 problem i have launched the game with all kinds of settings all drivers are up to date it also leads to calamity and any other mod with sound not to work... help me please
 
Back
Top Bottom