Bug 570768 - QGIS segfaults under GNOME
Summary: QGIS segfaults under GNOME
Keywords:
Status: CLOSED DUPLICATE of bug 498111
Alias: None
Product: Fedora
Classification: Fedora
Component: qt4
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-05 11:08 UTC by Micha Silver
Modified: 2010-03-11 11:48 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-03-05 11:23:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Micha Silver 2010-03-05 11:08:55 UTC
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

Comment 1 Kevin Kofler 2010-03-05 11:23:30 UTC

*** This bug has been marked as a duplicate of bug 498111 ***

Comment 2 Micha Silver 2010-03-05 11:51:57 UTC
I tried changing the style to Cleanlook or Oxygen with qtconfig-qt4. No improvement...

Comment 3 Micha Silver 2010-03-05 12:05:23 UTC
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)

Comment 4 Rick Richardson 2010-03-10 23:18:11 UTC
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]

Comment 5 Micha Silver 2010-03-11 06:53:13 UTC
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

Comment 6 Kevin Kofler 2010-03-11 08:42:16 UTC
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.

Comment 7 Micha Silver 2010-03-11 11:48:30 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.