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 potential infinite loop (create renderer -> refresh -> create renderer) in menu item #4105

Merged
merged 1 commit into from
Jul 30, 2023

Conversation

andydotxyz
Copy link
Member

This was uncommon but could happen.
CreateRenderer should never initiate a Refresh as it can always reach this infinite loop.

Checklist:

  • Tests included. <- not possible in test driver with its threading model
  • Lint and formatter run with no errors.
  • Tests all pass.

@coveralls
Copy link

Coverage Status

coverage: 66.188% (+0.005%) from 66.183% when pulling 4669b0f on andydotxyz:fix/menusetuploop into fe90859 on fyne-io:develop.

Copy link
Member

@Jacalz Jacalz left a comment

Choose a reason for hiding this comment

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

Looks good. I think this might solve #4086 but I'm not sure. Started fyne_demo around 30 times without it happening. I am not sure how often it occurred before so it is hard to say if it was just a coincidence or not.

@andydotxyz andydotxyz merged commit 082c2be into fyne-io:develop Jul 30, 2023
11 checks passed
@andydotxyz andydotxyz deleted the fix/menusetuploop branch July 30, 2023 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants