Skip to content
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

Can not create OpenGL context. (Error: Invalid window) #10597

Open
NovusMessari opened this issue Jan 25, 2016 · 8 comments
Open

Can not create OpenGL context. (Error: Invalid window) #10597

NovusMessari opened this issue Jan 25, 2016 · 8 comments

Comments

@NovusMessari
Copy link

NovusMessari commented Jan 25, 2016

On starting up OpenRA release-20151224., I get a crash message. I've looked at the exception log and it seems to be a problem with graphical errors.

Exception Log:
Operating System: Windows (Microsoft Windows NT 6.1.7601 Service Pack 1)
Runtime Version: .NET CLR 4.0.30319.42000
Exception of type System.InvalidOperationException: No suitable renderers were found. Check graphics.log for details.
at OpenRA.Game.Initialize(Arguments args)
at OpenRA.Program.Run(String[] args)
at OpenRA.Program.Main(String[] args)

Graphical Log:
System.InvalidOperationException: Can not create OpenGL context. (Error: Invalid window)
at OpenRA.Platforms.Default.Sdl2GraphicsDevice..ctor(Size windowSize, WindowMode windowMode)
at OpenRA.Platforms.Default.DeviceFactory.CreateGraphics(Size size, WindowMode windowMode)
at OpenRA.Renderer.CreateDevice(Assembly platformDll, Int32 width, Int32 height, WindowMode window)
at OpenRA.Renderer..ctor(GraphicSettings graphicSettings, ServerSettings serverSettings)
at OpenRA.Game.Initialize(Arguments args)
System.InvalidOperationException: Can not create OpenGL context. (Error: Invalid window)
at OpenRA.Platforms.Default.Sdl2GraphicsDevice..ctor(Size windowSize, WindowMode windowMode)
at OpenRA.Platforms.Default.DeviceFactory.CreateGraphics(Size size, WindowMode windowMode)
at OpenRA.Renderer.CreateDevice(Assembly platformDll, Int32 width, Int32 height, WindowMode window)
at OpenRA.Renderer..ctor(GraphicSettings graphicSettings, ServerSettings serverSettings)
at OpenRA.Game.Initialize(Arguments args)

@Mailaender Mailaender changed the title Crash on Startup, Graphical. Can not create OpenGL context. (Error: Invalid window) Jan 25, 2016
@pchote
Copy link
Member

pchote commented Oct 1, 2016

Is this still a problem with the latest playtest?

@Mailaender
Copy link
Member

Please reopen once you have tested the latest release and it still persists.

@caaygun
Copy link

caaygun commented Oct 29, 2017

I had the same issue, setting desktop resolution to 32-bit color depth resolved it.

@abcdefg30
Copy link
Member

No activity since a while. I don't think there is much to do here without further leads (at least we know that 32-bit color depth might resolve this issue).

@phpbg
Copy link

phpbg commented Apr 24, 2020

Duplicate of #16327

@rkj
Copy link

rkj commented May 21, 2020

I run into the similar issue on Windows 10, pretty vanilla with nvidia GTX 2080.

This is the exception from graphics.log:

System.InvalidOperationException: Can not create OpenGL context. (Error: Invalid window)
   at OpenRA.Platforms.Default.Sdl2GraphicsContext.InitializeOpenGL()
   at OpenRA.Platforms.Default.Sdl2PlatformWindow..ctor(Size requestEffectiveWindowSize, WindowMode windowMode, Single scaleModifier, Int32 batchSize, Int32 videoDisplay, GLProfile requestProfile)
   at OpenRA.Platforms.Default.DefaultPlatform.CreateWindow(Size size, WindowMode windowMode, Single scaleModifier, Int32 batchSize, Int32 videoDisplay, GLProfile profile)
   at OpenRA.Renderer..ctor(IPlatform platform, GraphicSettings graphicSettings)
   at OpenRA.Game.Initialize(Arguments args)
System.InvalidOperationException: No supported OpenGL profiles were found.
   at OpenRA.Platforms.Default.Sdl2PlatformWindow..ctor(Size requestEffectiveWindowSize, WindowMode windowMode, Single scaleModifier, Int32 batchSize, Int32 videoDisplay, GLProfile requestProfile)
   at OpenRA.Platforms.Default.DefaultPlatform.CreateWindow(Size size, WindowMode windowMode, Single scaleModifier, Int32 batchSize, Int32 videoDisplay, GLProfile profile)
   at OpenRA.Renderer..ctor(IPlatform platform, GraphicSettings graphicSettings)
   at OpenRA.Game.Initialize(Arguments args)

@Mailaender
Copy link
Member

Do you have an internal graphics card? Does it have vendor drivers?

@rkj
Copy link

rkj commented May 21, 2020

I am not sure. I managed to 'fix' this. I have display scaling turned on to 125%. After I moved back to 100% it worked fine.

@Mailaender Mailaender reopened this May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants