VLC for Android (3.3.3) crashes while playing back a HLS stream from an M3U playlist on Android TV
I can reproduce the problem with the official 3.3.3 release and the current nightly from https://artifacts.videolan.org/vlc-android/nightly-armv7/VLC-Android-3.3.3-armv7-20201231-0118.apk. I'll attach logs from both tests.
I used an M3U8 playlist file from this source: https://onlinestream.live/rtl2/online/6142-1
I'll attach the playlist as well. It's content looks like this:
#EXTM3U
#EXTINF:-1,([#1](https://code.videolan.org/videolan/vlc/-/issues/1)) - RTL2 (HD)
https://stream.y5.hu:443/stream/stream_rtl2/hls1/stream.m3u8
To reproduce, I merely opened the locally saved (in /sdcard/Downloads/rtl2.m3u) playlist in VLC. After a few seconds of successful playback, VLC crashes and crashlog+logcat are saved.
The stacktrace for the error causing the crash is:
java.lang.IllegalArgumentException: Invalid position 4 requested
at androidx.leanback.app.BrowseSupportFragment.createMainFragment(BrowseSupportFragment.java:579)
at androidx.leanback.app.BrowseSupportFragment.replaceMainFragment(BrowseSupportFragment.java:1552)
at androidx.leanback.app.BrowseSupportFragment.setSelection(BrowseSupportFragment.java:1542)
at androidx.leanback.app.BrowseSupportFragment$SetSelectionRunnable.run(BrowseSupportFragment.java:257)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6680)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
at Android.MODEL(MIBOX4)
at Android.VERSION(9)
at Android.FINGERPRINT(Xiaomi/oneday/oneday:9/PI/2696:user/release-keys)
Note that I couldn't reproduce the problem on a Samsung Galaxy S10 (using the same VLC version). The issue occurs only on my Xiaomi Mi Box S running Android TV. The Android version is 9, the build number is 2696 (security patch level: April 5th 2020).
I tried various settings for "Hardware Acceleration", but it made no difference.