[arch-general] OpenRA / Mono exceptions

Dan Haworth dan at xigen.co.uk
Fri Mar 2 10:38:28 UTC 2018


On 02/03/18 10:34, Alajos Odoyle wrote:
> Hi all,
>
> When trying to run OpenRA from the community repository or when 
> building the package myself (using the community PKGBUILD) I get Mono 
> exceptions like the one below [1]. At first I thought it could be an 
> upstream issue but sure enough it builds just fine when using a clean 
> chroot. As I did not customize the mono package and cannot think of 
> anything else causing this (configuration?), i hope someone here might 
> have some ideas. NB, I never used Mono before - it was auto-installed 
> as a dependency of OpenRA.
>
> Thanks,
> Alajos
>
> [1]: 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) [0x00028] in <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.TermInfoReader..ctor (System.String term, System.String 
> filename) [0x0005f] in <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.TermInfoDriver..ctor (System.String term) [0x00055] in 
> <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.ConsoleDriver.CreateTermInfoDriver (System.String term) 
> [0x00000] in <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.ConsoleDriver..cctor () [0x0004d] in 
> <a84b655e5e6a49ee96b338ec792f5580>:0
>    --- End of inner exception stack trace ---
>   at System.Console.SetupStreams (System.Text.Encoding inputEncoding, 
> System.Text.Encoding outputEncoding) [0x00007] in 
> <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.Console..cctor () [0x0008e] in 
> <a84b655e5e6a49ee96b338ec792f5580>:0
>    --- End of inner exception stack trace ---
>   at Mono.CSharp.Driver.Main (System.String[] args) [0x00019] in 
> <2b1e99ce45b54209bdcdab138d9758ae>: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) [0x00028] in <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.TermInfoReader..ctor (System.String term, System.String 
> filename) [0x0005f] in <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.TermInfoDriver..ctor (System.String term) [0x00055] in 
> <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.ConsoleDriver.CreateTermInfoDriver (System.String term) 
> [0x00000] in <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.ConsoleDriver..cctor () [0x0004d] in 
> <a84b655e5e6a49ee96b338ec792f5580>:0
>    --- End of inner exception stack trace ---
>   at System.Console.SetupStreams (System.Text.Encoding inputEncoding, 
> System.Text.Encoding outputEncoding) [0x00007] in 
> <a84b655e5e6a49ee96b338ec792f5580>:0
>   at System.Console..cctor () [0x0008e] in 
> <a84b655e5e6a49ee96b338ec792f5580>:0
>    --- End of inner exception stack trace ---
>   at Mono.CSharp.Driver.Main (System.String[] args) [0x00019] in 
> <2b1e99ce45b54209bdcdab138d9758ae>:0
> make: *** [Makefile:278: OpenRA.Game.exe] Error 1

I had the same issue, seems to be related to the following bug 
https://github.com/mono/mono/issues/6752. I downgraded ncurses to 6.0 to 
get things going again.

--dan


More information about the arch-general mailing list