Hello,
I have the following issue since forever with VLC. I can reproduce this with 90% chance if I let a live stream run. Over time, VLC will just force close or get stuck and you cant close it anymore but via task manager (Windows).
I hav reported this issue several times, but no VLC dev ever was interested in looking into this.
To me, the issue seems to be the name resolver of VLC, being "too picky". Either the time window is too strict or there is some strange bug with it.
The issie is, when watching a live stream, for example a twitch.tv live stream via an m3u8 file. The packets of the stream are reloaded and also resolved every 5-10 seconds or so, and with every resolve, there is a chance, VLC will crash. If I watch over LAN it never happens (happened too sometimes, but really really rare). But it happens often over WLAN. It seems to me, the higher the "chance" for a packet loss, the higher the chance VLC will crash when it wants to resolve.
Looks to me that the current implementation of resolving hosts and/or connecting to hosts is buggy or badly optimized/programmed in the following way
- seems VLC just will resolve 1 time, not trying more, if the one resolve or connect fails, it will close the stream and close itself (and then also crash with a high chance)
- seems there is no DNS cache, it resolves the same host every single time
The crash thing is another issue which I can reproduce with this very often. VLC will just stay in systray and wont be able to close via exit/close just via kill in task manager. This doesnt happen everytime, but very often, after a DNS resolve fails and VLC stays open with black screen and cant be closed anymore, even the GUI is responding.
Is there maybe some console command or some hidden option for TTL or retries of DNS resolve in the VLC settings?
How to extract m3u8 for a twitch.tv live stream: https://pwn.sh/tools/getstream.html