New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openra-ura: init at 407 #51530
openra-ura: init at 407 #51530
Conversation
Unfortunately, while this builds fine, this does not run properly on openSUSE Tumbleweed, it crashes on start up with the error: exception inside UnhandledException handler: The type initializer for 'System.Console' threw an exception.
[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) [0x0008d] in /build/mono-5.8.0.108/mcs/class/corlib/System/TermInfoReader.cs:134
at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in /build/mono-5.8.0.108/mcs/class/corlib/System/TermInfoReader.cs:97
at System.TermInfoDriver..ctor (System.String term) [0x00055] in /build/mono-5.8.0.108/mcs/class/corlib/System/TermInfoDriver.cs:164
at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in /build/mono-5.8.0.108/mcs/class/corlib/System/ConsoleDriver.cs:73
at System.ConsoleDriver..cctor () [0x0004d] in /build/mono-5.8.0.108/mcs/class/corlib/System/ConsoleDriver.cs:57
--- End of inner exception stack trace ---
at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00000] in /build/mono-5.8.0.108/mcs/class/corlib/System/Console.cs:136
at System.Console..cctor () [0x0008e] in /build/mono-5.8.0.108/mcs/class/corlib/System/Console.cs:130
--- End of inner exception stack trace ---
at OpenRA.ExceptionHandler.HandleFatalError (System.Exception ex) [0x0019c] in <3aae6d275d964adeb94a473301fdd340>:0
at OpenRA.Program.<Main>m__0 (System.Object _, System.UnhandledExceptionEventArgs e) [0x00006] in <3aae6d275d964adeb94a473301fdd340>:0 |
@fusion809 Like we discussed before, the problem has to do with mono when run from a shell. Setting |
I get an OpenGL error on Arch Linux, even with TERM set to xterm and with me building from your latest commit. Here is the precise error: Platform is Linux
Engine version is unplugged-cd82382
Using SDL 2 with OpenGL renderer
Desktop resolution: 1920x1080
No custom resolution provided, using desktop resolution
Using resolution: 1920x1080
Using window scale 1.00
Exception of type `System.InvalidOperationException`: Can not create OpenGL context. (Error: Invalid window)
at OpenRA.Platforms.Default.Sdl2GraphicsContext.InitializeOpenGL () [0x00066] in <b6146d36c4b243a899f101e937603fa4>:0
at OpenRA.Platforms.Default.ThreadedGraphicsContext.RenderThread (System.Object contextObject) [0x0002d] in <b6146d36c4b243a899f101e937603fa4>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00025] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/thread.cs:72
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:957
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:904
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:893
at System.Threading.ThreadHelper.ThreadStart (System.Object obj) [0x0000f] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/thread.cs:87
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Can not create OpenGL context. (Error: Invalid window)
at OpenRA.Platforms.Default.Sdl2GraphicsContext.InitializeOpenGL () [0x00066] in <b6146d36c4b243a899f101e937603fa4>:0
at OpenRA.Platforms.Default.ThreadedGraphicsContext.RenderThread (System.Object contextObject) [0x0002d] in <b6146d36c4b243a899f101e937603fa4>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00025] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/thread.cs:72
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:957
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:904
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:893
at System.Threading.ThreadHelper.ThreadStart (System.Object obj) [0x0000f] in /build/mono-5.8.0.108/mcs/class/referencesource/mscorlib/system/threading/thread.cs:87 |
It turns out that the Platform is Linux
Engine version is unplugged-cd82382
Using SDL 2 with OpenGL renderer
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 92
Current serial number in output stream: 93 (and yes Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia |
Just tested the sp on nixos, seemed fine. As the out of nixos opengl problem also happens to standard openra, then I think we can merge this and fix the non-ura specific opengl issue separately. |
One small issue, this package is rather out of date now, the latest uRA is commit no 431 (hash 128dc53741fae923f4af556f2293ceaa0cf571f0). |
Closing in favor of #53163. |
Motivation for this change
Red Alert - Unplugged
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)