Editor doesn't launch - Could not create OpenGL 3.2 context

The editor doesn’t start, after double clicking the executable, I see Unreal Engine entry on my taskbar but nothing else displays, after a few seconds the entry disappears because editor crashes.

From the log I see there is a problem with creating the OpenGL context:

[2014.10.15-08.30.03:812][
0]LogLinux:
_PlatformCreateOpenGLContextCore - Could not create OpenGL 3.2 context,
SDL error: ‘Could not create GL
context’

System Specs:

OS: Xubuntu 14.04 64-bit

CPU: Intel i5 4570

GPU: Intel HD 4600

Unreal Engine version: 4.5.0 compiled from GitHub

I attached all files from a Engine/Binaries/Linux/crashinfo… directory and additionally an output from a glxinfo command.

Tell me whether you need any additional info.

I managed to launch the editor by adding following lines of code:

    if ( SDL_GL_SetAttribute( SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE ) )
    {
        verifyf( false, TEXT("OpenGLRHI: %s\n."), SDL_GetError() );
        UE_LOG(LogLinux, Fatal, TEXT("SDL error errno=%d (%s)"), SDL_GetError());
    }

at the beginning of static void _PlatformCreateOpenGLContextCore( FPlatformOpenGLContext* OutContext) in /Engine/Source/Runtime/OpenGLDrv/Private/Linux/OpenGLLinux.cpp

But the rendering doesn’t work correctly, as in attached screenshot.

We create a compatible context (which is currently only needed for splash). You can comment out the lines that set SDL_GL_CONTEXT_PROFILE_COMPATIBILITY when creating context and try launching the editor with -nosplash commandline parameter.

Thanks, this works too. The editor has launched but with identical result to that visible on a screenshot attached to my comment to the question.

But I think that’s a different issue, so I will post new bug report with this issue.

I had the same problem. I found that upgrading the various graphics related libraries solved this problem for me.

vis
mesa 10.1.3 upgraded to 10.3.5
sdl 2.2.0-0 upgraded to 2.2.0-3
nvidia graphics driver 3.31 upgraded to 343.22

It makes sense that these are bugs lower down than the unreal engine as it’s running ok on other linux platforms. Also rebuilt.

This have relation with use -opengl4?