Windows - OpenGL4 - Crash (4.11.2)

Whenever I try to open the Editor in OpenGL 4 or 3 mode (using the -opengl4 / -opengl / -opengl3 flag) the editor crashes with the following information:

Assertion failed: Context [File:D:\BuildFarm\buildmachine_++UE4+Release-4.11\Engine\Source\Runtime\OpenGLDrv\Private\Windows\OpenGLWindows.cpp] [Line: 878] 



UE4Editor_Core!FDebug::AssertFailed() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\private\misc\outputdevice.cpp:430]
UE4Editor_OpenGLDrv!PlatformGetNewRenderQuery() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\opengldrv\private\windows\openglwindows.cpp:880]
UE4Editor_OpenGLDrv!FOpenGLBufferedGPUTiming::StartTiming() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\opengldrv\private\openglquery.cpp:413]
UE4Editor_OpenGLDrv!FOpenGLGPUProfiler::BeginFrame() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\opengldrv\private\opengldrv.cpp:125]
UE4Editor_RHI!FRHICommandList::BeginFrame() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\rhi\private\rhicommandlist.cpp:1291]
UE4Editor!TGraphTask<`FEngineLoop::Tick'::`9'::EURCMacro_BeginFrame>::ExecuteTask() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\public\async\taskgraphinterfaces.h:886]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\private\async\taskgraph.cpp:779]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\private\async\taskgraph.cpp:526]
UE4Editor_RenderCore!RenderingThreadMain() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\rendercore\private\renderingthread.cpp:310]
UE4Editor_RenderCore!FRenderingThread::Run() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\rendercore\private\renderingthread.cpp:417]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:74]

Any idea how to solve this?

Thanks!

The actual line that is failing in the source code is the following:

HGLRC Context = GetCurrentContext();
check( Context );

It seems like for some reason it can’t get the current context, thus fails.

Hello,

This is currently a known issue, UE-25548, and is being investigated by our developers. There is currently no timeline for when a fix will be released. Thank you for your report.

Have a great day

Hey HazzaBui,

I’ve looked into the issue and it has been reported as fixed in 4.13. Are you experiencing it in 4.13?

Hi,

Did anyone manage to find a resolution to this? I’m the same problem, trying to diagnose a shader issue we are having on Linux (by trying to reproduce it on Windows).

Sean Flint, I looked up UE-25548 on issues.unrealengine.com, and couldn’t find any reference to the ticket - is there any internal updates, or fixes in later versions of UE4?

Thanks,
Harry

Hey Sean,

I’m running 4.11 - I did manage to work around the problem in the end anyway.

Cheers

what was your work around???