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

Fix race condition when rendering the UI (#304) #307

Closed

Conversation

darksylinc
Copy link
Contributor

Summary

This fix also depends on on a fix in ign-gazebo so that it now can call
SwapFromThread, otherwise the race condition will still happen.

At the current moment, the implementation is very wasteful creating many
more RenderTargets than needed (because 2 workspaces are created).
This issue will be fixed in the next commit

Affects #304

🦟 Bug fix

Fixes #304

Checklist

  • Signed all commits for DCO

This fix also depends on on a fix in ign-gazebo so that it now can call
SwapFromThread, otherwise the race condition will still happen.

At the current moment, the implementation is very wasteful creating many
more RenderTargets than needed (because 2 workspaces are created).
This issue will be fixed in the next commit

Affects gazebosim#304

Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
@chapulina
Copy link
Contributor

Hi @darksylinc, are you still planning to work on this PR? Let us know how we can help. Thanks!

@darksylinc
Copy link
Contributor Author

Hi!

Not at the time. The race condition was fixed by another PR.

The PR that fixed it forced serialization (which is like brute forcing this thing). This PR wanted to preserve parallelism.

However there are several issues unaddressed (synchronizing important events like window resizes, fixing how Qt/Ign threads pass around data to avoid potential deadlocks), our efforts are being focused on higher priority tasks. What we have now is "good enough"

@darksylinc darksylinc closed this Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏢 edifice Ignition Edifice
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition between Qt and Ogre2 in presentation
2 participants