Page 1 of 1

VLC/LibVLC DeadLock on connection lost

Posted: 23 Sep 2019 10:09
by MikOfClassX
Hi, I am experiencing a deadlock when playing internet streams on unstable connections.

Simple test case ( vlc win 3.0.8 ):
- open VLC and add this sample source:

Code: Select all

http://interalmeria.tv/directo/live.m3u8
, play it.
- disconnect the network cable. VLC will consume buffers and then will hang on a frame.
- check the CPU. Will be very high for VLC.
- re-connect the cable. VLC still hangs. You'll have to kill it from task manager.

The same applies with libVLC.
I'm not getting notifications about errors (libvlc_MediaPlayerEncounteredError), so I can't recover or try to notify users that something is wrong.

Cheers,
Mik

Re: VLC/LibVLC DeadLock on connection lost

Posted: 23 Sep 2019 18:57
by RĂ©mi Denis-Courmont
Get a symbolic trace and file a bug.

Re: VLC/LibVLC DeadLock on connection lost

Posted: 24 Sep 2019 10:47
by MikOfClassX
Tried to get the trace with GDB

- With "target exec", VLC is no longer capable to open the stream [url]http://interalmeria.tv/directo/live.m3u8[/url].
- Attaching to the VLC process after starting VLC (stream running now), will hang VLC.

So, no way to get the trace. I'm using VLC debug version vlc-3.0.8-20190822-0510

Anyway the test is very simple. How can I help ?

Cheers,

Mik