Music playback randomly stops working
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
Critical
|
Canonical Phone Foundations | ||
| | Media Hub |
Invalid
|
High
|
Jim Hodapp | |
| | qtubuntu-camera |
New
|
Undecided
|
Unassigned | |
| | pulseaudio (Ubuntu) |
Medium
|
Unassigned | ||
| | ubuntu-touch-session (Ubuntu) |
Undecided
|
Unassigned | ||
| | ubuntu-touch-session (Ubuntu RTM) |
Undecided
|
Unassigned | ||
Bug Description
While listening to music media-hub stops randomly. Restart of the job and reboots don't fix it. Video works fine. Also, 320 kbps music pauses randomly, might be related. I have also talked about this on the mailing list.
This is probably a side effect of bug 1438486 (or similar), as pulse is working but without sound just for the multimedia related roles.
Related branches
- Jim Hodapp: Approve on 2015-03-31
-
Diff: 12 lines (+1/-1)1 file modifiedtouch.pa (+1/-1)
- Jim Hodapp: Approve on 2015-03-31
-
Diff: 12 lines (+1/-1)1 file modifiedtouch.pa (+1/-1)
| Jim Hodapp (jhodapp) wrote : | #1 |
| summary: |
- Media-hub randomly stops working + Music playback randomly stops working |
| Bogdan (boghison) wrote : | #2 |
I'm using the Nexus 4 with 14.10 r10. I could make a video to show the issue if you want.
| Jim Hodapp (jhodapp) wrote : | #3 |
Sure, a video of this would be great.
| Bogdan (boghison) wrote : | #4 |
Too late. My Nexus is dead, sorry :(
| Sujeevan Vijayakumaran (svij) wrote : | #5 |
Hi,
I've a similar problem, not sure if this is the same problem though.
I've got the bq aquaris from yesterdays Ubuntu Phone Launch Event and I can't hear the sound of music/videos/
| Pat McGowan (pat-mcgowan) wrote : | #6 |
Additional discussion from the mailing list in late Nov:
Bogdan:
So, everything was fine today, until I noticed that the sound doesn't work. Alarms and ringtones work fine, but media sounds don't (such as Music). Moreover, there's no popup showing the volume change, although the icon in the notification panel gets updated. I am on the latest image (rtm, 10).
Sergio:
Yeah, I'm seeing the same
This is in the music log:
virtual QMediaService* AalServicePlugi
qt.mediaplayer"
Creating a new static Service instance
Failed to start a new media-hub player session: org.freedesktop
ply: Did not receive a reply. Possible causes include: the remote application di
d not send a reply, the message bus security policy blocked the reply, the reply
timeout expired, or the network connection was broken.
Failed to create a new media player backend. Video playback will not function.
(new media-hub landed on 11.27 http://
Yeah, I see it on every other boot, I'm also seeing this in media-hub logs:
client pkgname: com.ubuntu.music
uri: file://
Client can access content in ~/Music or ~/Videos
void gstreamer:
but when it works I see this added to that above:
Found audio content
void core::ubuntu:
video_height: 0, video_width: 0
Requested new system wakelock
play
| Pat McGowan (pat-mcgowan) wrote : | #7 |
from svij:
phablet@
audio_sink: pulsesink
video_sink: mirsink
Creating a new Engine instance in gstreamer:
Audio stream role: props,media.
virtual void core::ubuntu:
stop
Client allowed access since it's unconfined
filename: file://
Found video content
Creating video sink for texture_id: 1
void core::ubuntu:
video_height: 1080, video_width: 1920
Requested new display wakelock
play
pause
void core::ubuntu:
Clearing display wakelock
| Changed in media-hub: | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| assignee: | nobody → Jim Hodapp (jhodapp) |
| Changed in canonical-devices-system-image: | |
| status: | New → Confirmed |
| importance: | Undecided → High |
| milestone: | none → ww09-2015 |
| Pat McGowan (pat-mcgowan) wrote : | #8 |
not sure if bug #1379881 is related
| Pat McGowan (pat-mcgowan) wrote : | #9 |
Note re comment #5 that audio did work properly the previous day..
| Ricardo Salveti (rsalveti) wrote : | #10 |
If alarms and ringtones are playing fine, it means the core part of the audio stack is fine, might be an issue with the volume side of things (e.g. pulseaudio).
When you reproduce the issue, please run the following and paste the output: 'pactl list sink-inputs'
This will list all the active inputs and the current volume for them.
Another thing to try:
1 - Save your ~/.config/pulse (in case it's broken)
2 - Erase ~/.config/pulse
3 - Reboot and retry
| Sujeevan Vijayakumaran (svij) wrote : | #11 |
Paste of 'pactl list sink-inputs':
Sink Input #0
Driver: protocol-native.c
Owner Module: 9
Client: 5
Sink: 0
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,
Format: pcm, format.
Corked: yes
Mute: no
Volume: 0: 100% 1: 100%
0: 0.00 dB 1: 0.00 dB
Buffer Latency: 31383 usec
Sink Latency: 0 usec
Resample method: n/a
Properties:
----
The bug was still present until now. Deleting ~/.config/pulse and rebooting helped, so I don't have this issue anymore. But I still have no idea how I could reproduce it…
| Jim Hodapp (jhodapp) wrote : | #12 |
The last part is good to know, somehow you ended up with a corrupted pulse config file. Will need to see if we can reproduce how you got into that state.
| Changed in media-hub: | |
| status: | Confirmed → Invalid |
| Sujeevan Vijayakumaran (svij) wrote : | #13 |
Everything I did (well the parts which I remember):
* Started a recording of a video
* Played that video → audio was working
* Recorded a couple of videos
* Checked the video a few hours later → no sound
I don't remember anything else, which could have corrupted those files. I didn't play any other music/videos before that bug occured.
| Jim Hodapp (jhodapp) wrote : | #14 |
I was able to reproduce this issue by doing the following:
1. Open camera-app
2. I recorded a single video, then swiped to the camera-roll to preview it, then played it in mediaplayer-app by tapping on it in the camera-roll.
3. I did #2 again for another video.
4. Then I started recording several videos in a row without trying to view them after each recording. Once I recorded my 5th video, I noticed that the thumbnails were no longer appearing in the camera-roll. I also noticed that playback no longer worked if I tried to play any of these videos.
5. Once I removed ~/.config/pulse and rebooted, thumbnailing and playback of these videos all started working again.
So it seems that we are getting a corrupted pulse config from video recording.
| Jim Hodapp (jhodapp) wrote : | #15 |
Adding qtubuntu-camera as possible source of the bug, but it's unclear at this point what component is exactly responsible for the issue.
| affects: | pulseaudio → pulseaudio (Ubuntu) |
| Changed in pulseaudio (Ubuntu): | |
| assignee: | nobody → Ricardo Salveti (rsalveti) |
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → Michael Frey (mfrey) |
| Jim Hodapp (jhodapp) wrote : | #16 |
This attachment has the broken pulse config.
| Changed in canonical-devices-system-image: | |
| milestone: | ww09-2015 → ww13-2015 |
| Changed in pulseaudio (Ubuntu): | |
| status: | New → Confirmed |
| Changed in canonical-devices-system-image: | |
| assignee: | Michael Frey (mfrey) → Canonical Phone Foundations (canonical-phonedations-team) |
| Pat McGowan (pat-mcgowan) wrote : | #17 |
making critical to see if we can ota
| Changed in canonical-devices-system-image: | |
| milestone: | ww13-2015 → ww13-ota |
| importance: | High → Critical |
| Changed in pulseaudio (Ubuntu): | |
| importance: | Undecided → Critical |
| Changed in pulseaudio (Ubuntu): | |
| status: | Confirmed → In Progress |
| Changed in canonical-devices-system-image: | |
| status: | Confirmed → In Progress |
| Ricardo Salveti (rsalveti) wrote : | #18 |
Trying to reproduce but I'm still unable to get the issue described at comment #14. I was able to get the system to hang for a bit, but that was because mediascanner crashed. It seems that at one point media-hub wasn't able to accept new connections (couldn't play music via music-app).
The problem is that it worked fine after a reboot, so not really pulse specific. I also tested the pulseconfig described by comment #16, but audio is also working as expected (if the file was corrupted or with the multimedia role muted, it would show up when using such configs).
Will keep trying to reproduce the issue (this is latest RTM/krillin).
| Ricardo Salveti (rsalveti) wrote : | #19 |
I was finally able to reproduce the issue I saw before with media-hub, following the steps described by comment 14. After recording a few videos and trying to play one of them, I got media-hub to consume 100% of my cpu, blocking the loop and blocking any new connections as consequence.
Strace shows it's busy in epoll_wait:
epoll_wait(6, {}, 128, 0) = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(
epoll_wait(6, {{EPOLLIN, {u32=33486680, u64=33486680}}}, 128, -1) = 1
recvmsg(4, {msg_name(0)=NULL, msg_iov(
recvmsg(4, 0xbe938130, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
epoll_ctl(6, EPOLL_CTL_MOD, 4, {EPOLLIN|
epoll_wait(6, {}, 128, 0) = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(
epoll_wait(6, {{EPOLLIN, {u32=33486680, u64=33486680}}}, 128, -1) = 1
recvmsg(4, {msg_name(0)=NULL, msg_iov(
recvmsg(4, 0xbe938130, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
epoll_ctl(6, EPOLL_CTL_MOD, 4, {EPOLLIN|
epoll_wait(6, {}, 128, 0) = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(
epoll_wait(6, {{EPOLLIN, {u32=33486680, u64=33486680}}}, 128, -1) = 1
recvmsg(4, {msg_name(0)=NULL, msg_iov(
recvmsg(4, 0xbe938130, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
epoll_ctl(6, EPOLL_CTL_MOD, 4, {EPOLLIN|
epoll_wait(6, {}, 128, 0) = 0
sendmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"l\2
Getting dbg symbols now to get a trace.
| Ricardo Salveti (rsalveti) wrote : | #20 |
Backtrace when attaching with gdb:
#0 0xb62c9712 in epoll_wait () at ../sysdeps/
No locals.
#1 0xb6ee93fa in boost::
timeout = <optimized out>
events = {{events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}} <repeats 38 times>, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 141392522407575
events = 32872688, data = {ptr = 0x4, fd = 4, u32 = 4, u64 = 4}}, {events = 32920512, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 32920512, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 141392522407575
ptr = 0x1f598f0, fd = 32872688, u32 = 32872688, u64 = 131769788927294
u32 = 2861580104, u64 = 131787628789440
events = 33597384, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 137324581241686
events = 0, data = {ptr = 0x2, fd = 2, u32 = 2, u64 = 145269464831623
u64 = 131239248742834
u64 = 145246894778482
fd = -1097629896, u32 = 3197337400, u64 = 137324606699866
ptr = 0x76, fd = 118, u32 = 118, u64 = 137324595672776
u64 = 131236737529382
u64 = 131236...
| Ricardo Salveti (rsalveti) wrote : | #21 |
| Ricardo Salveti (rsalveti) wrote : | #22 |
As before, pulse was fine after a reboot. Will now try to manually corrupt the database and see what I can get (wondering if this is related with the mute issue we have with pathwind).
| Ricardo Salveti (rsalveti) wrote : | #23 |
Opened bug 1438491 for the issue I had with media-hub. For this bug I'll just force pulse to not store/restore any mute or device related value for the multimedia role.
I think the original issue is that the multimedia role stream got muted, causing the blocking issue just for multimedia related apps (ringtone and alarms were playing fine). This is probably a similar issue as described by bug 1438486
| description: | updated |
| Launchpad Janitor (janitor) wrote : | #24 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
[ Ricardo Salveti de Araujo ]
* touch.pa: making sure we don't store/restore device and muted status
for module-
-- CI Train Bot <email address hidden> Tue, 31 Mar 2015 03:20:08 +0000
| Changed in ubuntu-touch-session (Ubuntu RTM): | |
| status: | New → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | In Progress → Fix Released |
| Launchpad Janitor (janitor) wrote : | #25 |
This bug was fixed in the package ubuntu-
---------------
ubuntu-
[ Ricardo Salveti de Araujo ]
* touch.pa: making sure we don't store/restore device and muted status
for module-
-- CI Train Bot <email address hidden> Tue, 31 Mar 2015 03:16:20 +0000
| Changed in ubuntu-touch-session (Ubuntu): | |
| status: | New → Fix Released |
| Changed in pulseaudio (Ubuntu): | |
| assignee: | Ricardo Salveti (rsalveti) → deeksha (deekshapai7) |
| assignee: | deeksha (deekshapai7) → nobody |
| deeksha (deekshapai7) wrote : | #26 |
Resetting User Configuration For some reason, pulseaudio's user configuration files can become corrupt(unsynced?) in some way, and deleting them (and forcing fresh ones to be generated) fixes a no sound condition. After using the command below, log out/in.
Ubuntu 12.10/Quantal (and earlier)
rm -r ~/.pulse*; pulseaudio -k
Ubuntu 13.04/Raring (and later)
rm -r ~/.config/pulse; pulseaudio -k
| Changed in pulseaudio (Ubuntu): | |
| assignee: | nobody → deeksha (deekshapai7) |
| deeksha (deekshapai7) wrote : | #27 |
Fix Alternative #1
Try reinstalling Alsa and Pulse audio in the following manner:
sudo apt-get remove --purge alsa-base pulseaudio
sudo apt-get install alsa-base pulseaudio
And force reload Alsa again:
sudo alsa force-reload
Fix Alternative #2
Open the terminal and edit speech-dispatcher file by using the following command:
sudo gedit /etc/default/
In here, change RUN=yes to RUN=no
Reboot.
| Andrea Simonetti (simox) wrote : | #28 |
Hello.. Is this last one a permanent solution?
| Daniel van Vugt (vanvugt) wrote : | #29 |
Thank you for reporting this bug to Ubuntu.
Ubuntu 14.10 (utopic) reached end-of-life on July 23, 2015.
See this document for currently supported Ubuntu releases:
https:/
We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.
| tags: | added: pulse-touch utopic |
| Changed in pulseaudio (Ubuntu): | |
| assignee: | deeksha (deekshapai7) → nobody |
| importance: | Critical → Medium |
| status: | In Progress → Incomplete |

What device are you using and what version of Ubuntu Touch (distro and build number)? I'm trying to reproduce it. Also, you said that video is always fine even when music stops playing?