Bug 518121
Summary: | Segmentation Fault with QGIS 1.0.2 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | TDRogers <M8R-uhet8s> | ||||||
Component: | qgis | Assignee: | Douglas E. Warner <silfreed> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 11 | CC: | alex, cristian.balint, fedora, k_a_r_l_o_, silfreed | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 1.0.2-1.fc11.1 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2009-11-04 12:33:11 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
TDRogers
2009-08-19 01:10:17 UTC
Can you confirm that it's not bug#498111? No, I cannot. I can't even complete Step 1. Whatever the problem is, it's in the QGIS-python package... Removing that one let's QGIS and the GRASS plugin work. (In reply to comment #1) > Can you confirm that it's not bug#498111? I can confirm that it isn't the same bug. Removing the qgis-python package allows qgis to start provided I have already done the qtconfig-qt4 theme workaround for bug 498111. Reinstalling qgis-python results in the segfault from this bug. Created attachment 358975 [details]
Stacktrace
I can confirm Comment #3. (on 32-bit Fedora 11) I have installed "Python integration and plugins for qgis". Sometimes (randomly) QGIS starts with the following message: ---------------------------- Couldn't load PyQGIS. Python support will be disabled. Traceback (most recent call last): File "", line 1, in RuntimeError: the sip module implements API v5.0 but the rVsV module requires API v3.8 Python version: 2.6 (r26:66714, Jun 8 2009, 16:07:26) [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] Python path: ['/usr/share/qgis/python', '/home/karlo/.qgis//python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/Numeric', '/usr/lib/python2.6/site-packages/PIL', '/usr/lib/python2.6/site-packages/gst-0.10', '/usr/lib/python2.6/site-packages/gtk-2.0', '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode'] -------------------- Otherwise "Segmentation fault" and QGIS is not lunched. If 64-bit Fedora 11 is used the only response for "Python integration and plugins for qgis" is "Segmentation fault". Is there any further information we could help collect to aid with determining the solution for this issue? Just guessing - wrong Python version. MS Windows based QGIS packages relay on Python 2.5. Fedora 11 has been packed with Python 2.6. I was wrong :( (Comment #8) - Ubuntu 9.04 + Qgis 1.0.2 + Python 2.6.2 works as expected. May be I was not wrong as a lot of bugs has been fixed since Python 2.6: http://www.python.org/download/releases/2.6.1/NEWS.txt http://www.python.org/download/releases/2.6.2/NEWS.txt http://www.python.org/download/releases/2.6.3/NEWS.txt Several of the fixed bugs has a key-word 'segfault' Looks like the packages simply need to be rebuilt. I rebuilt the src.rpm package for qgis without any changes and installed the resulting rpms. Looks like things are working including the python plugins. (In reply to comment #10) > Looks like the packages simply need to be rebuilt. I rebuilt the src.rpm > package for qgis without any changes and installed the resulting rpms. Looks > like things are working including the python plugins. I just did a scratch build on koji: http://koji.fedoraproject.org/koji/taskinfo?taskID=1764052 installed the resulting packages, and they appear to fix the segfault. If nobody objects, I'll commit the change to CVS and push out an update to updates-testing. qgis-1.0.2-1.fc11.1 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/qgis-1.0.2-1.fc11.1 I have downloaded qgis-1.0.2-1.fc11.1.x86_64.rpm from http://koji.fedoraproject.org/koji/buildinfo?buildID=137913. This package has wrong dependencies. The command yum localinstall qgis-1.0.2-1.fc11.1.x86_64.rpm ends up with 44 dependencies. All of them was for Fedora 11 i586 not for x64. (In reply to comment #13) > I have downloaded qgis-1.0.2-1.fc11.1.x86_64.rpm from > http://koji.fedoraproject.org/koji/buildinfo?buildID=137913. > > This package has wrong dependencies. The command > yum localinstall qgis-1.0.2-1.fc11.1.x86_64.rpm > ends up with 44 dependencies. All of them was for Fedora 11 i586 not for x64. Can you post your full output from yum? I removed qgis and qgis-python and downloaded the built RPMs from that page it successfully resolves deps on x86_64 without any additional i586 deps: $ sudo yum localinstall qgis-python-1.0.2-1.fc11.1.x86_64.rpm qgis-1.0.2-1.fc11.1.x86_64.rpm Loaded plugins: allowdowngrade, changelog, dellsysidplugin2, downloadonly, : fastestmirror, presto, priorities, protectbase, refresh- : packagekit, tsflags, versionlock Setting up Local Package Process Examining qgis-python-1.0.2-1.fc11.1.x86_64.rpm: qgis-python-1.0.2-1.fc11.1.x86_64 Marking qgis-python-1.0.2-1.fc11.1.x86_64.rpm to be installed Loading mirror speeds from cached hostfile <snip> packages excluded due to repository protections Examining qgis-1.0.2-1.fc11.1.x86_64.rpm: qgis-1.0.2-1.fc11.1.x86_64 Marking qgis-1.0.2-1.fc11.1.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package qgis.x86_64 0:1.0.2-1.fc11.1 set to be updated ---> Package qgis-python.x86_64 0:1.0.2-1.fc11.1 set to be updated --> Finished Dependency Resolution Dependencies Resolved =============================================================================== Package Arch Version Repository Size =============================================================================== Installing: qgis x86_64 1.0.2-1.fc11.1 /qgis-1.0.2-1.fc11.1.x86_64 12 M qgis-python x86_64 1.0.2-1.fc11.1 /qgis-python-1.0.2-1.fc11.1.x86_64 1.7 M Transaction Summary =============================================================================== Install 2 Package(s) Upgrade 0 Package(s) Total size: 14 M Is this ok [y/N]: (In reply to comment #14) I shall add the output as a text file Created attachment 365818 [details]
Full output from yum
This part suggests that you already have both i586 and x86_64 versions of qgis already installed: ---> Package qgis.x86_64 0:1.0.2-1.fc11.1 set to be updated --> Running transaction check ---> Package qgis.i586 0:1.0.2-1.fc11 set to be updated If you run before the install: rpm -q qgis what do you get? [root@tatooine QGIS]# rpm -q qgis qgis-1.0.2-1.fc11.x86_64 I tried reinstalling the old qgis and then locally-installing the RPM as you did, but I can't seem to reproduce this. I suspect that some of the old qgis packages are causing some problems, can you try "yum remove"ing all of your qgis-related packages and installing the new ones afresh? Hopefully we'll get more feedback from other users when this update gets pushed to updates-testing. OK, I can duplicate the error now. Let's say I have the following installed: $ rpm -qa|grep qgis qgis-1.0.2-1.fc11.x86_64 qgis-theme-classic-1.0.2-1.fc11.x86_64 qgis-python-1.0.2-1.fc11.x86_64 qgis-theme-nkids-1.0.2-1.fc11.x86_64 Then I attempt to only upgrade only qgis and qgis-python RPMs: $ sudo yum localinstall qgis-python-1.0.2-1.fc11.1.x86_64.rpm qgis-1.0.2-1.fc11.1.x86_64.rpm Loaded plugins: allowdowngrade, changelog, dellsysidplugin2, downloadonly, : fastestmirror, presto, priorities, protectbase, refresh- : packagekit, tsflags, versionlock Setting up Local Package Process Examining qgis-python-1.0.2-1.fc11.1.x86_64.rpm: qgis-python-1.0.2-1.fc11.1.x86_64 Marking qgis-python-1.0.2-1.fc11.1.x86_64.rpm as an update to qgis-python-1.0.2-1.fc11.x86_64 0 packages excluded due to repository protections Examining qgis-1.0.2-1.fc11.1.x86_64.rpm: qgis-1.0.2-1.fc11.1.x86_64 Marking qgis-1.0.2-1.fc11.1.x86_64.rpm as an update to qgis-1.0.2-1.fc11.x86_64 Resolving Dependencies --> Running transaction check --> Processing Dependency: qgis = 1.0.2-1.fc11 for package: qgis-theme-classic-1.0.2-1.fc11.x86_64 --> Processing Dependency: qgis = 1.0.2-1.fc11 for package: qgis-theme-nkids-1.0.2-1.fc11.x86_64 ---> Package qgis.x86_64 0:1.0.2-1.fc11.1 set to be updated ---> Package qgis-python.x86_64 0:1.0.2-1.fc11.1 set to be updated --> Running transaction check ---> Package qgis.i586 0:1.0.2-1.fc11 set to be updated --> Processing Dependency: libgsl.so.0 for package: qgis-1.0.2-1.fc11.i586 --> Processing Dependency: libproj.so.0 for package: qgis-1.0.2-1.fc11.i586 --> Processing Dependency: libgslcblas.so.0 for package: qgis-1.0.2-1.fc11.i586 --> Processing Dependency: libgeos_c.so.1 for package: qgis-1.0.2-1.fc11.i586 --> Processing Dependency: libpq.so.5 for package: qgis-1.0.2-1.fc11.i586 --> Processing Dependency: libgdal.so.1 for package: qgis-1.0.2-1.fc11.i586 --> Running transaction check ---> Package gdal.i586 0:1.6.0-8.fc11 set to be updated --> Processing Dependency: libgrass_gmath.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_dig2.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_rtree.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgeotiff.so.1.2 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libodbc.so.2 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libhdf5.so.6 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_gproj.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_gis.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_datetime.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_I.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libodbcinst.so.2 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libmysqlclient.so.16 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_dgl.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16) for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_vect.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libnetcdf.so.4 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: librx.so.0 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libxerces-c.so.28 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgif.so.4 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libdapclient.so.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libdap.so.9 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libogdi.so.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_dbmiclient.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libdapserver.so.6 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libgrass_linkm.so.6.3 for package: gdal-1.6.0-8.fc11.i586 --> Processing Dependency: libcfitsio.so.0 for package: gdal-1.6.0-8.fc11.i586 <snipped output> However if I supply all the packages to be update, it proceeds normally: $ sudo yum localinstall qgis-1.0.2-1.fc11.1.x86_64.rpm qgis-theme-classic-1.0.2-1.fc11.1.x86_64.rpm qgis-python-1.0.2-1.fc11.1.x86_64.rpm qgis-theme-nkids-1.0.2-1.fc11.1.x86_64.rpm Loaded plugins: allowdowngrade, changelog, dellsysidplugin2, downloadonly, : fastestmirror, presto, priorities, protectbase, refresh- : packagekit, tsflags, versionlock Setting up Local Package Process Examining qgis-1.0.2-1.fc11.1.x86_64.rpm: qgis-1.0.2-1.fc11.1.x86_64 Marking qgis-1.0.2-1.fc11.1.x86_64.rpm as an update to qgis-1.0.2-1.fc11.x86_64 0 packages excluded due to repository protections Examining qgis-theme-classic-1.0.2-1.fc11.1.x86_64.rpm: qgis-theme-classic-1.0.2-1.fc11.1.x86_64 Marking qgis-theme-classic-1.0.2-1.fc11.1.x86_64.rpm as an update to qgis-theme-classic-1.0.2-1.fc11.x86_64 Examining qgis-python-1.0.2-1.fc11.1.x86_64.rpm: qgis-python-1.0.2-1.fc11.1.x86_64 Marking qgis-python-1.0.2-1.fc11.1.x86_64.rpm as an update to qgis-python-1.0.2-1.fc11.x86_64 Examining qgis-theme-nkids-1.0.2-1.fc11.1.x86_64.rpm: qgis-theme-nkids-1.0.2-1.fc11.1.x86_64 Marking qgis-theme-nkids-1.0.2-1.fc11.1.x86_64.rpm as an update to qgis-theme-nkids-1.0.2-1.fc11.x86_64 Resolving Dependencies --> Running transaction check ---> Package qgis.x86_64 0:1.0.2-1.fc11.1 set to be updated ---> Package qgis-python.x86_64 0:1.0.2-1.fc11.1 set to be updated ---> Package qgis-theme-classic.x86_64 0:1.0.2-1.fc11.1 set to be updated ---> Package qgis-theme-nkids.x86_64 0:1.0.2-1.fc11.1 set to be updated --> Finished Dependency Resolution Dependencies Resolved =============================================================================== Package Arch Version Repository Size =============================================================================== Updating: qgis x86_64 1.0.2-1.fc11.1 /qgis-1.0.2-1.fc11.1.x86_64 12 M qgis-python x86_64 1.0.2-1.fc11.1 /qgis-python-1.0.2-1.fc11.1.x86_64 1.7 M qgis-theme-classic x86_64 1.0.2-1.fc11.1 /qgis-theme-classic-1.0.2-1.fc11.1.x86_64 284 k qgis-theme-nkids x86_64 1.0.2-1.fc11.1 /qgis-theme-nkids-1.0.2-1.fc11.1.x86_64 67 k Transaction Summary =============================================================================== Install 0 Package(s) Upgrade 4 Package(s) Total size: 14 M Is this ok [y/N]: It seems if you don't give all the names of the packages that are to be updated in the localinstall then you can get errors like this probably due to the way yum handles multilib. In any case, once the packages go to updates-testing and you do a proper "yum update" it should update all the packages correctly. Command yum erase qgis resolves the issue for me. Only development package will install all dependencies for x64 and i586 as well: yum localinstall qgis-devel-1.0.2-1.fc11.1.x86_64.rpm But that's why it's a development package. Now the python plug-ins work! qgis-1.0.2-1.fc11.1 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update qgis'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10744 (In reply to comment #22) In reply to your bodhi error, please post the exact commands and the full output. Did you clean the metadata before you tried the upgrade? yum clean metadata to make sure you have the most recent package lists. Sorry, what is 'bodhi error'? (In reply to comment #25) > Sorry, what is 'bodhi error'? The error report you made on the bodhi update: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10744 Bodhi is the name for the Fedora Update System: http://fedoraproject.org/wiki/Bodhi_Guide qgis-1.0.2-1.fc11.1 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |