VLC hangs during start and throws audio timeout error
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.9k
- Forks
- 429
- PR merge metrics
- No merged PRs in 30d
Description
Environment
Windows build number: Version 10.0.22000.160
Your Distribution version: 20.04
Your WSLg version: 1.0.26
Steps to reproduce
I started one VLC and played a video, it worked flawlessly. I started another instance directly in Windows to compare performance. This caused WSL VLC to loose sound. Quitting all VLC and starting a new instance on WSL causes it to take a long time to start, after a while I get this, and then VLC pops up
[0000558fd1fc7a20] vlcpulse audio output error: PulseAudio server connection failure: Timeout
[0000558fd1ef9290] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000558fd1f8d4f0] main playlist: playlist is empty
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Any video playback then lags and is unusable, the following error repeats in console:
[0000558fd1fc7a20] alsa audio output error: cannot estimate delay: Input/output error
WSL logs:
Expected behavior
Opening VLC should happen quickly with no errors and with sound
Actual behavior
Unusuable video and audio playback.
Note that attempting to do this a second time did not reproduce this error
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the attached pulseaudio.log and weston.log, then reproduce the sequence of running VLC in WSL and Windows and restarting it. Done means VLC starts quickly without PulseAudio or ALSA timeout errors, and video and audio playback remain usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- audio-video-rtc, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100