Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Log when exception occur in device sources #436

Merged
merged 2 commits into from
Jul 3, 2020

Conversation

djee-ms
Copy link
Member

@djee-ms djee-ms commented Jul 1, 2020

Catch exceptions when failing to create a device track source in WebcamSource
and MicrophoneSource components, and log the exception with its callstack along
with an error message with the component name.

This is a clean-up loosely related to #335, though the code triggering that
issue has been changed so the issue does not occur anymore.

@djee-ms djee-ms requested a review from fibann July 1, 2020 16:36
@djee-ms djee-ms self-assigned this Jul 1, 2020
@djee-ms djee-ms mentioned this pull request Jul 1, 2020
Catch exceptions when failing to create a device track source in
WebcamSource and MicrophoneSource components, and disable the component
before re-throwing the exception to get Unity to log it. This ensures
that the components are disabled for consistency.

This is a clean-up loosely related to microsoft#335, though the code triggering
that issue has been changed so the issue does not occur anymore.
@djee-ms djee-ms changed the title Disable device sources when exception occur Log when exception occur in device sources Jul 3, 2020
@djee-ms djee-ms merged commit 338882f into microsoft:master Jul 3, 2020
@djee-ms djee-ms deleted the unity_exceptions branch July 3, 2020 12:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants