-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Label masking and composer export bug #50543
Comments
Could you share a project with sample data? |
On Windows 10, the issue doesn't occur using QGIS 3.22.12, while it does using QGIS 3.28.0 and the latest QGIS 3.29.0-Master (2a3cdfd). |
I imagine it's related to #47459 which appears on 3.26. In 3.22, the result must be fully rasterized even if you select the option full vector when exporting. @C4pT4in0bvi0u5 You can disable the full vector export options, it would certainly work and you'll have your masks, but the result will be fully rasterized. Thanks for the project sample and data, I'll try to take a look at it when I get the time (not quite soon I'm afraid). |
@troopa81 I don't see any "rasterize" or "vector" options when printing from layout or exporting to PNG. So not sure what exactly you're talking about. I seem to remember a "vector" setting for PDF somewhere, but this is not a problem that is limited to PDF. Doesn't matter anyway, because there is clearly a problem with printing/exporting in 3.26 and up. Just use 3.22.12 if you want something that works. Trying to find workarounds seems pointless to me. |
There is clearly an issue, but I would like to be sure it's only related to export with full vector option (see this comment) and it's the same issue than #50785 Are you sure that you have the issue when you export in PNG ? If yes, could you please share the stacktrace when it crashes! |
Yes, the issue occurs exporting in PNG. |
Yes. Quite sure.
No idea how to get a stacktrace. This is NOT a difficult problem to reproduce. |
A duplicate issue report contains a stack trace: #50785 (comment). |
Hi! |
Yes, like I said in this comment, and contrary to what I thought, there is no way to have a full raster-only rendering, and the vector way of rendering selective masking is very slow. I try to find a solution to this. |
I too seem to have run into this problem. When using label masking and exporting as raster file, i sometimes get the crash (without any error popping up). It seems to be an intermittent issue, so maybe related to memory handling? If needed i can help test any bug fix or provide more details on the problem. |
I have the same issue, map size goes from 3MB to 98.6MB. If I mask additional layers with my unique mask, it crashes while exporting. |
Are there any news on this very annoying bug, that practically renders inusable a great deal of Qgis? |
Same for us, a big cartographic agency in Germany: selective masking is a great feature of QGIS, but we have to stay at version 3.22 to export the maps in a raster format. In future hopefully also in vector format. Would be great to see progress with this bug. |
See also: #55874. |
How's it going with this? This problem is still very annoying since I still have to use 3.24.3 in order to export images from QGIS. It's been over two years now... Since then we're using silicon Macs and with the new ARM64 versions of QGIS which is so much faster. But this new version still can't export images. |
I failed to find the time to work on this in the previous bug fix round. |
I emailed you the other day to see if you could get an estimate on fixing this. Did you get it? |
Hello, |
Long time problem(s). Several time closed "because no activity in thread". |
Maybe we could go together and finance this? @troopa81 is interested to help out. |
This issue repor was never been closed. |
QGIS v3.38.0RC is confirmed working. Thank you for fixing this huge bug! [EDIT:} Nope, still glitching. See below. |
@troopa81, I think this issue report can be closed now. |
You should try switching to the new geometry based backend, which will give much better results on QGIS 3.38+ (and MUCH better results on 3.38.1, when that's released.) From the Python console enter:
|
All modifications brought recently by @nyalldawson are non default, so I'm wondering how it could actually work. I'm hesitating at closing this, because I think the issue still exists. @nyalldawson What do you think? |
3.38.0 took a bloody long time to finish rendering... but it completed the render, gave me a usable file, and didn't crash. That's progress. I'm using QGIS in stock configuration. To be fair, as there has been basically no activity on this bug for the last 2 years, I had no reason to check every QGIS version that came out. I've been using the known-working 3.22.12 version. So perhaps the crashing issue was "accidentally" fixed before now? |
@C4pT4in0bvi0u5 can you confirm you tried with the qsettings switch to the new backend? |
Trying v3.38.0RC again today, and it's back to it's old tricks. Crashes after 2 minutes.
When it worked yesterday, the progress bar on the bottom of the QGIS window showed grey (0% complete) throughout the operation. Today when it doesn't work, the progress bar is blue (100% complete) throughout the operation. Not sure if this means anything, but it's just something I noticed. The big mystery is: why did it work yesterday? Here's the project I used (slightly more refined version of the last one I posted): temp QGIS project 2.zip (Yes I know the project is crude. This is a test file.) |
@C4pT4in0bvi0u5 can you try with the build from #57839 (comment) ? Here's a (realtime!) screen recording of exporting the layouts from your sample project using that build: Peek.2024-06-25.10-25.mp4 |
From my last post:
I have not tried the build from the other thread. The one I've been trying in the past couple days is 3.38.0-1 from https://download.osgeo.org/qgis/win64/ I will download and try the other build. |
If everything still works tomorrow, we might be making progress here! |
Tried again today with a different map project in the 'backport' QGIS version, and both rendering methods still function properly (new/old backends). Render times between the 2 methods were very similar to each other. Reasonably quick renders: Seconds, not minutes or hours. The important thing is that everything seems to work. That's a win, IMHO. |
I have been having this issue for a while, and managed to isolate it to issues with the mask feature. Most simple scenario: New project using QGIS LTR 3.34.8: Attaching project file as GPKG: |
@est987 please test with 3.38.1 -- these issues should be resolved. Please open a new issue if you can still reproduce on 3.38.1 |
Reproduced issue also in 3.38.1: |
What is the bug or the crash?
Context : Hiking map with a lot of labels (lakes, peak, saddle, places, ...) and OSM road network.
labels have an active mask property on the road network.
When the Label masking property is activate on road network, an export with composer taker very long time or crash. When the property is disable no problem.
A try on qgis 2.22.4 and there is no problems
Steps to reproduce the issue
Label masking property enable on all label layer and active on road network. Composer export bug
Versions
2.26.3
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: