No sound on Nexus 4

Bug #1267979 reported by Michael Hall
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Animal Farm
Fix Released
Critical
Unassigned
apparmor-easyprof-ubuntu (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

At some point the audio stopped working for this app on my Nexus 4

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Yeah, I noticed this too. I just assumed no-one was actually running it :)

I have no idea why they're not playing. I thought it was because they were MP3s so I converted them to oggs but they still don't want to play for some reason.

Changed in animal-farm:
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Péter Trombitás (trombipeti) wrote :

I looked at the log file in ~/.cache/upstart (or whatever shows up in the 'log viewer' app) and did a google search for the error message ('Unable to play file ... No URI set). I've found it that we might need to set an absolute path for the sound's source. I'll try to get it work later today.

Revision history for this message
Péter Trombitás (trombipeti) wrote :

Ok, so I've downloaded the branch, opened the project in Ubuntu SDK, ran it on the device and it worked. I also looked at gstreamer's source and found out that the error message comes from the file "./gst/playback/gstplaybin2.c", which implements an abstract player level. I guess this means that the file path gets lost somewhere between the qml file and gstreamer.
Oh, and it only does that if the whole thing is installed as a click package, because I've tried to set an absolute path in the .qml file for the sounds (e.g /opt/click.ubuntu.com/com.ubuntu.developer.robert-ancell.animal-farm/0.6/sheep.ogg), and it worked like a charm.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Interestingly new gstreamer landed the day this bug was filed.

http://people.canonical.com/~ogra/touch-image-stats/20140110.1.changes

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Thus spake jdstrand on irc:-

10:26:35 < jdstrand> popey, didrocks: if its apparmor, please check 'grep DEN /var/log/syslog' and report a bug against apparmor-easyprof-ubuntu

Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.505600] type=1400 audit(1392806616.629:424): apparmor="DENIED" operation="open" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/home/phablet/.config/pulse/cookie" pid=4821 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.510727] type=1400 audit(1392806616.639:425): apparmor="DENIED" operation="open" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/home/phablet/.config/pulse/" pid=4821 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.510819] type=1400 audit(1392806616.639:426): apparmor="DENIED" operation="rmdir" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/home/phablet/.config/pulse/" pid=4821 comm="qmlscene" requested_mask="d" denied_mask="d" fsuid=32011 ouid=32011
Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.510880] type=1400 audit(1392806616.639:427): apparmor="DENIED" operation="open" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/home/phablet/.config/pulse/cookie" pid=4821 comm="qmlscene" requested_mask="rwc" denied_mask="rwc" fsuid=32011 ouid=32011
Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.510941] type=1400 audit(1392806616.639:428): apparmor="DENIED" operation="open" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/home/phablet/.config/pulse/cookie" pid=4821 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.511246] type=1400 audit(1392806616.639:429): apparmor="DENIED" operation="open" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/run/shm/" pid=4821 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.511551] type=1400 audit(1392806616.639:430): apparmor="DENIED" operation="mknod" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/run/shm/pulse-shm-3965052066" pid=4821 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011
Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.511856] type=1400 audit(1392806616.639:431): apparmor="DENIED" operation="open" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/run/shm/" pid=4821 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
Feb 19 10:43:36 ubuntu-phablet kernel: [ 1973.512772] type=1400 audit(1392806616.639:432): apparmor="DENIED" operation="open" parent=1959 profile="com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6" name="/run/user/32011/pulse/" pid=4821 comm="qmlscene" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This app doesn't appear to be using the 'audio' policy group. Eg:
# cat /var/lib/apparmor/clicks/com.ubuntu.developer.robert-ancell.animal-farm_ubuntu-tasks_0.6.json
{
    "policy_groups": [],
    "policy_version": 1.0
}

Changed in apparmor-easyprof-ubuntu (Ubuntu):
status: New → Invalid
Changed in animal-farm:
status: Triaged → 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.