Segfault after playing a second video from the library
I compiled VLC 4.0.0.0-dev with medialibrary 0.12.4 on Ubuntu 22.04 and ALT Linux Sysiphus and in both systems I observe this bug:
- I open VLC, it displays a preview of a video from the library, I click on some video and watch it
- The video ends and I am taken to the library. Then I click on any other video from the library
- At this point segfault happens
After restarting VLC the situation repeats. This is only observed in the library, regular videos play normally. In gdb debugger I see this message:
[New Thread 0x7fff8bff7640 (LWP 1151506)]
Thread 58 "vlc-vout" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff8bff7640 (LWP 1151506)] 0x00007ffff7cbef49 in SpuRenderRegion (render_date=1488162459837, subtitle_area_count=0, subtitle_area=, i_original_height=, i_original_width=, fmt=, chroma_list=, scale_size=..., scaled_pic=0x0, region=, entry=0x7fff90083f10, dst_area=, spu=0x7fff94112ed0) at video_output/vout_subpictures.c:991 991 video_output/vout_subpictures.c: No such file or directory. (gdb)
In the terminal, just segfault.
After I disabled OSD and subtitles in the settings, the crashes stopped.
And I would like to make another suggestion: after playing the video, the library opens again, however I end up at the top of the file list and have to scroll down again to the library position where I was before. It would be nice if the file list position was saved.
You can see how I compiled here.