microsoft / microsoft/wslg

Connection refused to PulseAudio context

Open
#85 0 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.21364.1000
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.17.1

Steps to reproduce

WSL logs:

Expected behavior

I should be able to hear the audio from my remote-viewer window.

Actual behavior

I get these errors:

sudo remote-viewer spice+unix:///tmp/tetris.socket                                                                                             

(remote-viewer:494): GSpice-WARNING **: 14:46:40.126: PulseAudio context failed Connection refused
(remote-viewer:494): GSpice-WARNING **: 14:46:40.126: pa_context_connect() failed: Connection refused

More info

Outside of this, the audio works well with VLC installed on Ubuntu. So I don't know why it doesn't work in this use-case.

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, weston.log, and versions.txt, then reproduce the issue with the listed remote-viewer command. Compare this case with the reported working VLC audio path; done means remote-viewer audio connects without the PulseAudio “Connection refused” errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux, ubuntu
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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.