tModLoader: Terraria won't start using system mono

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

???

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

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!