Skip to content

Benchmark: medialibrary segfault when restarting VLCInstance

Description

When the benchmark plays a video in hardware decoding, the android_display vout is forced for the OPENGL setting. This triggers the restart of the VLCInstance for the change to take place. During this restart, a segfault now occurs in the medialibrary when setting the vlc instance.

Actual behavior

Stacktrace: see joint file medialib_segfault.log

Steps to reproduce

  1. In the VLCBenchmark project (master), set vlc_bench_file_location="ftp://skantes.com/benchmark/easy-hardware" in the gradle.properties, this sets the benchmark for only one hardware playback test
  2. Then install the benchmark and run it. For some reason, it doesn't crash all the time but at least 9/10 times

Context

App version

It was reproduced on the master (f71e587b) and c161eb43 which was the commit where I fixed an issue on androidtv and at that point it was still working.

Device model

FreeBox pop, pixel 3a (Android_12), mibox3 (Android_9).

App mode

Smartphone and TV

Edited by Duncan McNamara