Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Paletted/Unique values" raster rendering is extremely slow using QGIS 3.34.4 / QGIS 3.36.0 #56652

Closed
2 tasks done
agiudiceandrea opened this issue Mar 2, 2024 · 1 comment · Fixed by #56784
Closed
2 tasks done
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) Regression Something which used to work, but doesn't anymore Symbology Related to vector layer symbology or renderers

Comments

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Mar 2, 2024

What is the bug or the crash?

The rendering of a raster layer with the "Paletted/Unique values" render type is extremely slow using QGIS 3.34.4 / QGIS 3.36.0 (OSGeo4W) on Windows 10 64-bit.
The same raster layer on the same system renders fast using QGIS 3.28.15.

Steps to reproduce the issue

  1. Using QGIS 3.34.4 / QGIS 3.36.0, add the test.tif raster layer (in test.zip) to a new project
  2. set the raster symbology to the "Paletted/Unique values" render type
  3. select a color ramp, click on "Classify", click on OK -> wait for several minutes until the raster is rendered...
Video_2024-03-03_000002.mp4

The issue doesn't occur using QGIS 3.28.15

Video_2024-03-02_234343.mp4

Versions

QGIS version
3.34.4-Prizren
QGIS code revision
decd43d
Qt version
5.15.3
Python version
3.9.18
GDAL/OGR version
3.8.4
PROJ version
9.3.1
EPSG Registry database version
v10.098 (2023-11-24)
GEOS version
3.12.1-CAPI-1.18.1
SQLite version
3.41.1
PDAL version
2.6.0
PostgreSQL client version
16.1
SpatiaLite version
5.1.0
QWT version
6.1.6
QScintilla2 version
2.13.4
OS version
Windows 10 Version 1903

Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99


QGIS version
3.28.15-Firenze
QGIS code revision
252ad49
Qt version
5.15.3
Python version
3.9.18
GDAL/OGR version
3.8.3
PROJ version
9.3.1
EPSG Registry database version
v10.098 (2023-11-24)
GEOS version
3.12.1-CAPI-1.18.1
SQLite version
3.41.1
PDAL version
2.6.0
PostgreSQL client version
unknown
SpatiaLite version
5.1.0
QWT version
6.1.6
QScintilla2 version
2.13.4
OS version
Windows 10 Version 1903

Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
sagaprovider
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@agiudiceandrea agiudiceandrea added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) Symbology Related to vector layer symbology or renderers Regression Something which used to work, but doesn't anymore labels Mar 2, 2024
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Mar 4, 2024
Don't try to condense classes if we have many classes, it's too
slow to do and results in many-minute hangs in the UI for large
class counts

Fixes qgis#56652
@agiudiceandrea
Copy link
Contributor Author

It looks like this issue makes QGIS hang for a very long time when importing paletted GeoTIFF layers (e.g. the output layers of some GRASS-GIS processing algorithms).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) Regression Something which used to work, but doesn't anymore Symbology Related to vector layer symbology or renderers
Projects
None yet
2 participants