microsoft / microsoft/wslg

VLC hangs during start and throws audio timeout error

Open
#433 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

pulseaudio.log
weston.log

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.