Random UE3Editor crash using primusrun


When i start using Unreal 4 on Linux with primus or bumblebee (primusrun/optirun), it has random crashs. Normally when starting the Project Manager or when start a project, but its not specific, already happened when loading a new map from content browser. The follow error occur:

sh: xdg-user-dir: comando não encontrado
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  153 (DRI2)
  Minor opcode of failed request:  7 (DRI2GetBuffersWithFormat	)
  Resource id in failed request:  0x240003e
  Serial number of failed request:  1707
  Current serial number in output stream:  1707
Assertion failed: IsInRenderingThread() [File:/media/Gallifrey/Apps/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 40] 

Signal 11 caught.
Abortado (imagem do núcleo gravada)

A detail, since the OS runs on my native language, the last line could be translated to: Aborted (Core image overwritten).

I’ve also attached a Full console log here.

Its look like, when i use the -opengl4 switch, the app stop crashing, but i have the Black Screen problem and the fixes from the Wiki doesnt work.

I’ve followed preciselly this guide to compile. There’s no change running UE4Editor and UE4Editor-Linux-Debug (i’ve compiled both).

Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)
eDP1 connected 1366x768+0+0
HDMI1 connected 1920x1080+1366+0
Linux 4.4.1-2-ARCH
              total        used        free      shared  buff/cache   available
Mem:           7893        1511        2919         329        3462        5973

That crash seems to have happened when you were closing the editor; do you have logs from a crash that happened during load? Also, could you try running under the debugger?