PC Terraria crashes when pressing any button

Is my Terraria cursed by a mathematics hating demon?

  • No

    Votes: 0 0.0%
  • MWHAHAHA! I am the demon!

    Votes: 0 0.0%

  • Total voters
    1

erroxza

Terrarian
Hey everyone!

Terraria keeps crashing on my PC anytime I press any key in-game. And this doesn't have to be in-game as in when I'm in a world, but it crashes even if I press a key in the menu or the loading screens. I first noticed this when I was trying to type the password for a server I was about to join yesterday. I have not installed any modifications nor have I modified any .plr or .wld files using any external editors. The error message I get when pressing a key is:


"System.DivideByZeroException: Yritettiin jakaa nollalla. [Finnish for "Tried to divide by zero."]
kohteessa Terraria.Main.Draw(GameTime gameTime)
kohteessa Microsoft.Xna.Framework.Game.DrawFrame()
kohteessa Microsoft.Xna.Framework.Game.Tick()
kohteessa Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
kohteessa Microsoft.Xna.Framework.GameHost.OnIdle()
kohteessa Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
kohteessa Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
kohteessa System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
kohteessa System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
kohteessa System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
kohteessa System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
kohteessa System.Windows.Forms.Application.Run(Form mainForm)
kohteessa Microsoft.Xna.Framework.WindowsGameHost.Run()
kohteessa Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
kohteessa Terraria.Program.LaunchGame(String[] args)"

"kohteessa" means "in/on/at target". The error seems to be pointing towards Microsoft XNA Framework. I have already tried the following to fix the error:

1. Verifying integrity of game cache. Terraria still crashes with the same error.
2. Fixing Microsoft XNA Framework using its installer. Seems to reinstall the whole thing, but the crash keeps happening.
3. Completely uninstalling and reinstalling Microsoft XNA Framework. The crash keeps happening.
4. Uninstalling and reinstalling Microsoft .NET Framework. I could uninstall it but not reinstall it because it claims that I still have the latest version installed. Terraria does still start so I guess it's the .NET Framework that is integrated into Windows 10 and cannot be uninstalled. Oh, did I mention the crash still happens? -_-
5. Uninstalling and reinstalling Terraria. No luck.
6. Deleting all content from "My Games => Terraria". Nothing.
7. Checked Comodo for any sort of interference with Terraria. There wasn't any (which surprised me).
8. Ran a quick scan on Comodo. No malware.
And what I'm doing now: Running a scan on Malwarebytes Anti-malware. Currently at 93 000 objects scanned, no malware found.

I'm running Terraria 1.3.3.3 on Windows 10, with a moderate laptop running on an AMD Quad Core processor and two AMD Radeon graphics cards. I also have 8 GB of RAM. Terraria has been running properly and very smoothly at maximum fps for two years now, so I can't possibly understand why it would become incompatible overnight... Unless there is some sort of a Windows update which screwed .NET Framework or some other software up.

What could be behind this strange crash? I have tried fixing each and every thing I personally know could be the issue.
 
Last edited:
I'm having exactly the same problem! I'm not tech-savvy at all, though, so I haven't tried all of the things you have, but our problem is the same, so I doubt they will do anything. I just updated Terraria, but I haven't played it in a few months.
[doublepost=1477867490,1477867203][/doublepost]Also, here's the error report in English.
[doublepost=1477867528][/doublepost]Also, here's the error report in English.
f56Us

(I don't know if that image link worked, so I'll try again.)
[doublepost=1477867594][/doublepost]Here's the image again, sorry.
 

Attachments

  • Error Report.PNG
    Error Report.PNG
    80.2 KB · Views: 249
I'm having exactly the same problem! I'm not tech-savvy at all, though, so I haven't tried all of the things you have, but our problem is the same, so I doubt they will do anything. I just updated Terraria, but I haven't played it in a few months.
[doublepost=1477867490,1477867203][/doublepost]Also, here's the error report in English.
[doublepost=1477867528][/doublepost]Also, here's the error report in English.
f56Us

(I don't know if that image link worked, so I'll try again.)
[doublepost=1477867594][/doublepost]Here's the image again, sorry.

Thank you for your contribution! I'm glad to know I'm not the only one with the problem :)(Well, in the sense that I am not unique. It's not nice to know that people are having problems!)

Also to update, Malwarebytes only found PUPs linked to previous deleted software, nothing that could actually mess up or imterfere with .NET Framework, Terraria or XNA.
 
Last edited:
No problem! I hope it gets figured out soon - I'll update you on anything I try.
[doublepost=1477874702,1477874612][/doublepost]On the bright side, my math teacher is giving me extra credit because I found an application of not being able to divide by zero in real life! :nursegrin:
 
Do you know what an XNA framework is? I have no clue, but I found a thread on here with this problem and the person uninstalled a re-installed it, and said it worked.
[doublepost=1477875517,1477875441][/doublepost]Crap, nevermind. I just checked that list of things you said you did, and that apparently didn't work. I might try all that stuff anyway just so I can tell people it didn't work for me either if I'm asked!
 
Sorry to post, like, five things in a row, but I do have one last update before I go to bed :D I figured out what an XNA framework is, deleted it, and reinstalled - Still crashing. :sigh:
 
Sorry to post, like, five things in a row, but I do have one last update before I go to bed :D I figured out what an XNA framework is, deleted it, and reinstalled - Still crashing. :sigh:

That's a shame. Maybe we should continue this conversation between us through private messages, so we'll not bump this thread too much? We'll let the ones with solutions and the ones experiencing the same problem post here :D
 
Status update: Terraria no longer works at all. Seems to launch as the bar around my profile icon in Steam turns green, but then it just turns back to blue.
 
Status update: Terraria no longer works at all. Seems to launch as the bar around my profile icon in Steam turns green, but then it just turns back to blue.

By following these steps, the information from the Console Prompt should be successfully copied to the clipboard and ready for public consumption.

Types of Errors
  • System.DivideByZeroException: Attempted to divide by zero.
    • An error caused by XNA, re-installation of software is required.
    • You must enable Admin Rights, or disable the Admin Prompts. You can start Steam in Admin Mode in order to avoid this.
  • System.IO.IOException: The file directory is corrupted and unreadable
    • Open Explorer, and right click on your drive, choose Properties, go to the Tools tab, and click on the Check Now button under Error-checking (should be on top). This will scan the drive and attempt to repair errors.
 
By following these steps, the information from the Console Prompt should be successfully copied to the clipboard and ready for public consumption.

Types of Errors
  • System.DivideByZeroException: Attempted to divide by zero.
    • An error caused by XNA, re-installation of software is required.
    • You must enable Admin Rights, or disable the Admin Prompts. You can start Steam in Admin Mode in order to avoid this.
  • System.IO.IOException: The file directory is corrupted and unreadable
    • Open Explorer, and right click on your drive, choose Properties, go to the Tools tab, and click on the Check Now button under Error-checking (should be on top). This will scan the drive and attempt to repair errors.

As I told in my first post, I have deleted and reinstalled XNA. Nothing changes. And Terraria also. Unless it really is about not installing XNA using admin rights. I'll have to try that one out... How could I be that stupid not to try using admin rights with that big list of things that I already have tried -_- Any idea why this error has progressed so that Terraria no longer displays any error messages and just doesn't launch?
 
As I told in my first post, I have deleted and reinstalled XNA. Nothing changes. And Terraria also. Unless it really is about not installing XNA using admin rights. I'll have to try that one out... How could I be that stupid not to try using admin rights with that big list of things that I already have tried -_- Any idea why this error has progressed so that Terraria no longer displays any error messages and just doesn't launch?
Windows 10 has a way of corrupting XNA for certain games, and just doesn't work anymore. However, it is not XNA that is the problem, it is .NET, and your .NET is corrupted or modified by Windows so that this game doesn't find it. Since you are on 10, you cannot remove it because the latest version is the most vital copy. You can attempt to try to install a later version if you can.
 
Back
Top Bottom