Description of problem: Since updating a Fedora 12 system on Feb 24 2010, the compiled application QGIS (which uses Qt4 libs) segfaults on startup. The application ran fine until that update. This happens *only* with the GNOME window manager. Under KDE or xfce the *same binary* runs fine. Compiling the app with debugging enabled reveals that the problem seems to be related to libQtGui.so.4.6.2 . On Feb 24 the updates included qt-4.6.2 and qt-x11-4.6.2 Version-Release number of selected component (if applicable): qt-4.6.2 How reproducible: Steps to Reproduce: 1. Compile QGIS 1.4.0 from source: http://download.osgeo.org/qgis/src/qgis_1.4.0.tar.gz (uses cmake) 2. Specific compilation instructions: http://linfiniti.com/2009/11/compiling-qgis-under-ubuntu-9-10/ or http://www.surfaces.co.il/?p=523 3. Login with xfce windows manager. qgis loads with no errors 4. Login with Gnome. qgis causes a segmentation fault. (I can supply an strace if necessary) Actual results: Segfault Expected results: normal startup ;-) Additional info: Other users running Fedora 11 reported similar behaviour: http://www.mail-archive.com/qgis-user@lists.osgeo.org/msg05595.html
*** This bug has been marked as a duplicate of bug 498111 ***
I tried changing the style to Cleanlook or Oxygen with qtconfig-qt4. No improvement...
And in addition, running as superuser *is* successful (with some warnings): Maybe this will shed some light on the problem. micha@hayun-13:~$ su Password: [root@hayun-13 micha]# qgis & [1] 8859 [root@hayun-13 micha]# Warning: Qt: Session management error: None of the authentication protocols specified are supported QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory Warning: QFileSystemWatcher: failed to add paths: /root/.config/ibus/bus Warning: Bus::open: Can not get ibus-daemon's address. Debug: IBusInputContext::createInputContext: no connection to ibus-daemon Python support ENABLED :-) Loaded : Plugin Installer (package: plugin_installer) Loaded : fTools (package: fTools) (QGIS working)
Same here on f11. All updates applied. $ qgis Segmentation fault (core dumped) $ root qgis Warning: QGtkStyle was unable to detect the current GTK+ theme. Python support ENABLED :-) Loaded : Plugin Installer (package: plugin_installer) Warning: QPainter::begin: Paint device returned engine == 0, type: 2 Warning: QPainter::end: Painter not active, aborted [qgis came up]
What we finally did to solve the problem was to compile a newer version of GDAL. The segault occurred with GDAL 1.6.x. Once we moved to 1.7.1 the segfaults went away. HTH
It may not be the upgrade which fixed it, but just you compiling GDAL without GRASS support. As the other report says, the issue only occurs if some GRASS library is linked in.
I had not compiled GDAL with GRASS previously, either. There's a separate package gdal-grass which circumvents this problem, and pushes the GDAL stuff into GRASS.