python-vlc icon indicating copy to clipboard operation
python-vlc copied to clipboard

Crash when using VLC 3.0.13-16

Open Neraste opened this issue 4 years ago • 3 comments

The wrapper crashes when using recent versions of VLC:

VLC: 3.0.13 (cannot reproduce with MWE), 3.0.14, 3.0.15, 3.0.16 OS: Windows 10, Linux 5.12.2-1 Python: 3.8, 3.9

for this test code:

import vlc
i = vlc.Instance()
p = i.media_player_new()
m = i.media_new_path("C:\\path\\to\\file")
p.set_media(m)
p.play()
input()
p.stop()
input()

Crash happens on the stop call.

On my Windows machine, it crashes silently with the return value -1073741819. On a more complex code, I get the reason: Windows fatal exception: access violation.

On my Linux machine, it crashes with the return value 139. On a more complex code, I get the reason: Fatal Python error: Segmentation fault.

It looks like something changed on the libvlc side and this wrapper cannot follow.

Neraste avatar May 13 '21 17:05 Neraste

Updated for 3.0.15 and 3.0.16.

Neraste avatar Jun 27 '21 09:06 Neraste

I will have a look at this when the appropriate version of libvlc lands into Debian testing. For the moment, it is still 3.0.12, and 3.0.16 is in unstable.

oaubert avatar Jun 27 '21 10:06 oaubert

It seems like the problem does not occur anymore for VLC 3.0.17.

Neraste avatar Apr 28 '22 12:04 Neraste