I keep crashing

Mask0315

Terrarian
For some reason every time I make new character or go settings then click back I just crash.I have deleted Terraria and then installed it and still nothing I also have verified integrity of game files through steam which did nothing.I don't even know how this even started I just stopped playing for a little bit then I wanted to start playing again then all my characters and worlds names became red and just did not work. so I deleted them through the files and now when I try to make new ones it just crashes me.


Here is the crash log:
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.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)
 
This is usually caused by a program, or the operating system, denying Terraria the permission to save to it's designated folder. I'll go over some of the possible solutions with you to see if we can get this cleared up.

1. Windows Defender is the most common culprit for the error you're seeing. Try disabling it to see if it solves your problem, to do this:
  • Open Settings.
  • Click on Update & security.
  • Click on Windows Secuirty.
  • Click the "Virus & Threat Protection" section under protection areas. You should see a screen similar to below:
152303d1504797387-turn-off-windows-defender-real-time-protection-windows-10-a-turn_off_windows_defender_real-time_protection-2.png


  • Click on "Virus and Threat Protection Settings" then you should see:
152304d1504797387-turn-off-windows-defender-real-time-protection-windows-10-a-turn_off_windows_defender_real-time_protection-3.png


  • Turn that off, click okay, click yes when prompted by UAC and I believe Windows Defender should now be off, or at least the part that prevents Terraria from creating files.
All screenshots were borrowed from part of the "Ten Forums" webpage, instructions were then trimmed down to make things easier.

If that solves your problem then make an exception for Terraria and the "My Games" folder in your documents. If that doesn't solve your problem move to step 2.

2. Do you have a program called Bit Defender installed? If so you'll need to temporarily disable it to see if that fixes your crash. If it does, add an exception, if it doesn't move to step 3.

3. Launch Terraria as an administrator. Right click it's application in it's install directory and select run as administrator. If that doesn't solve your issue move to step 4.

4. Do you have a program called Malwarebytes installed? Try disabling it and see if it helps if not move to step 5.

5. We need to make sure all users have Full Control to see if this will solve the error. To do this go to your Documents and find you "My Games" Folder, right click it and select properties. A new window will pop up with a 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 to, afterwards see if that fixed it and you can launch the game.

3UJorJf.png
moLX64W.png

I blacked out some personal information, but you should still get what you need to hopefully. If that doesn't solve it move to step 6.

6. This is a solution I found on the web that I don't understand but it helps some people so we can try it here. Open up your config.json file using notepad, find the line "MapEnabled": and set it to false instead of true. This should be the second one from the top. launch Terraria, if that doesn't fix your issue move to step 7.

7. Technically the above step should provide the same solution but just in case try this: Let's change the ownership of the files. I'm borrowing the tutorial the QA director made:

  • 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 still doesn't solve your issue move on to step 8.

8. Uninstall Terraria, then browse to \Documents\My Games\. You should see Terraria's folder, copy the folder and make a backup somewhere else on your computer. If you're not sure where to put it then paste it to your desktop. Then delete Terraria's folder inside \Documents\My Games. Reinstall Terraria, then launch the game. Find out if your problem is solved. If it is then you can copy your characters and worlds back over that we pasted on the desktop (or wherever you put your backup).


If none of that helps then we'll need to figure out what program or feature is denying Terraria the right to make changes to files in your documents. If you've exhausted all the steps above then go to Programs and Features (the place where you would uninstall a program) and take a screenshot of everything there for me and post it here. You may need to take multiple screenshots or manipulate the window size.
 
This is usually caused by a program, or the operating system, denying Terraria the permission to save to it's designated folder. I'll go over some of the possible solutions with you to see if we can get this cleared up.

1. Windows Defender is the most common culprit for the error you're seeing. Try disabling it to see if it solves your problem, to do this:
  • Open Settings.
  • Click on Update & security.
  • Click on Windows Secuirty.
  • Click the "Virus & Threat Protection" section under protection areas. You should see a screen similar to below:
152303d1504797387-turn-off-windows-defender-real-time-protection-windows-10-a-turn_off_windows_defender_real-time_protection-2.png


  • Click on "Virus and Threat Protection Settings" then you should see:
152304d1504797387-turn-off-windows-defender-real-time-protection-windows-10-a-turn_off_windows_defender_real-time_protection-3.png


  • Turn that off, click okay, click yes when prompted by UAC and I believe Windows Defender should now be off, or at least the part that prevents Terraria from creating files.
All screenshots were borrowed from part of the "Ten Forums" webpage, instructions were then trimmed down to make things easier.

If that solves your problem then make an exception for Terraria and the "My Games" folder in your documents. If that doesn't solve your problem move to step 2.

2. Do you have a program called Bit Defender installed? If so you'll need to temporarily disable it to see if that fixes your crash. If it does, add an exception, if it doesn't move to step 3.

3. Launch Terraria as an administrator. Right click it's application in it's install directory and select run as administrator. If that doesn't solve your issue move to step 4.

4. Do you have a program called Malwarebytes installed? Try disabling it and see if it helps if not move to step 5.

5. We need to make sure all users have Full Control to see if this will solve the error. To do this go to your Documents and find you "My Games" Folder, right click it and select properties. A new window will pop up with a 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 to, afterwards see if that fixed it and you can launch the game.

3UJorJf.png
moLX64W.png

I blacked out some personal information, but you should still get what you need to hopefully. If that doesn't solve it move to step 6.

6. This is a solution I found on the web that I don't understand but it helps some people so we can try it here. Open up your config.json file using notepad, find the line "MapEnabled": and set it to false instead of true. This should be the second one from the top. launch Terraria, if that doesn't fix your issue move to step 7.

7. Technically the above step should provide the same solution but just in case try this: Let's change the ownership of the files. I'm borrowing the tutorial the QA director made:

  • 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 still doesn't solve your issue move on to step 8.

8. Uninstall Terraria, then browse to \Documents\My Games\. You should see Terraria's folder, copy the folder and make a backup somewhere else on your computer. If you're not sure where to put it then paste it to your desktop. Then delete Terraria's folder inside \Documents\My Games. Reinstall Terraria, then launch the game. Find out if your problem is solved. If it is then you can copy your characters and worlds back over that we pasted on the desktop (or wherever you put your backup).


If none of that helps then we'll need to figure out what program or feature is denying Terraria the right to make changes to files in your documents. If you've exhausted all the steps above then go to Programs and Features (the place where you would uninstall a program) and take a screenshot of everything there for me and post it here. You may need to take multiple screenshots or manipulate the window size.
This is usually caused by a program, or the operating system, denying Terraria the permission to save to it's designated folder. I'll go over some of the possible solutions with you to see if we can get this cleared up.

1. Windows Defender is the most common culprit for the error you're seeing. Try disabling it to see if it solves your problem, to do this:
  • Open Settings.
  • Click on Update & security.
  • Click on Windows Secuirty.
  • Click the "Virus & Threat Protection" section under protection areas. You should see a screen similar to below:
152303d1504797387-turn-off-windows-defender-real-time-protection-windows-10-a-turn_off_windows_defender_real-time_protection-2.png


  • Click on "Virus and Threat Protection Settings" then you should see:
152304d1504797387-turn-off-windows-defender-real-time-protection-windows-10-a-turn_off_windows_defender_real-time_protection-3.png


  • Turn that off, click okay, click yes when prompted by UAC and I believe Windows Defender should now be off, or at least the part that prevents Terraria from creating files.
All screenshots were borrowed from part of the "Ten Forums" webpage, instructions were then trimmed down to make things easier.

If that solves your problem then make an exception for Terraria and the "My Games" folder in your documents. If that doesn't solve your problem move to step 2.

2. Do you have a program called Bit Defender installed? If so you'll need to temporarily disable it to see if that fixes your crash. If it does, add an exception, if it doesn't move to step 3.

3. Launch Terraria as an administrator. Right click it's application in it's install directory and select run as administrator. If that doesn't solve your issue move to step 4.

4. Do you have a program called Malwarebytes installed? Try disabling it and see if it helps if not move to step 5.

5. We need to make sure all users have Full Control to see if this will solve the error. To do this go to your Documents and find you "My Games" Folder, right click it and select properties. A new window will pop up with a 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 to, afterwards see if that fixed it and you can launch the game.

3UJorJf.png
moLX64W.png

I blacked out some personal information, but you should still get what you need to hopefully. If that doesn't solve it move to step 6.

6. This is a solution I found on the web that I don't understand but it helps some people so we can try it here. Open up your config.json file using notepad, find the line "MapEnabled": and set it to false instead of true. This should be the second one from the top. launch Terraria, if that doesn't fix your issue move to step 7.

7. Technically the above step should provide the same solution but just in case try this: Let's change the ownership of the files. I'm borrowing the tutorial the QA director made:

  • 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 still doesn't solve your issue move on to step 8.

8. Uninstall Terraria, then browse to \Documents\My Games\. You should see Terraria's folder, copy the folder and make a backup somewhere else on your computer. If you're not sure where to put it then paste it to your desktop. Then delete Terraria's folder inside \Documents\My Games. Reinstall Terraria, then launch the game. Find out if your problem is solved. If it is then you can copy your characters and worlds back over that we pasted on the desktop (or wherever you put your backup).


If none of that helps then we'll need to figure out what program or feature is denying Terraria the right to make changes to files in your documents. If you've exhausted all the steps above then go to Programs and Features (the place where you would uninstall a program) and take a screenshot of everything there for me and post it here. You may need to take multiple screenshots or manipulate the window size.
Thank u very much it was my anti virus app that was stopping terraria from editing the players folder so thanks to you I realized that and allowed it to edit the file to make a character which stoped the error :)
 
Back
Top Bottom