• Terraria is 10 years old! Join the celebration with contests, prizes, and chats with the dev team here
  • PC NEWS: 1.4.2.3 update is out! More info here. Report bugs here
  • CONSOLE 1.4 NEWS: The current plan is to have Terraria: Journey's End out for Xbox and PlayStation in Q3 2021 (Jul-Sep). Switch will follow shortly afterwards. More info here. Stay up to date with console news here
  • MOBILE NEWS: Stay up to date with the latest mobile news here. Report mobile bugs here

**REPORTED** Terraria Not Starting (Steam)

Iciclyy

Terrarian
Steam or GOG
Steam
Single Player/Multiplayer
Both
Operating System
Windows 10
Terraria Version
1.4.2
Controls Used
Keyboard/Mouse
Whenever I try to launch Terraria on Steam the "play" button will go to "cancel," then "stop." After that, it will quickly switch back to "play." Nothing will open. I'm on Windows 10.
When I launch the "TerrariaServer.exe" file in "C:\Program Files (x86)\Steam\steamapps\common\Terraria" it gives this error:
Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Xna.Framework.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)'
System Information Specs:
[System Summary]

Item Value
OS Name Microsoft Windows 10 Home
Version 10.0.19042 Build 19042
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Manufacturer System manufacturer
System Model System Product Name
System Type x64-based PC
System SKU SKU
Processor AMD Ryzen 5 3600 6-Core Processor, 3600 Mhz, 6 Core(s), 12 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. 3003, 2019-12-09
SMBIOS Version 3.2
Embedded Controller Version 255.255
BIOS Mode Legacy
BaseBoard Manufacturer ASUSTeK COMPUTER INC.
BaseBoard Product ROG STRIX B450-F GAMING
BaseBoard Version Rev 1.xx
Platform Role Desktop
Secure Boot State Unsupported
PCR7 Configuration Binding Not Possible
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "10.0.19041.844"
Time Zone Pacific Daylight Time
Installed Physical Memory (RAM) 16.0 GB
Total Physical Memory 15.9 GB
Available Physical Memory 9.04 GB
Total Virtual Memory 20.2 GB
Available Virtual Memory 10.0 GB
Page File Space 4.25 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualization-based security Not enabled
Device Encryption Support Reasons for failed automatic device encryption: TPM is not usable, PCR7 binding is not supported, Hardware Security Test Interface failed and device is not Modern Standby, Un-allowed DMA capable bus/device(s) detected, TPM is not usable
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualization Enabled in Firmware No
Hyper-V - Data Execution Protection Yes


[Audio Codecs]

CODEC Manufacturer Description Status File Version Size Creation Date
c:\windows\system32\msadp32.acm Microsoft Corporation OK C:\WINDOWS\system32\MSADP32.ACM 10.0.19041.1 33.79 KB (34,600 bytes) 2019-12-07 1:08 AM
c:\windows\system32\imaadp32.acm Microsoft Corporation OK C:\WINDOWS\system32\IMAADP32.ACM 10.0.19041.1 36.56 KB (37,440 bytes) 2019-12-07 1:08 AM
c:\windows\system32\msgsm32.acm Microsoft Corporation OK C:\WINDOWS\system32\MSGSM32.ACM 10.0.19041.1 41.90 KB (42,904 bytes) 2019-12-07 1:08 AM
c:\windows\system32\l3codeca.acm Fraunhofer Institut Integrierte Schaltungen IIS Fraunhofer IIS MPEG Layer-3 Codec OK C:\WINDOWS\system32\L3CODECA.ACM 1.9.0.401 91.00 KB (93,184 bytes) 2019-12-07 1:10 AM
c:\windows\system32\msg711.acm Microsoft Corporation OK C:\WINDOWS\system32\MSG711.ACM 10.0.19041.1 25.22 KB (25,824 bytes) 2019-12-07 1:08 AM

[Video Codecs]

CODEC Manufacturer Description Status File Version Size Creation Date
c:\windows\system32\msvidc32.dll Microsoft Corporation OK C:\WINDOWS\system32\MSVIDC32.DLL 10.0.19041.1 39.00 KB (39,936 bytes) 2019-12-07 1:09 AM
c:\windows\system32\msyuv.dll Microsoft Corporation OK C:\WINDOWS\system32\MSYUV.DLL 10.0.19041.1 27.00 KB (27,648 bytes) 2019-12-07 1:09 AM
c:\windows\system32\tsbyuv.dll Microsoft Corporation OK C:\WINDOWS\system32\TSBYUV.DLL 10.0.19041.1 16.50 KB (16,896 bytes) 2019-12-07 1:09 AM
c:\windows\system32\iyuv_32.dll Microsoft Corporation OK C:\WINDOWS\system32\IYUV_32.DLL 10.0.19041.1 53.00 KB (54,272 bytes) 2019-12-07 1:09 AM
c:\windows\system32\msrle32.dll Microsoft Corporation OK C:\WINDOWS\system32\MSRLE32.DLL 10.0.19041.1 18.00 KB (18,432 bytes) 2019-12-07 1:09 AM

[Sound Device]

Item Value
Name USB Audio Device
Manufacturer (Generic USB Audio)
Status OK
PNP Device ID USB\VID_046D&PID_0892&MI_02\7&1701DD5D&0&0002
Driver C:\WINDOWS\SYSTEM32\DRIVERS\USBAUDIO.SYS (10.0.19041.789, 205.50 KB (210,432 bytes), 2021-03-08 10:48 PM)

Name AMD High Definition Audio Device
Manufacturer Advanced Micro Devices
Status OK
PNP Device ID HDAUDIO\FUNC_01&VEN_1002&DEV_AA01&SUBSYS_00AA0100&REV_1007\5&97DC9C1&0&0001
Driver C:\WINDOWS\SYSTEM32\DRIVERS\ATIHDWT6.SYS (10.0.1.12, 105.41 KB (107,936 bytes), 2020-07-03 9:43 PM)

Name Realtek High Definition Audio
Manufacturer Realtek
Status OK
PNP Device ID HDAUDIO\FUNC_01&VEN_10EC&DEV_1168&SUBSYS_10438723&REV_1001\5&6E84173&0&0001
Driver C:\WINDOWS\SYSTEM32\DRIVERS\RTKVHD64.SYS (6.0.1.8468, 6.00 MB (6,287,808 bytes), 2020-06-25 9:45 PM)

[Display]

Item Value
Name Radeon RX 570 Series
PNP Device ID PCI\VEN_1002&DEV_67DF&SUBSYS_341B1462&REV_EF\4&1FC990D7&0&0019
Adapter Type AMD Radeon Graphics Processor (0x67DF), Advanced Micro Devices, Inc. compatible
Adapter Description Radeon RX 570 Series
Adapter RAM (1,048,576) bytes
Installed Drivers C:\WINDOWS\System32\DriverStore\FileRepository\u0347315.inf_amd64_d1257cdedbf0414e\B346462\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\u0347315.inf_amd64_d1257cdedbf0414e\B346462\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\u0347315.inf_amd64_d1257cdedbf0414e\B346462\aticfx64.dll,C:\WINDOWS\System32\DriverStore\FileRepository\u0347315.inf_amd64_d1257cdedbf0414e\B346462\amdxc64.dll
Driver Version 26.20.13002.133
INF File oem1.inf (ati2mtag_Polaris10 section)
Color Planes Not Available
Color Table Entries 4294967296
Resolution 1920 x 1080 x 59 hertz
Bits/Pixel 32
Memory Address 0xE0000000-0xF01FFFFF
Memory Address 0xF0000000-0xF01FFFFF
I/O Port 0x0000E000-0x0000EFFF
Memory Address 0xFCE00000-0xFCEFFFFF
IRQ Channel IRQ 4294967268
I/O Port 0x000003B0-0x000003BB
I/O Port 0x000003C0-0x000003DF
Memory Address 0xA0000-0xBFFFF
Driver C:\WINDOWS\SYSTEM32\DRIVERSTORE\FILEREPOSITORY\U0347315.INF_AMD64_D1257CDEDBF0414E\B346462\ATIKMPAG.SYS (26.20.13002.133, 592.22 KB (606,432 bytes), 2019-10-03 11:52 AM)

[Keyboard]

Item Value
Description HID Keyboard Device
Name Enhanced (101- or 102-key)
Layout 00000409
PNP Device ID HID\VID_046D&PID_C232\2&33191FED&0&0000
Number of Function Keys 12
Driver C:\WINDOWS\SYSTEM32\DRIVERS\KBDHID.SYS (10.0.19041.1, 45.50 KB (46,592 bytes), 2019-12-07 1:07 AM)

Description Razer DeathAdder
Name Enhanced (101- or 102-key)
Layout 00000409
PNP Device ID HID\VID_1532&PID_0037&MI_01&COL01\8&D63B28&0&0000
Number of Function Keys 12
Driver C:\WINDOWS\SYSTEM32\DRIVERS\KBDHID.SYS (10.0.19041.1, 45.50 KB (46,592 bytes), 2019-12-07 1:07 AM)

Description USB Input Device
Name Enhanced (101- or 102-key)
Layout 00000409
PNP Device ID USB\VID_1532&PID_0037&MI_02\7&25A64F9A&0&0002
Number of Function Keys 12
Driver C:\WINDOWS\SYSTEM32\DRIVERS\HIDUSB.SYS (10.0.19041.868, 43.00 KB (44,032 bytes), 2021-03-24 6:10 PM)

Description USB Input Device
Name Enhanced (101- or 102-key)
Layout 00000409
PNP Device ID USB\VID_046D&PID_C335&MI_00\7&1CC3CBDD&0&0000
Number of Function Keys 12
Driver C:\WINDOWS\SYSTEM32\DRIVERS\HIDUSB.SYS (10.0.19041.868, 43.00 KB (44,032 bytes), 2021-03-24 6:10 PM)

Description HID Keyboard Device
Name Enhanced (101- or 102-key)
Layout 00000409
PNP Device ID HID\VID_046D&PID_C335&MI_01&COL01\8&85DA336&0&0000
Number of Function Keys 12
Driver C:\WINDOWS\SYSTEM32\DRIVERS\KBDHID.SYS (10.0.19041.1, 45.50 KB (46,592 bytes), 2019-12-07 1:07 AM)

[Pointing Device]

Item Value
Hardware Type USB Input Device
Number of Buttons 0
Status OK
PNP Device ID USB\VID_1532&PID_0037&MI_00\7&25A64F9A&0&0000
Power Management Supported No
Double Click Threshold Not Available
Handedness Not Available
Driver C:\WINDOWS\SYSTEM32\DRIVERS\HIDUSB.SYS (10.0.19041.868, 43.00 KB (44,032 bytes), 2021-03-24 6:10 PM)

Hardware Type HID-compliant mouse
Number of Buttons 0
Status OK
PNP Device ID HID\VID_046D&PID_C231\2&1DD8BFAF&0&0000
Power Management Supported No
Double Click Threshold Not Available
Handedness Not Available
Driver C:\WINDOWS\SYSTEM32\DRIVERS\MOUHID.SYS (10.0.19041.1, 34.50 KB (35,328 bytes), 2019-12-07 1:07 AM)

I've tried many things to fix this issue such as:
- Running in Compatibility Mode
- Reinstalling XNA Framework, Terraria, Steam, C++ Redistributable, and .NET Framework
- Running as administrator
- Downloading Microsoft.Xna.Framework.dll and putting it in System32 and a bunch of other folders, downloading all the DLL's from The game does not start and installing them into their respective folders
- Setting the music value to 0 in Documents\My Games\Terraria\config.json --> This file was not automatically generated, I got it from another computer that has Terraria working
- Deleting the config.json
- Verifying integrity of game files

I recorded what Steam shows when I try to launch Terraria and attached it in a .zip file (since I can't attach an mp4 directly)
 

Attachments

  • Terraria Launching.zip
    1.9 MB · Views: 47
Last edited:

Leinfors

Quality Assurance
Staff member
Moderator
Re-Logic
I'm bringing this up for Yoraiz0r to investigate later today, thanks for your patience!
 

Leinfors

Quality Assurance
Staff member
Moderator
Re-Logic
For both @satirevseud and @Iciclyy

We'd like to see if we could get some logs of this issue. To do this:

1. Go to Terraria properties in Steam Library, to the section that says set Launch options
2. Paste this into the field:
-logerrors -logfile
3. Next time you run (and every time you run the game), it will create a log of things that happen.
4. The log will be in Documents>My Games>Terraria>Logs.
5. Please send us the file created, and we will try to look into it.
6. When you are done, feel free to REMOVE the -logerrors -logfile, because it will be making these anytime you play, and it can take up space.
 

Iciclyy

Terrarian
I can't get a log file. I don't have any "My Games" folder by default. I have Terraria working on another (much worse) computer and got a "My Games\Terraria" folder on this computer from that. No log is generated in that folder when launching Terraria. I'm not sure what I can do to get you a Terraria log. Would there be any other Steam logs I could get for you?
 

Leinfors

Quality Assurance
Staff member
Moderator
Re-Logic
I'm going to say that MIGHT be part of the problem. I'll ask Yorai about it later on and see if he can shed more light on it.
 

Leinfors

Quality Assurance
Staff member
Moderator
Re-Logic
From Yoraiz0r:
It's a BadImageFormatException... which indicates either a bad installation for XNA, or for one of its dependencies.

Found via Google, someone had the same problem with Stardew Valley here How to fix BadImageFormatException on application startup?

There's other misc reports and people solving it on google if you look it up by that exception's name, but the short gist its an XNA problem.

(Back to me)

You've already tried a reinstallation of XNA, so that wasn't sufficient. What you MIGHT want to try to do is a complete fresh install of Terraria, followed by an XNA reinstallation.

So, you'd want to:
1. Uninstall Terraria from Steam (please do feel free to back up your save files in a safe place, just in case)
2. Go to the Steam folder, and actually find the Terraria installation folder and delete what remains
3. Reinstall Terraria from Steam
4. Try it again
5. If it fails, try one more XNA reinstallation as well

Those are my best recommendations based on what I'm seeing. That the exact same XNA error is hitting another game entirely does indicate to me that its probably a faulty XNA issue of some sort.
 

Iciclyy

Terrarian
(I forgot to say that I've reinstalled Terraria the way you said already) I tried everything you've said and looked at the post you linked. I was a little bit confused by the post you linked but I understood most of it. Nothing has worked. I'm not sure why the dll appears to be missing even after installing XNA many times. Would it be possible to find out where the missing file should be located and to place a working dll there?
 

Leinfors

Quality Assurance
Staff member
Moderator
Re-Logic
I'm not sure which specific file it is, but I did find another thread about this that had some success:
 

Iciclyy

Terrarian
I'm not sure which specific file it is, but I did find another thread about this that had some success:
I tried everything in that post and any other posts linked in that. Nothing worked once again.




I got a program to check the dependencies of the TerrariaServer.exe file since the error mentioned "or one of its dependencies". There seem to be quite a few missing DLL's. I soon realized how many file paths there were to search for missing DLL's and just included the higher-up/easier to find ones in the trees. Here are the supposedly missing files that the dependency viewer showed:
dependencies 1.png
dependencies 2.png
dependencies 3.png
dependencies 4.png
dependencies 5.png
dependencies 6.png
dependencies 7.png
dependencies 8.png
dependencies 9.png
dependencies 10.png
dependencies 11.png
dependencies 12.png
dependencies 13.png
dependencies 14.png
dependencies 15.png
dependencies 16.png


Here it says that the Xna Framework DLL mentioned in the TerrariaServer.exe error was loaded correctly (which is a bit confusing):

loaded correctly.png
 
Last edited:

EMA

Terrarian
It seems that I have the same problem.

It might be something related to Windowed Settings as I tried multiple ways to fix it.

Game won't launch through Steam if Borderless Window is disabled and you are not using Fullscreen.
To fix this, go to Documents\My Games\Terraria\config.json and change "WindowMaximized" to false & "WindowBorderless" to true
and the game would launch.

But it's only a temporary fix, if you set Borderless Window to "Disabled" ingame you will have to do this process all over again.

Will someone look into this? I would like to play Windowed with Windows Taskbars visible.
 

Lythael

Terrarian
More of the reports of game not starting with XNA errors keep popping up on Steam forums.
For most issue persist even after reinstalling both the game and XNA and even for those who have no active or subscribed Workshop mods.
Seen reports both for Windows 7 and 10.

I personally don't have this issue but i do feel sorry for those who have and hope this will be resolved.
 

Iciclyy

Terrarian
This post hasn't got a reply for a while. Does anyone have a solution to this problem? Terraria still won't launch.
 
Top Bottom