question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terraria won't start using system mono

See original GitHub issue

Description

When I start the game using system mono, I get this:

[17:23:43] [1/FATAL] [Terraria]: Main engine crash
System.ExecutionEngineException: String conversion error: Illegal byte sequence encounted in the input.
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStringAnsi(intptr)
  at Microsoft.Xna.Framework.Audio.OpenALDevice.GetDevices () [0x00047] in FNA.dll 
  at Microsoft.Xna.Framework.Audio.AudioDevice.Initialize () [0x0007e] in FNA.dll 
  at Microsoft.Xna.Framework.FrameworkDispatcher.Update () [0x00007] in FNA.dll 
  at Microsoft.Xna.Framework.Game..ctor () [0x000ed] in FNA.dll 
  at Terraria.Main..ctor () [0x001ae] in tModLoader.exe 
  at Terraria.Program.LaunchGame_ () [0x00047] in tModLoader.exe 

Steps to Reproduce

Just start the game

Expected behavior

???

Actual behavior

???

Reproduction frequency

???

Versions

tModLoader v0.11.1 Mono v5.20.1.19

Mods

???

Additional Information

???

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Chicken-Bonescommented, Feb 11, 2020

Excellent work, feel free to checkout the tML source and build a version with updated libraries (or even just try swapping in updated versions using dnSpy) and let us know if there’s any issues. We can definitely trial it!

0reactions
Mirsariocommented, Sep 30, 2021

Mono & .NET Framework have now been replaced with .NET 5+ on all platforms in TML for 1.4. You can find the alpha for that in our discord.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolved - [Fixed] TerrariaServer.exe won't start in "mono"
Hello. I was able to start server of Terraria before 1.4 on my Linux Ubuntu 18.04 with mono, but after major update i...
Read more >
HOW TO FIX TERRARIA NOT LAUNCHING (XNA ...
This will open a command console with you error shown in it. The console will close very quickly so press CRTL + A...
Read more >
Terraria won't launch with proton
I'm trying to force terraria to use proton so I can play online with a friend who uses windows, but it's not working...
Read more >
Guide:Setting up a Terraria server
Start Terraria, and in the main menu, choose "Multiplayer" then "Host&Play". Select a world to play in (or create a new one) then...
Read more >
Server - Official Terraria Wiki
A Terraria server provides a platform for players to connect over the internet or other network for multiplayer games.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found