Skip to content

Fix exceptions when closing the viewer - #12554

Merged
Nir-Az merged 3 commits into
realsenseai:developmentfrom
OhadMeir:development
Jan 7, 2024
Merged

Fix exceptions when closing the viewer#12554
Nir-Az merged 3 commits into
realsenseai:developmentfrom
OhadMeir:development

Conversation

@OhadMeir

@OhadMeir OhadMeir commented Jan 4, 2024

Copy link
Copy Markdown
Contributor

options-watcher query loop exposed some problems when closing the application.
Querying options while in the destruction process exposed some race cases where option tried to query a sensor reference that was already destructed.

Now the subdevice-model cancels the on_options_changed subscription and options use weak_ptr to sensor not direct reference.

@OhadMeir
OhadMeir requested a review from Nir-Az January 4, 2024 15:06
@OhadMeir
OhadMeir marked this pull request as ready for review January 4, 2024 15:06
Comment thread src/ds/d500/d500-device.cpp Outdated
Comment thread src/ds/ds-options.cpp
Comment thread src/ds/ds-options.h
Comment thread src/syntethic-options-watcher.h
@Nir-Az
Nir-Az merged commit 12f5a7e into realsenseai:development Jan 7, 2024
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