Using VideoPlayer is crashing application

I'm attempting to use the Unity built in VideoPlayer and it's crashing the application to the shell. I can try to track down if it's when it's actually calling Play() and not just trying to load the video but regardless this code was in use when we were on the ML1.

Unity 2022.2b4
ML2 august (721)
ML SDK 0.53.2

Error messages from logs (syntax-highlighting is supported via Markdown):
2022-08-18 03:59:33.326;10098;11692;11713;Info;Unity;[36.6s] [0MB] <4/200t> Received request to play video located at /storage/emulated/0/Android/data/com.taqtile.Manifest/files/g5WRvVtGGEsCHUZd57fgeW4Hr.mp4;
2022-08-18 03:59:33.326;10098;11692;11713;Info;Unity;Setting filename of VideoPlayer to /storage/emulated/0/Android/data/com.taqtile.Manifest/files/g5WRvVtGGEsCHUZd57fgeW4Hr.mp4;
2022-08-18 03:59:33.326;10098;11692;11713;Info;Unity;Setting rendermode;
2022-08-18 03:59:33.327;10098;11692;11713;Info;Unity;Preparing;
2022-08-18 03:59:33.327;10098;11692;11713;Info;Unity;Setting frame;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;Version '2022.2.0b4 (ecac8c2f6be0)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'x86_64';
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;Build fingerprint: 'ml/demophon_aosp/demophon:10/B3E.220721.07-R.026/27:user/test-keys';
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;Revision: '0';
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;ABI: 'x86_64';
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;Timestamp: 2022-08-18 03:59:33.617838503+0000;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;pid: 11692, tid: 11713, name: UnityMain >>> com.taqtile.Manifest <<<;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;uid: 10098;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;Cause: null pointer dereference;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;rax 0100000200000000 rbx 00007645e1cf8d98 rcx 00007646048bc710 rdx 0000000000000000;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;r8 0000000000000000 r9 00007646048bbcc0 r10 0000000000000000 r11 0000000000000000;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;r12 00007646048bc710 r13 000076452569f3c0 r14 0000000000000000 r15 0000000000000000;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;rdi 0000000000000060 rsi 0000000000000000;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;rbp 00007646048bc5b0 rsp 00007646048bc4d0 rip 00007645e744bac0;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;backtrace:;
2022-08-18 03:59:33.617;10098;11692;11713;Error;CRASH;#00 pc 0000000000380ac0 /vendor/lib64/hw/vulkan.mero.so (BuildId: 4e4c8bfee5538e0f90fc0ab1a6fd67fdc8ba1a3d);
2022-08-18 03:59:33.618;10098;11692;11713;Error;CRASH;#01 pc 00000000003809a5 /vendor/lib64/hw/vulkan.mero.so (BuildId: 4e4c8bfee5538e0f90fc0ab1a6fd67fdc8ba1a3d);
2022-08-18 03:59:33.760;10098;11692;11713;Error;CRASH;Tombstone written to: /storage/emulated/0/Android/data/com.taqtile.Manifest/files/tombstone_01;
2022-08-18 03:59:33.771;10098;11976;11976;Error;CRASH;Forwarding signal 6;

1 Like

Hi @peter.nolen
The standard Unity Video Player component is incompatible with the ML2. Please use the MLMediaPlayerBehavior component instead. For an example of how to use this component, see our Unity Examples project, downloadable through the lab.

1 Like