Hide Forgot
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)
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.