No (pulse) audio when in devmode or confined

Bug #1667746 reported by Alan Pope 🍺🐧🐱 🦄
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a snap which when installed in devmode does not produce any audio output, yet does when run without confinement.

https://code.launchpad.net/~popey/+junk/godot

Steps to reproduce:-

bzr branch lp:~popey/+junk/godot
cd godot
snap install godot_2.1.2_amd64.snap --dangerous --devmode

git clone https://github.com/godotengine/godot-demo-projects.git
cd godot-demo-projects/2d/platformer
godot

Game loads, no audio.

However, if you launch godot via:-

/snap/godot/current/Godot_v2.1.2-stable_x11.64

You do get audio.

I have tried with adding pulseaudio / libasound2 / libpulse0 to the stage-packages, but that makes no difference.

Launching godot in an empty (as in, don't load and run a game, but load the editor) directory results in:-

$ godot
PulseAudio ERR: Connection refused
ERROR: init: Condition ' pulse == __null ' is true. returned: ERR_CANT_OPEN
   At: drivers/pulseaudio/audio_driver_pulseaudio.cpp:80.
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
ERROR: init: Condition ' status<0 ' is true. returned: ERR_CANT_OPEN
   At: drivers/alsa/audio_driver_alsa.cpp:70.
ERROR: initialize: Initializing audio failed.
   At: platform/x11/os_x11.cpp:289.
WARNING: create: Config file does not exist, creating.
   At: tools/editor/editor_settings.cpp:337.

Tags: isv
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
tags: added: isv
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.