Skip to content

Crashes on Meta Quest Headsets #27

@elogmsg

Description

@elogmsg

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:

  1. Crash occurs when headset is removed and put back on
  2. 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)
  3. Unplugging the USB capture card causes crash
  4. 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).

Screenshot of Logcat capture:
Image

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions