qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.55k stars 3k forks source link

[Ubuntu 18.04] Crash opening properties dialog for raster, WMS, etc (not vector) layers. #39628

Closed barryrowlingson closed 3 years ago

barryrowlingson commented 4 years ago

Describe the bug

QGIS crashes with signal 11 on Linux when opening the properties dialog of a raster, xyz tiles, or WMS layer - possibly other types of layer too, but not for a vector layer or vector tiles layer.

GIS died on signal 11Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 0
Aborted (core dumped)

How to Reproduce

  1. Open QGIS with no plugins and a new user session
  2. Add a TIFF as a layer.
  3. Right-click on layer in layer list, select properties
  4. crash

QGIS and OS versions

QGIS version 3.16.0-Hannover QGIS code revision 43b64b13f3
Compiled against Qt 5.9.5 Running against Qt 5.9.5
Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3
Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.6.2-CAPI-1.10.2 4d2925d6
Compiled against SQLite 3.22.0 Running against SQLite 3.22.0
PostgreSQL Client Version 10.14 (Ubuntu 10.14-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a
QWT Version 6.1.3 QScintilla2 Version 2.10.2
PROJ.4 Version 493
OS Version Ubuntu 18.04.5 LTS
Active python plugins SpreadsheetLayers; rasterizestring; qgisgbifapi; SRTM-Downloader; ORStools; quick_map_services; qgis-maptiler-plugin; simplesvg; qgis_resource_sharing; QPackage; concavehull; LCPNetwork; qconsolidate3; cartolinegen; minimum_spanning_tree; leastcostpath; PeliasGeocoding; QuickOSM; GeoCoding; HEREqgis; ViewshedAnalysis; DataPlotly; qtiles3; qgis2web; plugin_reloader; db_manager; MetaSearch; processing

Additional context

Definitely worked last week but that was probably 3.14 and perhaps earlier libs of everything - did updates over the weekend.

gioman commented 4 years ago

@barryrowlingson can't confirm on Ubuntu 20.04 and QGIS 3.16 installed with qgis.org repos

roya0045 commented 4 years ago

How is SpreadsheetLayers; rasterizestring; qgisgbifapi; SRTM-Downloader; ORStools; quick_map_services; qgis-maptiler-plugin; simplesvg; qgis_resource_sharing; QPackage; concavehull; LCPNetwork; qconsolidate3; cartolinegen; minimum_spanning_tree; leastcostpath; PeliasGeocoding; QuickOSM; GeoCoding; HEREqgis; ViewshedAnalysis; DataPlotly; qtiles3; qgis2web; plugin_reloader; db_manager; MetaSearch; processing No plugins?

barryrowlingson commented 4 years ago

Oops. That was a QGIS session started with plugins. It does crash without plugins.

barryrowlingson commented 4 years ago

Tried it on another machine, from a very clean user install (rm -rf'd ~/.local/share/QGIS, start QGIS, don't import settings from QGIS2, run with --noplugins. Same crash behaviour.

Here's the about info on this second machine, seems identical. PROJ looks old though, has QGIS not moved past PROJ4?

QGIS version 3.16.0-Hannover QGIS code revision 43b64b13f3
Compiled against Qt 5.9.5 Running against Qt 5.9.5
Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3
Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.6.2-CAPI-1.10.2 4d2925d6
Compiled against SQLite 3.22.0 Running against SQLite 3.22.0
PostgreSQL Client Version 10.14 (Ubuntu 10.14-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a
QWT Version 6.1.3 QScintilla2 Version 2.10.2
PROJ.4 Version 493
OS Version Ubuntu 18.04.5 LTS
Active python plugins  
roya0045 commented 4 years ago

QT 5.9?

roya0045 commented 4 years ago

How do you install QGIS, out of curiosity?

barryrowlingson commented 4 years ago

installation is via apt, and I have this in my apt sources:

deb https://qgis.org/debian bionic main 
deb-src https://qgis.org/debian bionic main

I'm thinking the solution might be "Upgrade ubuntu to 20.x", but 18.x has another 6 months of support from Canonical...

Dkrav-UA commented 4 years ago

Same error when trying to open QGIS options (Settings\Options)

QGIS version 3.16.0-Hannover QGIS code revision 43b64b13f3
Compiled against Qt 5.9.5 Running against Qt 5.9.5
Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3
Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.7.1-CAPI-1.11.1 27a5e771
Compiled against SQLite 3.22.0 Running against SQLite 3.22.0
PostgreSQL Client Version 10.14 (Ubuntu 10.14-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a
QWT Version 6.1.3 QScintilla2 Version 2.10.2
PROJ.4 Version 493
OS Version Ubuntu 18.04.5 LTS
Active python plugins MetaSearch; processing; db_manager
roya0045 commented 4 years ago

The ubuntu 18.04 seem to be having issues in general, possibly due to qt 5.9?

gisn8 commented 4 years ago

Until there's a fix for this, can we get QGIS 3.14 put back in the Ubuntu/Debian repository? There's no sense to allow people to keep downloading/updating to a version with such a gaping problem.

barryrowlingson commented 4 years ago

I've installed Qt 5.14 from the https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.14.2-bionic PPA and QGIS works well with that, haven't crashed it (yet).

Note you need to source a config file to set the QT path before running QGIS to get this:

QGIS version 3.16.0-Hannover QGIS code revision 43b64b13f3
Compiled against Qt 5.9.5 Running against Qt 5.14.2
Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3
Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.6.2-CAPI-1.10.2 4d2925d6
Compiled against SQLite 3.22.0 Running against SQLite 3.22.0
PostgreSQL Client Version 10.14 (Ubuntu 10.14-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a
QWT Version 6.1.3 QScintilla2 Version 2.10.2
PROJ.4 Version 493
OS Version Ubuntu 18.04.5 LTS
Active python plugins SpreadsheetLayers; rasterizestring; qgisgbifapi; SRTM-Downloader; ORStools; quick_map_services; qgis-maptiler-plugin; simplesvg; qgis_resource_sharing; QPackage; concavehull; LCPNetwork; qconsolidate3; cartolinegen; minimum_spanning_tree; leastcostpath; PeliasGeocoding; QuickOSM; GeoCoding; HEREqgis; ViewshedAnalysis; DataPlotly; qtiles3; qgis2web; plugin_reloader; db_manager; MetaSearch; processing
roya0045 commented 4 years ago

@barryrowlingson Thanks for confirming that the issue was coming from the outdated QT!

barryrowlingson commented 4 years ago

Fix by installing QT 5.14 from beineri PPA:

sudo add-apt-repository ppa:beineri/opt-qt-5.14.2-bionic
sudo apt-get update
sudo apt install qt514-meta-full 
source /opt/qt514/bin/qt514-env.sh
qgis

qt514-meta-full is quite large (1Gb) but qt514-meta-minimal failed since QGIS uses a lot outside the packages in that meta package. I don't know what minimal set of individual packages are sufficient for QGIS.

Note that you need to source the /opt/qt514/bin/qt514-env.sh before running qgis in any new shell. If you run from an icon or system menu you'll have to incorporate that into your login or system startup somehow.

faalkao commented 4 years ago

Fix by installing QT 5.14 from beineri PPA:

sudo add-apt-repository ppa:beineri/opt-qt-5.14.2-bionic
sudo apt-get update
sudo apt install qt514-meta-full 
source /opt/qt514/bin/qt514-env.sh
qgis

qt514-meta-full is quite large (1Gb) but qt514-meta-minimal failed since QGIS uses a lot outside the packages in that meta package. I don't know what minimal set of individual packages are sufficient for QGIS.

Note that you need to source the /opt/qt514/bin/qt514-env.sh before running qgis in any new shell. If you run from an icon or system menu you'll have to incorporate that into your login or system startup somehow.

It worked to open the raster property. However, when I click on "symbology" it crashes.

gioman commented 4 years ago

See also https://github.com/qgis/QGIS/issues/39782

luipir commented 3 years ago

fixed with https://github.com/qgis/QGIS/pull/39935

Dkrav-UA commented 3 years ago

Ubuntu 18.04 not entirely fixed. Open Settings\Options. Try to search parameter and your out.

QGIS 3.16.1

gioman commented 3 years ago

Try to search parameter and your out.

@Dkrav-UA this is another issue, already reported in another ticket.