Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] qtdemo does not work; libEGL warning: DRI2: failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Tatsh
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2007
Posts: 100

PostPosted: Sun Jan 06, 2013 9:37 pm    Post subject: [SOLVED] qtdemo does not work; libEGL warning: DRI2: failed Reply with quote

I have a GeForce 560 Ti and nvidia-drivers-310.19 installed.

Mesa 9.0.1 is installed with USE flags: "classic egl gallium gles2 llvm nptl openvg pic shared-glapi" (I believe something in Portage requested that 'egl' be added but cannot remember)

When I run qtdemo, the windows show up, renders nothing, and I get these errors in the console:

Code:

libEGL warning: DRI2: failed to authenticate
QGLTemporaryContext: Error creating EGL context.
libEGL warning: DRI2: failed to authenticate
QEglContext::swapBuffers(): "Bad surface (0x300D)"


The 'QEglContext::swapBuffers(): "Bad surface (0x300D)"' goes on forever until I end the app.

Has anyone seen this error before in a Qt app and know how to fix it?

Other things that use OpenGL are working fine, such as Wine running games, and the Dolphin emulator (Wii emulator).


Last edited by Tatsh on Mon Jan 07, 2013 1:18 am; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5492

PostPosted: Mon Jan 07, 2013 12:56 am    Post subject: Reply with quote

It's an old bug - I thought it's already been fixed.
Basically, the workaround is to build qt-opengl[-egl].
Back to top
View user's profile Send private message
Tatsh
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2007
Posts: 100

PostPosted: Mon Jan 07, 2013 1:17 am    Post subject: Reply with quote

Thanks. That fixes it.

Remove from package.keywords file:
x11-libs/qt-openvg ~amd64

Add to package.use file (just in case):
x11-libs/qt-opengl -egl
x11-libs/qt-gui -egl
x11-libs/qt-demo -openvg

Re-emerge -avDN qt-opengl qt-gui qt-demo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum