You are not logged in.

#1 2015-03-08 19:56:50

planck
Member
Registered: 2015-03-08
Posts: 2

Error running Unreal Engine 4: Could not create OpenGL 3.2 Context

Hi!

I recently downloaded Unreal Engine 4 from git, and tried to run the editor after installing it. The editor did not open due to the following fatal error:

Fatal error: [File:{directory}/ue4/UnrealEngine/Engine/Source/Runtime/OpenGLDrv/Private/Linux/OpenGLLinux.cpp] [Line: 190] 
_PlatformCreateOpenGLContextCore - Could not create OpenGL 3.2 context, SDL error: 'Could not create GL context'
[2015.03.08-19.53.41:728][  0]LogLinux:Error: appError called: _PlatformCreateOpenGLContextCore - Could not create OpenGL 3.2 context, SDL error: 'Could not create GL context'
Signal 11 caught.
EngineCrashHandler: Signal=11
[2015.03.08-19.53.41:908][  0]LogLinux: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to access memory at address 0x00000003

[2015.03.08-19.53.41:908][  0]LogLinux: _PlatformCreateOpenGLContextCore - Could not create OpenGL 3.2 context, SDL error: 'Could not create GL context'

[Callstack]  02  0x00007fc77f6b61d5  ReportCrash(FLinuxCrashContext const&)
[Callstack]  03  0x0000000000429850  EngineCrashHandler(FGenericCrashContext const&)
[Callstack]  04  0x00007fc77f6b92fb  PlatformCrashHandler(int, siginfo_t*, void*)
[Callstack]  05  0x00007fc780104210  /usr/lib/libpthread.so.0(+0x10210) [0x7fc780104210]
[Callstack]  06  0x00007fc77f6c2587  FOutputDeviceLinuxError::Serialize(wchar_t const*, ELogVerbosity::Type, FName const&)
[Callstack]  07  0x00007fc77f7590f1  FMsg::Logf(char const*, int, FName const&, ELogVerbosity::Type, wchar_t const*, ...)
[Callstack]  08  0x00007fc75cc988ff  {directory}/ue4/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-OpenGLDrv.so(+0x7a8ff) [0x7fc75cc988ff]
[Callstack]  09  0x00007fc75cc72b28  PlatformInitOpenGL()
[Callstack]  10  0x00007fc77a548beb  PlatformCreateDynamicRHI()
[Callstack]  11  0[2015.03.08-19.53.41:909][  0]LogExit: Executing StaticShutdownAfterError
Starting ../../../engine/binaries/linux/crashreportclient
[2015.03.08-19.53.41:928][  0]LogGenericPlatformMisc: FPlatformMisc::RequestExit(1)
Aborted (core dumped)

How can I resolve this error?

Many Thanks,
Plank.

Last edited by planck (2015-03-08 20:17:32)

Offline

#2 2016-01-02 15:21:06

danger89
Member
From: The Netherlands
Registered: 2011-04-24
Posts: 11
Website

Re: Error running Unreal Engine 4: Could not create OpenGL 3.2 Context

Yep, is a big issue. When you built the latest Unreal Engine, it will crash under Arch Linux.


    [2016.01.02-15.11.02:983][  0]LogInit:Display: Running engine for game: Demo2
    [2016.01.02-15.11.02:983][  0]LogPlatformFile: Not using cached read wrapper
    [2016.01.02-15.11.02:983][  0]LogInit:Display: RandInit(1014451956) SRandInit(1014451966).
    [2016.01.02-15.11.02:983][  0]LogTaskGraph: Started task graph with 4 named threads and 7 total threads.
    [2016.01.02-15.11.02:983][  0]LogStats: Stats thread started at 0.035696
    [2016.01.02-15.11.02:983][  0]LogInit: Version: 4.10.2-0+++depot+UE4-Releases+4.10
    [2016.01.02-15.11.02:983][  0]LogInit: API Version: 0
    [2016.01.02-15.11.02:983][  0]LogInit: Compiled (64-bit): Jan  2 2016 14:05:53
    [2016.01.02-15.11.02:983][  0]LogInit: Compiled with Clang: 3.6.2 (tags/RELEASE_362/final)
    [2016.01.02-15.11.02:983][  0]LogInit: Build Configuration: Development
    [2016.01.02-15.11.02:983][  0]LogInit: Branch Name: ++depot+UE4-Releases+4.10
    [2016.01.02-15.11.02:983][  0]LogInit: Command line:
    [2016.01.02-15.11.02:983][  0]LogInit: Base directory: /mnt/data/UnrealEngine/Engine/Binaries/Linux/
    [2016.01.02-15.11.02:983][  0]LogInit: Rocket: 0
    [2016.01.02-15.11.02:993][  0]LogInit: Using libcurl 7.38.0
    [2016.01.02-15.11.02:993][  0]LogInit:  - built for x86_64-unknown-linux-gnu
    [2016.01.02-15.11.02:993][  0]LogInit:  - supports SSL with OpenSSL/1.0.1i
    [2016.01.02-15.11.02:993][  0]LogInit:  - supports HTTP deflate (compression) using libz 1.2.5
    [2016.01.02-15.11.02:993][  0]LogInit:  - other features:
    [2016.01.02-15.11.02:993][  0]LogInit:      CURL_VERSION_SSL
    [2016.01.02-15.11.02:994][  0]LogInit:      CURL_VERSION_LIBZ
    [2016.01.02-15.11.02:994][  0]LogInit:      CURL_VERSION_IPV6
    [2016.01.02-15.11.02:994][  0]LogInit:      CURL_VERSION_ASYNCHDNS
    [2016.01.02-15.11.02:994][  0]LogInit:      CURL_VERSION_LARGEFILE
    [2016.01.02-15.11.02:994][  0]LogInit:      CURL_VERSION_TLSAUTH_SRP
    [2016.01.02-15.11.02:994][  0]LogInit:  Libcurl: checking if '/etc/pki/tls/certs/ca-bundle.crt' exists
    [2016.01.02-15.11.02:994][  0]LogInit:  Libcurl: checking if '/etc/ssl/certs/ca-certificates.crt' exists
    [2016.01.02-15.11.02:994][  0]LogInit:  CurlRequestOptions (configurable via config and command line):
    [2016.01.02-15.11.02:994][  0]LogInit:  - bVerifyPeer = true  - Libcurl will verify peer certificate
    [2016.01.02-15.11.02:994][  0]LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
    [2016.01.02-15.11.02:994][  0]LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
    [2016.01.02-15.11.02:994][  0]LogInit:  - CertBundlePath = /etc/ssl/certs/ca-certificates.crt  - Libcurl will set CURLOPT_CAINFO to it
    [2016.01.02-15.11.03:523][  0]LogInit: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
    [2016.01.02-15.11.03:536][  0]LogInit: Object subsystem initialized
    [2016.01.02-15.11.03:537][  0]LogInit: Initializing SDL.
    [2016.01.02-15.11.03:922][  0]LogInit: Initialized SDL 2.0.4 (compiled against 2.0.4)
    [2016.01.02-15.11.03:923][  0]LogInit: Display metrics:
    [2016.01.02-15.11.03:923][  0]LogInit:   PrimaryDisplayWidth: 1920
    [2016.01.02-15.11.03:923][  0]LogInit:   PrimaryDisplayHeight: 1080
    [2016.01.02-15.11.03:923][  0]LogInit:   PrimaryDisplayWorkAreaRect:
    [2016.01.02-15.11.03:923][  0]LogInit:     Left=0, Top=0, Right=1920, Bottom=1055
    [2016.01.02-15.11.03:923][  0]LogInit:   VirtualDisplayRect:
    [2016.01.02-15.11.03:923][  0]LogInit:     Left=0, Top=0, Right=1920, Bottom=1055
    [2016.01.02-15.11.03:923][  0]LogInit:   TitleSafePaddingSize: X=0.000 Y=0.000
    [2016.01.02-15.11.03:923][  0]LogInit:   ActionSafePaddingSize: X=0.000 Y=0.000
    [2016.01.02-15.11.03:923][  0]LogInit:   Number of monitors: 1
    [2016.01.02-15.11.03:923][  0]LogInit:     Monitor 0
    [2016.01.02-15.11.03:923][  0]LogInit:       Name: SyncMaster 24"
    [2016.01.02-15.11.03:923][  0]LogInit:       ID: display0
    [2016.01.02-15.11.03:923][  0]LogInit:       NativeWidth: 1920
    [2016.01.02-15.11.03:923][  0]LogInit:       NativeHeight: 1080
    [2016.01.02-15.11.03:923][  0]LogInit:       bIsPrimary: true
    [2016.01.02-15.11.03:923][  0]LogLinux: Selected Device Profile: [Linux]
    [2016.01.02-15.11.03:923][  0]LogInit: Applying CVar settings loaded from the selected device profile: [Linux]
    [2016.01.02-15.11.03:943][  0]LogInit: Linux hardware info:
    [2016.01.02-15.11.03:943][  0]LogInit:  - this process' id (pid) is 7654, parent process' id (ppid) is 782
    [2016.01.02-15.11.03:943][  0]LogInit:  - we are not running under debugger
    [2016.01.02-15.11.03:943][  0]LogInit:  - machine network name is 'melroy-pc'
    [2016.01.02-15.11.03:943][  0]LogInit:  - we're logged in locally
    [2016.01.02-15.11.03:943][  0]LogInit:  - Number of physical cores available for the process: 4
    [2016.01.02-15.11.03:943][  0]LogInit:  - Number of logical cores available for the process: 8
    [2016.01.02-15.11.03:943][  0]LogInit:  - Cache line size: 64
    [2016.01.02-15.11.03:943][  0]LogInit:  - Memory allocator used: binned
    [2016.01.02-15.11.03:943][  0]LogInit: Linux-specific commandline switches:
    [2016.01.02-15.11.03:943][  0]LogInit:  -nodwarf (currently OFF): suppress parsing of DWARF debug info (callstacks will be generated faster, but won't have line numbers)
    [2016.01.02-15.11.03:943][  0]LogInit:  -ansimalloc - use malloc()/free() from libc (useful for tools like valgrind and electric fence)
    [2016.01.02-15.11.03:943][  0]LogInit:  -jemalloc - use jemalloc for all memory allocation
    [2016.01.02-15.11.03:943][  0]LogInit:  -binnedmalloc - use binned malloc  for all memory allocation
    [2016.01.02-15.11.03:943][  0]LogInit:  -httpproxy=ADDRESS:PORT - redirects HTTP requests to a proxy (only supported if compiled with libcurl)
    [2016.01.02-15.11.03:943][  0]LogInit:  -reuseconn - allow libcurl to reuse HTTP connections (only matters if compiled with libcurl)
    [2016.01.02-15.11.03:943][  0]LogInit:  -virtmemkb=NUMBER - sets process virtual memory (address space) limit (overrides VirtualMemoryLimitInKB value from .ini)
    [2016.01.02-15.11.03:943][  0]LogInit: Setting LC_NUMERIC to en_US
    [2016.01.02-15.11.03:943][  0]LogInit:  - Physical RAM available (not considering process quota): 6 GB (5962 MB, 6105980 KB, 6252523520 bytes)
    [2016.01.02-15.11.03:949][  0]LogTextLocalizationManager: No translations for ('nl-NL') exist, falling back to 'en' for localization and internationalization data.
    Signal 11 caught.
    EngineCrashHandler: Signal=11
    [2016.01.02-15.11.04:830][  0]LogLinux: === Critical error: ===
    Unhandled Exception: SIGSEGV: invalid attempt to access memory at address 0x00000008

    [2016.01.02-15.11.04:830][  0]LogLinux: Fatal error!

    [Callstack]  03  0x00000000004359cb  EngineCrashHandler(FGenericCrashContext const&) [/mnt/data/UnrealEngine/Engine/Source/Runtime/Launch/Private/Linux/LaunchLinux.cpp, line 31]
    [Callstack]  04  0x00007f1ff127ff91  PlatformCrashHandler(int, siginfo_t*, void*)
    [Callstack]  05  0x00007f1ff1daed60  /usr/lib/libpthread.so.0(+0x10d60) [0x7f1ff1daed60]
    [Callstack]  06  0x00007f1ff1606910  /mnt/data/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x593910) [0x7f1ff1606910]
    [Callstack]  07  0x00007f1ff15c3cda  /mnt/data/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x550cda) [0x7f1ff15c3cda]
    [Callstack]  08  0x00007f1ff15c4a18  /mnt/data/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x551a18) [0x7f1ff15c4a18]
    [Callstack]  09  0x00007f1ff1589997  /mnt/data/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x516997) [0x7f1ff1589997]
    [Callstack]  10  0x00007f1ff1589fed  /mnt/data/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x516fed) [0x7f1ff1589fed]
    [Callstack]  11  0x00007f1ff12cfb78  /mnt/data/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x25cb78) [0x7f1ff12cfb78]
    [Callstack]  12  0x00007f1ff15ad88b  /mnt/data/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x53a88b) [0x7f1ff15ad88b]
    [Callstack]  13  0x00007f1ff15c8b09  /mnt/data/UnrealEngine/Engine/Binaries/Linux/libUE4Editor-Core.so(+0x555b09) [0x7f1ff15c8b09]
    [Callstack]  14  0x00007f1ff1da54a4  /usr/lib/libpthread.so.0(+0x74a4) [0x7f1ff1da54a4]
    [Callstack]  15  0x00007f1fe5ba413d  /usr/lib/libc.so.6(clone+0x6d) [0x7f1fe5ba413d]

Offline

#3 2016-01-02 18:11:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Error running Unreal Engine 4: Could not create OpenGL 3.2 Context

danger89,
I don't see how the two are related aside from them being problems with the same program.   This is also an old thread is probably obsolete by now.  https://wiki.archlinux.org/index.php/Fo … bumping.22

I'm closing this thread.  If you have a problem that needs answering, please feel free to open a new thread.
Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB