TypeInitializationException when starting server version 1.4.1

pumpkin.head

Terrarian
Steam or GOG
Steam
Single Player/Multiplayer
Multi
Operating System
Linux Other
Terraria Version
1.4.1
Controls Used
Keyboard/Mouse
Terraria Server Version 1.4.1.0
Operating System
"Ubuntu 18.04.1 LTS (Bionic Beaver)"
Mono Version 4.6.2
Multiplayer


I tried running the new version of the server with `mono TerrariaServer.exe` and it crashes with the following error:
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'Terraria.Localization.LanguageManager' threw
an exception. ---> System.TypeInitializationException: The type initializer for 'Terraria.Localization.Loca
lizedText' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Te
xt.RegularExpressions.Regex' threw an exception. ---> System.TypeLoadException: Could not resolve type with
token 010001db
at System.Text.RegularExpressions.Regex..cctor () [0x00039] in <32fc020d7373456995b3d44fa885e01a>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
at Terraria.Localization.LocalizedText..cctor () [0x00014] in <238154cf324b488b94dc784b7998b204>:0
--- End of inner exception stack trace ---
at Terraria.Localization.LanguageManager..cctor () [0x00000] in <238154cf324b488b94dc784b7998b204>:0
--- End of inner exception stack trace ---
at Terraria.LinuxLaunch.Main (System.String[] args) [0x00038] in <238154cf324b488b94dc784b7998b204>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Terraria.L
ocalization.LanguageManager' threw an exception. ---> System.TypeInitializationException: The type initiali
zer for 'Terraria.Localization.LocalizedText' threw an exception. ---> System.TypeInitializationException:
The type initializer for 'System.Text.RegularExpressions.Regex' threw an exception. ---> System.TypeLoadExc
eption: Could not resolve type with token 010001db
at System.Text.RegularExpressions.Regex..cctor () [0x00039] in <32fc020d7373456995b3d44fa885e01a>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
at Terraria.Localization.LocalizedText..cctor () [0x00014] in <238154cf324b488b94dc784b7998b204>:0
--- End of inner exception stack trace ---
at Terraria.Localization.LanguageManager..cctor () [0x00000] in <238154cf324b488b94dc784b7998b204>:0
--- End of inner exception stack trace ---
at Terraria.LinuxLaunch.Main (System.String[] args) [0x00038] in <238154cf324b488b94dc784b7998b204>:0

Version 1.4.0.5 still starts up fine.
 
I think this was an issue with the mono version being old, so I tried updating to Mono 6.12.0.90, but now I am getting a different TypeInitializationException.

Which version of mono should I be using to run version 1.4.1.0 of the server?
 
I ran these commands in the Linux directory after updating to Mono 6.12.0.90:

rm System*
rm Mono*
rm monoconfig
rm mscorlib.dll

And now it is working.
 
I ran these commands in the Linux directory after updating to Mono 6.12.0.90:

rm System*
rm Mono*
rm monoconfig
rm mscorlib.dll

And now it is working.

I tried that but now I'm getting this:
Code:
1/4/2021 12:35:26 PM: Unhandled Exception
Thread: 1 [Main Thread]
Culture: en-US
Exception: System.DllNotFoundException: libFNA3D.so.0 assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Microsoft.Xna.Framework.Graphics.FNA3D.FNA3D_PrepareWindowAttributes()
  at Microsoft.Xna.Framework.SDL2_FNAPlatform.CreateWindow () [0x00000] in <346cb4f549034dbeb4f61fc315804f86>:0
  at Microsoft.Xna.Framework.Game..ctor () [0x000f1] in <346cb4f549034dbeb4f61fc315804f86>:0
  at Terraria.Main..ctor () [0x00241] in <12459169af05449b8f2903db0cb88d96>:0
  at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x00082] in <12459169af05449b8f2903db0cb88d96>:0
  at Terraria.LinuxLaunch.Main (System.String[] args) [0x00038] in <12459169af05449b8f2903db0cb88d96>:0
================
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libFNA3D.so.0 assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Microsoft.Xna.Framework.Graphics.FNA3D.FNA3D_PrepareWindowAttributes()
  at Microsoft.Xna.Framework.SDL2_FNAPlatform.CreateWindow () [0x00000] in <346cb4f549034dbeb4f61fc315804f86>:0
  at Microsoft.Xna.Framework.Game..ctor () [0x000f1] in <346cb4f549034dbeb4f61fc315804f86>:0
  at Terraria.Main..ctor () [0x00241] in <12459169af05449b8f2903db0cb88d96>:0
  at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x00082] in <12459169af05449b8f2903db0cb88d96>:0
  at Terraria.LinuxLaunch.Main (System.String[] args) [0x00038] in <12459169af05449b8f2903db0cb88d96>:0
 
Back
Top Bottom