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

Avoid freeze when opening feature form with many relation reference widgets #59625

Merged

Conversation

m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented Nov 28, 2024

When opening a feature form with many relation widgets, background threads to populate the boxes are spawned.
At the same time, we also get the current feature from the main thread, which may be blocked by the background threads if they use get_feature or similar expressions which require calls to be executed on the main thread.

The following video demonstrates the problem:
get_feature

By setting the requestMayBeNested flag, we make sure that the main thread will get a connection in any case.

Copy link

github-actions bot commented Nov 28, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit a8c26aa)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit a8c26aa)

@m-kuhn m-kuhn changed the title Avoid freeze when opening feature form with many relation widgets Avoid freeze when opening feature form with many relation reference widgets Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants