Skip to content

VLC for Unity (Android) crashes on Meta Quest 2

Summary

Playing multiple streams in multiple VLCPlayerExample components at once causes the app to crash after a few seconds on the Quest 2.

Minimal project and steps to reproduce

  1. Create a new URP unity project
  2. Add several VLCPlayerExample components and open a random stream in each via the Open(string path) method in the class
  3. build to the Quest 2.

What is the current bug behavior?

After a few seconds to about a minute of staring the app - it crashes.

Notes:

  1. The same scene is running fine in the editor.
  2. App is always running smoothly without FPS drop on the device build.
  3. Tested 6 - 40 VLCPlayerExample components at once. streams working fine, videos are playing - until the crash.

What is the expected correct behavior?

App not crashing.

Does it work on other plaforms? Does it work with the official VLC apps?

Relevant logs and/or screenshots

adb logs of when the app crahsed: Crashlog.txt Crashlog2.txt

Environment

  • OS: Android
  • Version 10
  • Device: Meta Quest 2
  • LibVLC version and architecture
  • LibVLCSharp version
  • VLC Unity plugin version: 0.1.6
  • Scripting backend used: il2cpp

Possible fixes

Don't have.

Edited by Kfir Even