Assertion Failed with clang 3.5

Hello, I have successfully built UE 4.8 on my Ubuntu 14.04 machine with GTX 660M graphics card with version 331 nvidia drivers. 9 times out of 10 I get this errors right after the splash screen.

`X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 154 (DRI2)
Minor opcode of failed request: 7 (DRI2GetBuffersWithFormat )
Resource id in failed request: 0x3e00004
Serial number of failed request: 674
Current serial number in output stream: 674
Assertion failed: IsInRenderingThread() [File:/home/ata/Unreal/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 40]

Signal 11 caught.
EngineCrashHandler: Signal=11
[2015.05.25-15.29.49:154][  0]LogLinux:Error: appError called: Assertion failed: Assertion failed: IsInRenderingThread() [File:/home/ata/Unreal/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 40] 

`
I have seen similar questions but they were clang related and I already have 3.5. I can provide more info if needed. Thanks.

Try to update your drivers. They are quite old and see if that helps. See this page A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums.

Well Nvidias own installer claims that my graphics card does not support any newer update. And any update I’ve installed from repos completely killed my computers ability to detect monitors. Unless some other advice comes I will have to wait for 446 to hit stable repos I think (or god forbid install windows on an external hard drive). Thanks tough.

This is likely not a driver issue. Could you capture a better (longer) callstack?

Thanks for your attention, tell me if you need anything else.

stdout
stderr
diagnostics

After reading this more carefully, I think yaakuro’s advice is correct. Could you try newer drivers from xorg-edgers ppa?

Hello, . I have same error. When I run my project I get the error `Assertion failed: IsInRenderingThread() [File:/home//UnrealEngineSource/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 40]

[2015.08.17-11.09.22:428][256]LogLinux:Error: appError called: Assertion failed: Assertion failed: IsInRenderingThread() [File:/home//UnrealEngineSource/UnrealEngine/Engine/Source/Runtime/RenderCore/Private/RenderResource.cpp] [Line: 40]
`

I installed newest drivers for nvidia from xorg-edgers.

PS It’s crushed when i create new thread (c++ standart thread)

I found answer on A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums
- Optimus based laptop users who are getting Assert failed: IsInRenderingThread() or DRI buffer related errors should try running editor with: PRIMUS_SYNC=1 primusrun UE4Editor (thanks to HicksD for this tip),

but i dont understand what is it?