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 crash in NTP servers GUI dialog on late network configuration #3252
Fix crash in NTP servers GUI dialog on late network configuration #3252
Conversation
Resolves: rhbz#1938168
The crash happens when trying to update an iterator from the Gtk model for list of NTP servers after the iterator becomes invalid (by clearing the model):
The issue is hit when the ntp_server_working takes too long (5 secs), ie longer than the time between entering the spoke and opening the NTP configuration dialog. For example when networking is configured later in the installation (like just before NTP configuration). The crash showed with this If the Seems to be related also to this change #2468 I think the safe fix for rhel8-branch would be checking the validity of iterator before using it as in this PR. In case of invalid itr there is no action so I think even the result should be correct. We could probably also remove the model refresh (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thank you! And sorry for breaking it.
I'm actually amazed that we keep an iterator in the asynchronous call instead of just the server hostname. But I guess it's understandable how this came to be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great work!
Thank for solving issue and record |
Resolves: rhbz#1938168