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.51k stars 2.99k forks source link

Rule Based Line Symbology weird behaviour changes on zoom #56373

Open jteez opened 8 months ago

jteez commented 8 months ago

What is the bug or the crash?

HI All, I've find an issue that just appeared out of nowhere... was working fine then just started misbehaving...

Fairly straight forward in principle... just a line layer with gradient on an attribute. I've converted that to rules and added other nested rules based on attributes.

This is how it looks (and used to at any scale) at 1:1565

image

However when I zoom out to 1:6257 and beyond it looks like this (basemap disabled to obscure location): image

The rule appears to have jumped from the if (thicker lines with graduated colour) to the else (thin lines fixed colour) on zoom.... The attribute is just a text field so shouldn't change. It didn't used to do this and then it suddenly started, initially it was a bit quirky in that I could zoom out far enough and it would start working again and it seems to have degenerated to the point where it only displays properly if I've very zoomed it.

Full Rules here: image

Additionally I have tried to copy the layer delete the rules and start again, no luck. I've also reimported the layer and saved as a separate file, still the same. Restarted QGIS a couple of times. I've also just upgraded to latest QGIS (3.34.3-Prizren) still the same. Also created new user profile.

Is it possible if just messed up a setting someone, I can't see any scale symbology settings, or is it a genuine bug...

Thanks team,

Steps to reproduce the issue

For me just zoom out, I doubt anyone would be able to recreate as it wasn't doing it before...

Versions

QGIS version 3.34.3-Prizren QGIS code revision 47373234ac 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 15.2 SpatiaLite version 5.1.0 QWT version 6.1.6 QScintilla2 version 2.13.4 OS version Windows 10 Version 2009

Active Python plugins FreehandRasterGeoreferencer 0.8.3 GeoCoding 2.19 multilayerselect 1.5.0 pointsamplingtool 0.5.4 processing_saga_nextgen 1.0.0 qchainage 3.0.1 QuickOSM 2.2.3 SRTM-Downloader 3.2.1 db_manager 0.1.20 grassprovider 2.12.99 MetaSearch 0.3.6 processing 2.12.99

Supported QGIS version

New profile

Additional context

No response

agiudiceandrea commented 8 months ago

@jteez, thanks for reporting, anyway it may be difficult to find the root cause of the bug without a project and layer(s) with which the issue occurs.

jteez commented 8 months ago

Thanks for the response, it's private data, so I can't just share... I am trying to set up a test set that can show it... I came close to replicating it and had other issues appear that seemed to be related to 'Render layers as Group' - by toggling that I was able to reset some issues... I'll post with an update when I'm able to...

jteez commented 7 months ago

It's definitely related to 'Render layers as Group' I was able to reproduce today by checking and unchecking that box and the issue came and went. I do have multiple nested layers of 'render as a group'... I will add more detail if I can.

nyalldawson commented 2 weeks ago

We'll definitely need a sample project to diagnose this one. Can you put one together using anonymized data?

github-actions[bot] commented 5 days ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.