Bug 783111

Summary: X11 configuration error with Qt Creator and OpenGL
Product: [Fedora] Fedora Reporter: strattonbrazil
Component: xorg-x11-driversAssignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-23 15:36:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description strattonbrazil 2012-01-19 12:11:14 UTC
Executables launched from Qt Creator with a QGLWidget's fail with "QGLTempContext: No GL capable X visuals available", while the same executables function correctly when run from the shell.  


How reproducible:

Consistent crash.  

Steps to Reproduce:
1.  Create a new C++ project within Qt Creator
2.  add '#include <QtOpenGL/QGLWidget>' to main.cpp
3.  add 'QGLWidget o;' inside main() of main.cpp
4.  add 'o.show();' inside main() of main.cpp
  
Actual results:

Program "QGLTempContext: No GL capable X visuals available"

Expected results:

Program launches with QGLWidget window displayed.  

Additional info:

I'm running this app using the latest nvidia drivers from rpmfusion on an nvidia 8800.  These applications I tested worked fine from a Ubuntu install.  On closer inspection, this seems to happen when the project's run settings are set to "Build Settings".  Changing them to "System Settings" seems to resolve the issue.  The offending environment variable seems to be LD_LIBRARY_PATH.  By unsetting this variable, the application will start normally.  

Conversely, if I set that environment variable in the shell, I can then get the test application to crash from the terminal.  

$ export LD_LIBRARY_PATH=/usr/lib64
$ ./test
QGLTempContext: No GL capable X visuals available.
Segmentation fault (core dumped)

Comment 1 Adam Jackson 2012-03-23 15:36:28 UTC
If you're using nvidia's drivers, then this problem is either in their code or in how you installed it.  This doesn't happen with the open drivers.