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

Only use threaded legend hit test for preview renders #58927

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nyalldawson
Copy link
Collaborator

In other cases we'll need a blocking hit test anyway, and we run a risk of deadlocks if a non-preview render is then started on the main thread.

Fixes #58496

Copy link

github-actions bot commented Oct 1, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit b12342b)

Copy link
Contributor

@troopa81 troopa81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this logic still needed ?

If this is preview,we don't wait, and if this is not, there is no thread anymore to wait with your proposal

@nyalldawson
Copy link
Collaborator Author

@troopa81

Is this logic still needed ?
If this is preview,we don't wait, and if this is not, there is no thread anymore to wait with your proposal

Indeed it's not -- I've revised it now to what should be a safe alternative

In other cases we'll need a blocking hit test anyway, and we
run a risk of deadlocks if a non-preview render is then started
on the main thread.

Fixes qgis#58496
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Layout Legend Not Syncing with Atlas in QGIS 3.34 LTR and 3.38 Using PyQGIS
2 participants