Skip to content

Fix SW update crash on Viewer - #7323

Merged
maloel merged 2 commits into
realsenseai:developmentfrom
Nir-Az:Fix_SW_update_crash_on_viewer
Sep 14, 2020
Merged

Fix SW update crash on Viewer#7323
maloel merged 2 commits into
realsenseai:developmentfrom
Nir-Az:Fix_SW_update_crash_on_viewer

Conversation

@Nir-Az

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

Copy link
Copy Markdown
Collaborator

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
Comment thread common/model-views.cpp

versions_db_manager _versions_db;
update_profile _update_profile;
bool _keep_trying;

Copy link
Copy Markdown
Contributor

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;

@maloel maloel Sep 14, 2020

Copy link
Copy Markdown
Contributor

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 realsenseai: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