Instant crashing on Android using VLCPlayerExample
We did not modify the VLCPlayerExample, and building for Android, we were attempting to play a livestream video from YouTube (HLS).
Works in editor using the demo x86_64 libraries, but when we tried on Android (Meta Quest 2 device) the player would instantly crash when launching VCLUnity:
2022/05/20 11:58:36.651 12883 12906 Info VLCUnity [VLC-Unity] LAUNCH
2022/05/20 11:58:38.417 12883 12906 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/05/20 11:58:38.417 12883 12906 Error CRASH Version '2020.3.4f1 (0abb6314276a)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2022/05/20 11:58:38.418 12883 12906 Error CRASH Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/28467500712000000:user/release-keys'
2022/05/20 11:58:38.418 12883 12906 Error CRASH Revision: '0'
2022/05/20 11:58:38.418 12883 12906 Error CRASH ABI: 'arm64'
2022/05/20 11:58:38.418 12883 12906 Error CRASH Timestamp: 2022-05-20 11:58:38-0700
2022/05/20 11:58:38.418 12883 12906 Error CRASH pid: 12883, tid: 12906, name: UnityMain >>> com.lablaco.spinxr <<<
2022/05/20 11:58:38.418 12883 12906 Error CRASH uid: 10104
2022/05/20 11:58:38.418 12883 12906 Error CRASH signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7288cc4388
2022/05/20 11:58:38.418 12883 12906 Error CRASH x0 0000000000000000 x1 0000000000000084 x2 000000737906647a x3 0000000000000010
2022/05/20 11:58:38.418 12883 12906 Error CRASH x4 000000737906648a x5 0000000000000002 x6 0000000000000030 x7 00000072926fa334
2022/05/20 11:58:38.418 12883 12906 Error CRASH x8 0000007288cc4388 x9 0000000000000001 x10 00000072926fa8e8 x11 0000000000000000
2022/05/20 11:58:38.418 12883 12906 Error CRASH x12 0000007378fa8e08 x13 0000000000000001 x14 00000072926fa740 x15 000000008000002f
2022/05/20 11:58:38.418 12883 12906 Error CRASH x16 000000000ccccccc x17 00000072926fa7c0 x18 000000727fde7000 x19 00000072926fa8f8
2022/05/20 11:58:38.418 12883 12906 Error CRASH x20 0000000000000000 x21 00000072926fa338 x22 0000000000000073 x23 000000711e9d990f
2022/05/20 11:58:38.418 12883 12906 Error CRASH x24 00000072926fa350 x25 00000072926fa32d x26 000000007fffffff x27 0000000000000000
2022/05/20 11:58:38.418 12883 12906 Error CRASH x28 000000711e9d990f x29 00000072926fa870
2022/05/20 11:58:38.418 12883 12906 Error CRASH sp 00000072926fa110 lr 00000072926fa2fc pc 0000007379036dfc
2022/05/20 11:58:38.418 12883 12906 Error CRASH
2022/05/20 11:58:38.418 12883 12906 Error CRASH backtrace:
2022/05/20 11:58:38.418 12883 12906 Error CRASH #00 pc 00000000000b4dfc /apex/com.android.runtime/lib64/bionic/libc.so (__vfprintf+716) (BuildId: ab533d6a94dd08f64b590b2e3331c6e9)
2022/05/20 11:58:38.418 12883 12906 Error CRASH #01 pc 00000000000d0364 /apex/com.android.runtime/lib64/bionic/libc.so (getc+4) (BuildId: ab533d6a94dd08f64b590b2e3331c6e9)
2022/05/20 11:58:38.595 12883 12906 Error CRASH Tombstone written to: /storage/emulated/0/Android/data/com.lablaco.spinxr/files/tombstone_00
Digging into the crash dump, it seems it was failing to open the uri path provided:
memory near x23:
000000713249de98 64656c6961662063 6e65704f44564400 c failed.DVDOpen
000000713249dea8 68746150656c6946 445644646e69663a FilePath:findDVD
000000713249deb8 20732520656c6946 440064656c696166 File %s failed.D
000000713249dec8 69466e65704f4456 643a68746150656c VDOpenFilePath:d
000000713249ded8 5f7475706e696476 207325206e65706f vdinput_open %s
000000713249dee8 440064656c696166 69466e65704f4456 failed.DVDOpenFi
000000713249def8 643a68746150656c 20656c69665f6476 lePath:dvd_file
000000713249df08 6620636f6c6c616d 73250064656c6961 malloc failed.%s
000000713249df18 545f4f454449562f 69762f7325002f53 /VIDEO_TS/.%s/vi
000000713249df28 002f73745f6f6564 65732074276e6143 deo_ts/.Can't se
000000713249df38 6c62206f74206b65 00006425206b636f ek to block %d..
000000713249df48 0032193f3a2c1d15 6f2074276e61431c ..,:?.2..Can't o
000000713249df58 656c6966206e6570 545f4f4544495620 pen file VIDEO_T
000000713249df68 6669002e73252e53 474d566e65704f6f S.%s..ifoOpenVMG
000000713249df78 766e49203a292849 69616d2064696c61 I(): Invalid mai
000000713249df88 4920756e656d206e 4544495628204f46 n menu IFO (VIDE