Closed ricoazzurro closed 5 months ago
That's a known issue, not specific to box64. You'll have the same behaviour on native x86_64.
They are many FNA/mono games that need TERM=xterm
export to work correctly
OK. But wasn't there before the version 46.0. Close it for now.
I had that issue before with other terminal (mate terminal I think). It's the engine that want to print pretty logs and use the terminal name for configuration and freaks out if the terminal is unknown to it.
Issue
When testing two games
Axiom Verge
andAxiom Verge 2
with Goldberg, I found the strange issue, that gnome-console-46.0 breaks known working Box64 games.My current workaound is using xterm or add
export TERM=xterm
to start script.Good log with xterm and error log via gnome-console are listed at bottom.
These two games are known as good. And I never seen the below "Unhandled Exception" before. I reverted box64 to release version, https://github.com/ptitSeb/box64/commit/e42001b2bc030f93bdba582bf12d6eac63fae345 and https://github.com/ptitSeb/box64/commit/45c4117a40e564b84dc8659283b52d92defe86c0 and the above issue remains. So it's not recent non-4k commits to blame.
Then I saw
System.Console
in the log. So I addedexport TERM=xterm
to the start scripts, and the two games launched! Or launching the two games in xterm also worked.I am almost sure that when I was at Gnome 45, I didn't see such an issue.
Games
Tested on
Logs
export TERM=xterm
,Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: File must be smaller than 4K at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0001d] in:0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in :0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in :0
at System.ConsoleDriver..cctor () [0x0004d] in :0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in :0
at System.Console..cctor () [0x0007d] in :0
--- End of inner exception stack trace ---
at OuterBeyond.Program.Main (System.String[] args) [0x00083] in <5580ea07a27c46389bb78582f5d239ff>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: File must be smaller than 4K
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0001d] in :0
at System.TermInfoDriver..ctor (System.String term) [0x00055] in :0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in :0
at System.ConsoleDriver..cctor () [0x0004d] in :0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in :0
at System.Console..cctor () [0x0007d] in :0
--- End of inner exception stack trace ---
at OuterBeyond.Program.Main (System.String[] args) [0x00083] in <5580ea07a27c46389bb78582f5d239ff>:0