start-pulseaudio-x11 tries to load /usr/share/sounds/ubuntu/stereo/bell.ogg which is missing in Kubuntu

Bug #1703334 reported by Petr Sedlacek
24
This bug affects 8 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Fix Released
High
Daniel van Vugt
Nominated for Artful by Rik Mills
Nominated for Zesty by Rik Mills

Bug Description

The script /usr/bin/start-pulseaudio-x11 contains the line

/usr/bin/pactl upload-sample /usr/share/sounds/ubuntu/stereo/bell.ogg bell.ogg > /dev/null

However, the file /usr/share/sounds/ubuntu/stereo/bell.ogg wasn't present in my Kubuntu 17.04 installation. It's part of the package ubuntu-sounds that apparently isn't installed in Kubuntu by default (no wonder, the description says "Ubuntu's GNOME audio theme").

Since the script is run with sh -e it stops at the first failure and therefore pulseaudio is not initialized correctly (for example, module-device-manager isn't loaded which prevents configuration of device preferences).

To me this sounds like a missing dependency of the pulseaudio package on ubuntu-sounds package.

System information:
Kubuntu 17.04
pulseaudio version 1:10.0-1ubuntu2

Expected behaviour: script /usr/bin/start-pulseaudio-x11 runs correctly and properly initializes pulseaudio

Actual behaviour: script doesn't run correctly and therefore pulseaudio isn't initialized properly.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Good timing. I was looking at finalizing the contents of the next pulseaudio update today. I'll fix this too.

summary: start-pulseaudio-x11 tries to load
- /usr/share/sounds/ubuntu/stereo/bell.ogg which is missing
+ /usr/share/sounds/ubuntu/stereo/bell.ogg which is missing in Kubuntu
Changed in pulseaudio (Ubuntu):
importance: Undecided → High
status: New → Triaged
assignee: nobody → Daniel van Vugt (vanvugt)
Revision history for this message
Petr Sedlacek (piit79) wrote :

Awesome, thanks! Haven't had time to test yet if this also fixes https://bugs.launchpad.net/ubuntu/+source/kubuntu-meta/+bug/1684108 but I wouldn't be surprised if it did.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in pulseaudio (Ubuntu):
status: Triaged → In Progress
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
José Tomás Atria (jtatria) wrote :

I can confirm that installing ubuntu-sounds fixes the issue reported at https://bugs.launchpad.net/ubuntu/+source/kubuntu-meta/+bug/1684108

I have to ask though, is adding an extra dependency on a GNOME package the correct solution for Kubuntu? Isn't there some desktop-agnostic way of referring to system sound files that would be preferable for KDE users?

Revision history for this message
José Tomás Atria (jtatria) wrote :

Ah, disregard the question in my last comment, I just saw that daniel's commit checks for the existence of the missing file instead of adding a dependency to ubuntu-sounds.

Thanks for taking the time to fix this!

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

This bug was fixed in the package pulseaudio - 1:10.0-2ubuntu1

---------------
pulseaudio (1:10.0-2ubuntu1) artful; urgency=medium

  * Cherrypick fixes for common crashes from upstream:
    - cb78d6f5: SIGABRT in device_start_waiting_for_profiles (LP: #1690028,
      LP: #1672171)
    - d985276c: SIGABRT in pa_alsa_path_set_volume (LP: #1539209, LP: #1562817)
  * Enable modules that needn't be disabled:
    - module-role-cork: Now enabled per upstream defaults (LP: #1701688)
    - module-switch-on-connect: Enabled for seamless hotplugging (LP: #1702794)
  * Don't try to load sounds that don't exist in Kubuntu (LP: #1703334)
  * Merge latest debian changes (see below).

 -- Daniel van Vugt <email address hidden> Tue, 11 Jul 2017 16:57:16 +0800

Changed in pulseaudio (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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