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.09k stars 2.93k forks source link

Labels unusable when using "Render Layers as a Group" #50607

Open caspersauce opened 1 year ago

caspersauce commented 1 year ago

What is the bug or the crash?

When using the "Render Layers as a Group" option, labels duplicate and masks stop working. This makes it impossible to use labels correctly when using the "Render Layers as a Group" option.

Shown below is a simple example with a standard point label using the mask feature over a polygon:

image

Shown below is the same exact example with the two objects grouped and "Render Layers as a Group" options checked:

image

Steps to reproduce the issue

  1. Add any polygon to brand new workspace
  2. Add any point with label over polygon
  3. Enable Masking for both label and polygon
  4. Group objects
  5. Select "Render Layers as a Group"

Versions

QGIS version 3.26.3-Buenos Aires QGIS code revision 65e4edfdad
Qt version 5.15.2
Python version 3.9.5
GDAL/OGR version 3.3.2
PROJ version 8.1.1
EPSG Registry database version v10.028 (2021-07-07)
GEOS version 3.9.1-CAPI-1.14.2
SQLite version 3.35.2
PDAL version 2.3.0
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.6
QScintilla2 version 2.11.5
OS version macOS 11.6

Supported QGIS version

New profile

Additional context

No response

nicogodet commented 1 year ago

Could you provide a sample project to reproduce ?

caspersauce commented 1 year ago

Attached is a test project. The labels outside the group render properly, the labels inside the "layers render as a group" do not render properly.

test 2.zip

troopa81 commented 1 year ago

regarding mask issue, I started to work on fixing #34352. I have to pause for a while now, but once I finished, I'll check if it fixes this issue.

caspersauce commented 1 year ago

Thanks for the update. I have confirmed this issue in both linux and on previous version 3.24.3, so it is not isolated.

I look forward to an update as this will stop my project using QGIS. I sadly need to take advantage of both masking of labels and of polygons by using the "render layers as a group" and "inverse mask below" option.