Skip to content

notification registration route to base sensor - #5665

Merged
dorodnic merged 2 commits into
realsenseai:developmentfrom
cchen6:reloc_notification
Mar 5, 2020
Merged

notification registration route to base sensor#5665
dorodnic merged 2 commits into
realsenseai:developmentfrom
cchen6:reloc_notification

Conversation

@cchen6

@cchen6 cchen6 commented Jan 16, 2020

Copy link
Copy Markdown
Contributor

Bug #5479

Cause: relocalization notification callback registration happens before record_sensor::hook_sensor_callbacks() is called which is to register stream callback. The stream callback registration overwritten m_user_notification_callback that has been registered as reloc notification callback. That caused recursive call on on_notification() and will crash App.

Fix: register notification callback to base sensor before record_sensor::hook_sensor_callbacks() is called which is to register stream callback.

@cchen6
cchen6 requested a review from ev-mp January 16, 2020 22:25
@dorodnic
dorodnic merged commit 20f95cf into realsenseai:development Mar 5, 2020
@radfordi radfordi mentioned this pull request Mar 18, 2020
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