Failed to run unreal when first time launch it

error in red line:

[2016.09.22-14.54.10:174][  0]LogHAL:Error: Splash screen SDL_GL_CreateContext failed: Could not create GL context
[2016.09.22-14.54.10:174][  0]LogInit:Error: _PlatformCreateOpenGLContextCore - Could not create OpenGL 3.2 context, SDL error: 'Could not create GL context'
[2016.09.22-14.54.10:174][  0]LogRHI:Error: OpenGL 3.2 not supported by driver
[2016.09.22-14.54.10:175][  0]LogInit:Error: _PlatformCreateOpenGLContextCore - Could not create OpenGL 3.2 context, SDL error: 'Could not create GL context'
Assertion failed: SharedContext.hGLContext [File:/home/mcis105/UnrealEngine/Engine/Source/Runtime/OpenGLDrv/Private/Linux/OpenGLLinux.cpp] [Line: 225] 
[Callstack]  00  0x00007fbf6362bb0f  FLinuxPlatformStackWalk::CaptureStackBackTrace(unsigned long long*, unsigned int, void*)
[Callstack]  01  0x00007fbf635079c6  FGenericPlatformStackWalk::StackWalkAndDump(char*, unsigned long, int, void*)
[Callstack]  02  0x00007fbf6362ba0a  FLinuxPlatformStackWalk::StackWalkAndDump(char*, unsigned long, int, void*)
[Callstack]  03  0x00007fbf636989ec  FDebug::LogAssertFailedMessage(char const*, char const*, int, wchar_t const*, ...)
[Callstack]  04  0x00007fbf3807ce06  FPlatformOpenGLDevice::FPlatformOpenGLDevice()
[Callstack]  05  0x00007fbf38079bca  FOpenGLDynamicRHI::FOpenGLDynamicRHI()
[Callstack]  06  0x00007fbf38081fd6  FOpenGLDynamicRHIModule::CreateRHI()
[Callstack]  07  0x00007fbf5d96bc03  PlatformCreateDynamicRHI()
[Callstack]  08  0x00007fbf5d96b5a3  RHIInit(bool)
[Callstack]  09  0x0000000000417451  FEngineLoop::PreInit(wchar_t const*) [/home/mcis105/UnrealEngine/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp, line 1500]
[Callstack]  10  0x000000000042525e  GuardedMain(wchar_t const*) [/home/mcis105/UnrealEngine/Engine/Source/Runtime/Launch/Private/Launch.cpp, line 32]
[Callstack]  11  0x00007fbf58742d5a  CommonLinuxMain(int, char**, int (*)(wchar_t const*))
[Callstack]  12  0x00007fbf57c66ec5  /lib/x86_64-linux-gnu/ [0x7fbf57c66ec5]
[Callstack]  13  0x0000000000413dbb  ./UE4Editor() [0x413dbb]

[2016.09.22-14.54.10:205][  0]LogLinux:Error: appError called: Assertion failed: Assertion failed: SharedContext.hGLContext [File:/home/mcis105/UnrealEngine/Engine/Source/Runtime/OpenGLDrv/Private/Linux/OpenGLLinux.cpp] [Line: 225] 

Signal 11 caught.
Malloc Size=131076 LargeMemoryPoolOffset=131092 


[2016.09.22-14.54.10:354][  0]LogQoSReporter:Error: QoS API server is not configured, no QoS metrics will be reported.

[2016.09.22-14.54.13:407][  0]LogExit: Exiting.
[2016.09.22-14.54.14:235][  0]LogHAL: Child 11507 is no longer running (zombie), Wait()ing immediately.
[2016.09.22-14.54.14:235][  0]LogHAL: Child 11507's return code is 0.
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
段错误 (核心已转储)

I’m the first time to build unreal in ubuntu, thanks for helping me~

Hey wymdhr-

There are a few additional questions I would like to ask to help investigate your issue.

  • Was the engine installed under the root directory? If so, please try installing the engine in another non-root folder and let me know if you have the same issue.
  • When building the engine, did you include make UE4Editor to ensure the editor itself was built?
  • If you are trying to run the editor with the -OpenGL 4 command, please try opening the editor without this command.

If you continue to get errors after this, please let me know what your steps were for installing the editor. Also try using this tutorial and let me know if you still have problems: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

I fond that it was wrong with the Graphics driver, The default driver after finishing install ubuntu is open source graphics driver, unreal need to compile all the 3,000+ shaders built into the editor, the default driver is not supported. So before install the unreal, we need to reinstall the driver using nvidia official driver.

The steps are:

1、Remove old driver:

sudo apt-getremove --purge nvidia-*

sudo apt-get remove --purge xserver-xorg-video-nouveau

2、Download graphics is GeForce GTX 1080)

Download in home path


sudo service lightdm stop

4、Install nvidia driver

sudo chmod 755 //Get permission

sudo ./ //install


–Continue installation

5、Open graphical interface

sudo service lightdm start

Thanks,I have solve the problem~~