Rider - Linux simple HelloWorld throws Exception
Hi,
I've just installed Rider on Fedora 28 and tried a simple helloworld. It does not run, throws an exception.
/usr/bin/mono /home/oppa/RiderProjects/Hello/Hello/bin/Debug/Hello.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 <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver..cctor () [0x00062] in <373b6e083d6e45e498c9082a8eebd27f>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.Console..cctor () [0x000a8] in <373b6e083d6e45e498c9082a8eebd27f>:0
--- End of inner exception stack trace ---
at Hello.Program.Main (System.String[] args) [0x00001] in <b9be9692ba404d9cb4f45849f0625368>: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 <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x00065] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.TermInfoDriver..ctor (System.String term) [0x00058] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.ConsoleDriver..cctor () [0x00062] in <373b6e083d6e45e498c9082a8eebd27f>:0
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x0000a] in <373b6e083d6e45e498c9082a8eebd27f>:0
at System.Console..cctor () [0x000a8] in <373b6e083d6e45e498c9082a8eebd27f>:0
--- End of inner exception stack trace ---
at Hello.Program.Main (System.String[] args) [0x00001] in <b9be9692ba404d9cb4f45849f0625368>:0
Hmm, any ideas ?
Stephan
Please sign in to leave a comment.
Hmm,
no ideas ? ;(
Hi!
It seems that you have caught a mono problem.
Please, look this issue in the mono issue tracker. There is a workaround described in it.