Loading...
  OR  Zero-K Name:    Password:   

Can't play after update to Ubuntu 18.10

9 posts, 1061 views
Post comment
Filter:    Player:  
sort
5 years ago
Hello there.
I can't play after update to Ubuntu 18.10.

Here is the error :


mono Zero-K.exe

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: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in :0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in :0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in :0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in :0
at System.ConsoleDriver..cctor () [0x00062] in :0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in :0
at System.Console..cctor () [0x000a8] in :0
--- End of inner exception stack trace ---
at System.Diagnostics.ConsoleTraceListener..ctor () [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Diagnostics.ConsoleTraceListener:.ctor ()
at ChobbyLauncher.Program.Main (System.String[] args) [0x0002d] in :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: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in :0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in :0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in :0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in :0
at System.ConsoleDriver..cctor () [0x00062] in :0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in :0
at System.Console..cctor () [0x000a8] in :0
--- End of inner exception stack trace ---
at System.Diagnostics.ConsoleTraceListener..ctor () [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Diagnostics.ConsoleTraceListener:.ctor ()
at ChobbyLauncher.Program.Main (System.String[] args) [0x0002d] in :0

Thanks for your help !
+1 / -0

5 years ago
Hi,
This sounds like some files are corrupted. Usually magic numbers refer to a file's contents being a different type than the program expected. maybe try a game reinstall in a different folder (don't delete original in case I'm wrong).
+0 / -0
No it's not that. I've got exactly the same problem after update to Ubonto 18.10.
And it runs fine with wine.

Hmm. Mono seems broken.

A command like mono-test-install gives the same result:

Active Mono: /usr/bin/mono

Your have a working System.Drawing setup

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: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at Program.Main () [0x00033] in <0620e04b94d44be89673bf0e0c63b929>: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: Magic number is wrong: 542
at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x0002b] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <8f2c484307284b51944a1a13a14c0266>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at System.ConsoleDriver..cctor () [0x00062] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Console..cctor () [0x000a8] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at Program.Main () [0x00033] in <0620e04b94d44be89673bf0e0c63b929>:0
+1 / -0
5 years ago
Thanks for answers. What do I need to do to use it with Wine please ?
+0 / -0
5 years ago
Install wine.
Browse to directory containing Zero-K.exe
Type wine Zero-K.exe in terminal.
+0 / -0
On closer look, seems it's a known bug in mono with ncurses 6.1:

https://github.com/mono/mono/issues/6752#issuecomment-365212655

A simple workaround is to set TERM=xterm for example, that is, some terminfo file that is in the old file format.
So, try to start ZK from a terminal using:
export TERM=xterm
mono Zero-K.exe
+5 / -0
5 years ago
Thanks it works now ! :)
+1 / -0
what work my friend?

FIrankVermind or SEranksnubbe
+0 / -0
5 years ago
Verminds trick worked for me. Huge thanks.
+0 / -0