UE 4.11.0 crashing in OpenGL

Hi all,

I can’t open any projects or even create a new one when running UE4 with the -opengl flag. Here’s the summary information for the crash when attempting to create a new blueprint project:

MachineId:CE71AA48473CE884967E91826CB39594
EpicAccountId:eebb6f64d21448fcb7a59f1deffb2cdc

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]

Hello,

I have looked into the crash you are experiencing, and it is currently a known issue (UE-25548). This issue is currently being investigated by our developers. Thank you for your report.

Have a great day

Since no public bug tracker how to know if it’s fixed now?

This issue is still being investigated by our developers; however, there is no timeline for when a fix will be released at this time.

Have a great day

As a workaround, you can create a shortcut or a batch file which calls the UE4Editor.exe executable directly, passes the .uproject file as a parameter, and follows it with the “-opengl” flag.

I have written the following single-line batch file:

@“E:\Program Files\Epic Games\4.11\Engine\Binaries\Win64\UE4Editor.exe” “%1” -opengl

So, I just drag my .uproject file and drop it into that batch file, it works without changes for any project.

Are you sure when passing -opengl as second argument it’s well interpreted
by the editor ?

When I do %EDITOR% %SRC%\TemplateQtUE.uproject -opengl, the code IsOpenGLPlatform(GMaxRHIShaderPlatform) return false and the editor is crashing on the exit ; otherwise with %EDITOR% -opengl %SRC%\TemplateQtUE.uprojectit crashes on startup.