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 SW update crash on Viewer #7323

Merged

Conversation

Nir-Az
Copy link
Collaborator

@Nir-Az Nir-Az commented Sep 13, 2020

When connecting a device the SW Update check if a new version is available,

Use a weak ptr for the SW update detached thread
Reduce the DB download tried to 1 (still 5 seconds timeout)

Tracked on [RS5-8694]

@Nir-Az Nir-Az requested a review from maloel September 13, 2020 15:36
@@ -64,6 +64,7 @@ namespace rs2

versions_db_manager _versions_db;
update_profile _update_profile;
bool _keep_trying;
Copy link
Collaborator

Choose a reason for hiding this comment

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

_failed_to_connect

}
else if (query_status == versions_db_manager::DB_LOAD_FAILURE)
{
_keep_trying = false;
Copy link
Collaborator

@maloel maloel Sep 14, 2020

Choose a reason for hiding this comment

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

// once we fail to connect, we don't want to try again -- each try is a 5-second maximum wait (e.g., when we have internet but no proxy defined) and we have several calls to try_parse_update(), meaning we could potentially wait even half a minute or more!

@maloel maloel merged commit 6769f4a into IntelRealSense:development Sep 14, 2020
@Nir-Az Nir-Az deleted the Fix_SW_update_crash_on_viewer branch September 16, 2020 11:09
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.

2 participants