Blender installed via snap blocks sound #72920

Closed
opened 2020-01-05 20:49:01 +01:00 by Karl Werf · 13 comments

System Information
Operating system: Tried on two different machines with Ubuntu 19.10 resp Kubuntu 19.10
Graphics card: VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) resp Geforce 970

Blender Version
Broken: 2.81 downloaded via snap. Up to date as of this writing.
Worked: 2.81 and 2.81a downloaded via website.

Short description of error
When starting blender all sound break in ubuntu, the moment I close blender again the playback starts again.

Exact steps for others to reproduce the error
Install blender from snap (snap install blender --classic)
Open console and run journalctf -f (to easier see problem, not necessary for repro, I added my output as quotes below)
Start blender

jan 05 19:38:20 <computer_name> blender_blender.desktop[2690]: /run/user/1000/snap.blender/gvfs/ non-existent directory
jan 05 19:38:20 <computer_name> blender_blender.desktop[2690]: Read prefs: /home//.config/blender/2.81/config/userpref.blend
jan 05 19:38:20 <computer_name> blender_blender.desktop[2690]: ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
jan 05 19:38:20 <computer_name> blender_blender.desktop[2690]: AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Device or resource busy
jan 05 19:38:21 <computer_name> blender_blender.desktop[2690]: found bundled python: /snap/blender/34/2.81/python

Open settings in gnome and try playing a sound (settings->Sound->output->test)

jan 05 19:36:29 <computer_name> pulseaudio[2362]: E: [alsa-sink-ALC269VC Analog] alsa-sink.c: Error opening PCM device front:0: Device or resource busy
jan 05 19:36:29 <computer_name> pulseaudio[2362]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
jan 05 19:36:29 <computer_name> pulseaudio[2362]: E: [alsa-sink-ALC269VC Analog] alsa-sink.c: Error opening PCM device front:0: Device or resource busy
jan 05 19:36:29 <computer_name> pulseaudio[2362]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
jan 05 19:36:29 <computer_name> pulseaudio[2362]: E: [alsa-sink-ALC269VC Analog] alsa-sink.c: Error opening PCM device front:0: Device or resource busy
jan 05 19:36:29 <computer_name> pulseaudio[2362]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
jan 05 19:36:29 <computer_name> gnome-control-c[11236]: Failed to play sound: Invalid state

**System Information** Operating system: Tried on two different machines with Ubuntu 19.10 resp Kubuntu 19.10 Graphics card: VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) resp Geforce 970 **Blender Version** Broken: 2.81 downloaded via snap. Up to date as of this writing. Worked: 2.81 and 2.81a downloaded via website. **Short description of error** When starting blender all sound break in ubuntu, the moment I close blender again the playback starts again. **Exact steps for others to reproduce the error** Install blender from snap (snap install blender --classic) Open console and run journalctf -f (to easier see problem, not necessary for repro, I added my output as quotes below) Start blender > jan 05 19:38:20 <computer_name> blender_blender.desktop[2690]: /run/user/1000/snap.blender/gvfs/ non-existent directory > jan 05 19:38:20 <computer_name> blender_blender.desktop[2690]: Read prefs: /home/<username>/.config/blender/2.81/config/userpref.blend > jan 05 19:38:20 <computer_name> blender_blender.desktop[2690]: ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave > jan 05 19:38:20 <computer_name> blender_blender.desktop[2690]: AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Device or resource busy > jan 05 19:38:21 <computer_name> blender_blender.desktop[2690]: found bundled python: /snap/blender/34/2.81/python Open settings in gnome and try playing a sound (settings->Sound->output->test) > jan 05 19:36:29 <computer_name> pulseaudio[2362]: E: [alsa-sink-ALC269VC Analog] alsa-sink.c: Error opening PCM device front:0: Device or resource busy > jan 05 19:36:29 <computer_name> pulseaudio[2362]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended. > jan 05 19:36:29 <computer_name> pulseaudio[2362]: E: [alsa-sink-ALC269VC Analog] alsa-sink.c: Error opening PCM device front:0: Device or resource busy > jan 05 19:36:29 <computer_name> pulseaudio[2362]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended. > jan 05 19:36:29 <computer_name> pulseaudio[2362]: E: [alsa-sink-ALC269VC Analog] alsa-sink.c: Error opening PCM device front:0: Device or resource busy > jan 05 19:36:29 <computer_name> pulseaudio[2362]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended. > jan 05 19:36:29 <computer_name> gnome-control-c[11236]: Failed to play sound: Invalid state
Author

Added subscriber: @bwerf

Added subscriber: @bwerf

#76686 was marked as duplicate of this issue

#76686 was marked as duplicate of this issue

#76616 was marked as duplicate of this issue

#76616 was marked as duplicate of this issue
Karl Werf changed title from Blender snap blocks sound to Blender installed via snap blocks sound 2020-01-05 21:07:19 +01:00

Added subscriber: @iss

Added subscriber: @iss

Please don't assign subtype, this is up to developer to decide.

Also I assumed this was already triaged because of this.

Please don't assign subtype, this is up to developer to decide. Also I assumed this was already triaged because of this.

Added subscriber: @calrrox

Added subscriber: @calrrox

Added subscribers: @Oleg-Egorov, @ankitm

Added subscribers: @Oleg-Egorov, @ankitm

This issue was referenced by 829dce524d

This issue was referenced by 829dce524dbbf34439422cd2906b94ce0e7920ed

Added subscribers: @edapx, @brecht

Added subscribers: @edapx, @brecht

Some background on the problem here:
ddad107826
https://forum.snapcraft.io/t/reusable-alsa-lib-part/3556
https://snapcraft-alsa.readthedocs.io/en/latest/index.html
https://snapcraft.io/docs/audio-playback-interface

Basically, only PulseAudio is available by default, and require some fiddling with environment variables to work.

ALSA and OSS are not available and trying to use them seems to block sound in other apps. There are some ways to make ALSA work by bundling our own build of the ALSA library, but that seems overly complicated. We now just rely on PulseAudio working for sound and explicitly disable ALSA and OSS.

Some background on the problem here: https://github.com/ubuntu/snapcraft-desktop-helpers/commit/ddad10782637a1073142f904ba18e1473abe004a https://forum.snapcraft.io/t/reusable-alsa-lib-part/3556 https://snapcraft-alsa.readthedocs.io/en/latest/index.html https://snapcraft.io/docs/audio-playback-interface Basically, only PulseAudio is available by default, and require some fiddling with environment variables to work. ALSA and OSS are not available and trying to use them seems to block sound in other apps. There are some ways to make ALSA work by bundling our own build of the ALSA library, but that seems overly complicated. We now just rely on PulseAudio working for sound and explicitly disable ALSA and OSS.

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Brecht Van Lommel self-assigned this 2020-05-12 21:55:13 +02:00

Is the fix going into the next release? or will the snap package be patched?

Is the fix going into the next release? or will the snap package be patched?

It will be fixed in the next release (2.83).

It will be fixed in the next release (2.83).
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#72920
No description provided.