-
Notifications
You must be signed in to change notification settings - Fork 22
Description
I've been able to integrate the plugin and have it display capture cards onto Meta Quest headsets via USB-C port. However, crashes occur under the following conditions:
- Crash occurs when headset is removed and put back on
- Placing headset on charging dock causes crash on Quest 3 (3S doesn't have the charging pins so it cannot be charged while USB capture card is connected)
- Unplugging the USB capture card causes crash
- Generally, crashes while using feature no more than 60 seconds.
Based on information gathered from Android Logcat, it seems the plugin crashes the entire app, possibly due to unhandled condition when USB capture card is being used and the USB connection drops (either physically detached or virtually disconnected by OS).
Since we don't have access to the source code of unityuvcplugin we are limited to how we can handle this crash. I've wrapped all code that interacts with the plugin in try-catch blocks in hopes of preventing the crash, but the plugin still crashes the app. I've also added code to cease all USB capture card related operations when our code detects the USB capture card was detached, but that does not prevent crashes; we see our code executing to stop using the USB capture card, but the crash still occurs after.
Based on the screenshot provided, is there any way to prevent the plugin from crashing the entire app from the conditions described above? Would it be possible to gain access to the unityuvcplugin source code so we can patch the cause of the crash?
