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

Layer is still visible after un-checking (while canvas is rendering) #17043

Closed
qgib opened this issue Jul 6, 2013 · 11 comments
Closed

Layer is still visible after un-checking (while canvas is rendering) #17043

qgib opened this issue Jul 6, 2013 · 11 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience

Comments

@qgib
Copy link
Contributor

qgib commented Jul 6, 2013

Author Name: Donovan Cameron (@saultdon)
Original Redmine Issue: 8231
Affected QGIS version: 1.8.0
Redmine category:gui


If I uncheck a layer to stop it from being visible while the canvas is rendering, it doesn't actually turn it off.

Zooming, panning or refreshing the canvas with the layer checked off keeps it visible. I would think that panning and zooming would then not draw the layer because it's unchecked in the TOC.

The solution is to check it back on, then uncheck it. Or, just don't uncheck it while the canvas is rendering - wait till rendering is complete or press then uncheck it.

@qgib
Copy link
Contributor Author

qgib commented Jul 10, 2013

Author Name: Matthias Kuhn (@m-kuhn)


Do you have render caching enabled (In settings => Options => Rendering)?
It is known to cause such effects.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Jul 10, 2013

Author Name: Donovan Cameron (@saultdon)


Hey Matt.

I checked and don't have render caching enabled on QGIS 1.8.

I'm noticing that if you toggle the visibility for a layer while the canvas is rendering, those changes aren't applied. In fact toggling visibility while the canvas is rendering doesn't affect rendering, the canvas will finish rendering what it was originally trying to render instead of cancelling the current render and restarting.

I have to wait till everything is finished rendering (or press to cancel rendering), then toggle the visibility.

@qgib
Copy link
Contributor Author

qgib commented Jul 10, 2013

Author Name: Giovanni Manghi (@gioman)


Donovan Cameron wrote:

Hey Matt.

I checked and don't have render caching enabled on QGIS 1.8.

I'm noticing that if you toggle the visibility for a layer while the canvas is rendering, those changes aren't applied. In fact toggling visibility while the canvas is rendering doesn't affect rendering, the canvas will finish rendering what it was originally trying to render instead of cancelling the current render and restarting.

I have to wait till everything is finished rendering (or press to cancel rendering), then toggle the visibility.

maybe this is somehow related to the fact that also the "show all layers" and "hide all layers" functions are not working?

@qgib
Copy link
Contributor Author

qgib commented Jul 10, 2013

Author Name: Donovan Cameron (@saultdon)


Giovanni Manghi wrote:

maybe this is somehow related to the fact that also the "show all layers" and "hide all layers" functions are not working?

Looks like that one is actually behaving a little differently.

If you Show All Layers (ctrl+shift+U) or Hide All Layers (ctrl+shift+H) the canvas is not refreshed and the changes aren't shown immediately. But they can be if you manually press Refresh or pan/zoom.

@qgib
Copy link
Contributor Author

qgib commented Jul 10, 2013

Author Name: Donovan Cameron (@saultdon)


#16933 is the bug for that "All Layers" issue =)

@qgib
Copy link
Contributor Author

qgib commented Dec 12, 2013

Author Name: X X (X X)


I am having the same problem. It occurred in QGIS 1.8 and still seems to exist in 2.0. I think it is related to #17175 (sorry I am new to this and don't know how to link bug reports). It only seems to happen when there are many layers (e.g. more than 40) in a document and doesn't just happen when the canvas is rendering after a pan or zoom. I should note these are all PostGIS layers, but I will try to reproduce the issue with shapefiles.

Our current work-around is to click a layer name to highlight it in the table of contents, wait for QGIS to refresh, and then turn the check-box on or off. If you simply click the check box it will check/uncheck, but the layer won't actually turn off/on in the map canvas. I've been trying to figure out more information on the cause (e.g. enabled and disabled render caching), but haven't had any luck, sorry!

@qgib
Copy link
Contributor Author

qgib commented Dec 13, 2013

Author Name: Giovanni Manghi (@gioman)


Brett Z wrote:

I am having the same problem. It occurred in QGIS 1.8 and still seems to exist in 2.0. I think it is related to #17175 (sorry I am new to this and don't know how to link bug reports). It only seems to happen when there are many layers (e.g. more than 40) in a document and doesn't just happen when the canvas is rendering after a pan or zoom. I should note these are all PostGIS layers, but I will try to reproduce the issue with shapefiles.

Our current work-around is to click a layer name to highlight it in the table of contents, wait for QGIS to refresh, and then turn the check-box on or off. If you simply click the check box it will check/uncheck, but the layer won't actually turn off/on in the map canvas. I've been trying to figure out more information on the cause (e.g. enabled and disabled render caching), but haven't had any luck, sorry!

I have just tested on Linux/qgis master, with a huge projects (>100 layers) and cannot replicate the issue.

@qgib
Copy link
Contributor Author

qgib commented Dec 13, 2013

Author Name: X X (X X)


I tested it some more and found it only occurs when there are PostGIS layer in the document. I tried a project with almost 100 SpatiaLite layers in it and there was no problem; however, as soon as I added one PostGIS layer the problem started occurring (even when turning on or off the SpatiaLite layers). We have 2 PostGIS servers and the problem occurs with layers from either of them. I'm going to try connecting to a clean PostGIS install in a virtual machine on my local computer to see if the problem still occurs...

@qgib
Copy link
Contributor Author

qgib commented Dec 13, 2013

Author Name: Giovanni Manghi (@gioman)


Brett Z wrote:

I tested it some more and found it only occurs when there are PostGIS layer in the document. I tried a project with almost 100 SpatiaLite layers in it and there was no problem; however, as soon as I added one PostGIS layer the problem started occurring (even when turning on or off the SpatiaLite layers). We have 2 PostGIS servers and the problem occurs with layers from either of them. I'm going to try connecting to a clean PostGIS install in a virtual machine on my local computer to see if the problem still occurs...

This is weird, because again (by adding postgis layers to my big projects) I can't confirm it (in qgis master).

@qgib
Copy link
Contributor Author

qgib commented Dec 13, 2013

Author Name: X X (X X)


Thanks Giovanni... I couldn't figure out why you weren't able to replicate the issue, when all 20+ QGIS users here (and may people online line) have it occur - but I think I've isolated it now. The problem only occurs when the "Improved Polygon Capturing" plug-in is enabled in the 32-bit version and there are PostGIS layers in the document - a fairly unique situation, which explains why it wasn't occurring for you. We will simply disable this plugin when not being used, and your help troubleshooting is much appreciated. Hopefully this plugin can be fixed by its creator so other users don't have the same issue. Thanks again!

@qgib
Copy link
Contributor Author

qgib commented Dec 14, 2013

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to invalid
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! GUI/UX Related to QGIS application GUI or User Experience labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
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! GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

No branches or pull requests

1 participant