On 12.08.2016 04:19, Howy Wang wrote: > Hi Zygmunt, > > Yes, I got some similar wrong message during "journalctl -f" > *Aug 12 10:05:26 howy-Vostro-14-5480 audit[6827]: AVC apparmor="DENIED" > operation="open" profile="snap.javagame.play" name="/dev/snd/controlC1" > pid=6827 > comm="java" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 > * > * > * > Should I add more plugs or change something on my snapcraft.yaml? > Thank you.
This really much looks like your app is directly talking with ALSA instead of pulseaudio. Can you verify this? The pulseaudio interface currently only allows directly talking with pulseaudio but AFAIK not using the ALSA pulse plugin. Can't say that for sure but this is what it looks like. regards, Simon > > > 2016-08-11 19:00 GMT+08:00 Zygmunt Krynicki <[email protected] > <mailto:[email protected]>>: > > >> El 11 ago 2016, a las 7:37, Howy Wang <[email protected] >> <mailto:[email protected]>> escribió: >> >> Hi there, >> >> I made a snap, javagame and it works well. >> Now the snap upload for javagame.howy to the Ubuntu Store has been >> approved. >> But I found something wrong with audio, the following is the wrong >> message >> during running the snap. > > Do you see any denials in the system log? You can check for them using > journalctl -f when you start the game. > >> >> *[MUSIC][11:39:29] Playing song: Towards The End* >> *[ERROR][11:39:29] Problem playing file >> sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@61ab49d* >> *[ERROR][11:39:29]javazoom.jl.decoder.JavaLayerException: Cannot create >> AudioDevice* >> *[MUSIC][11:39:29] Playing song: yoshi song* >> *[ERROR][11:39:29] Problem playing file >> sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@35104da8* >> *[ERROR][11:39:29]javazoom.jl.decoder.JavaLayerException: Cannot create >> AudioDevice* >> >> I have checked my snapcraft.yaml has "plugs" with pulseaudio and "$ snap >> interfaces" has ":pulseaudio javagame:, too. >> This is the $ snap interfaces >> >> howy@howy-Vostro-14-5480:~/examples/java$ snap interfaces >> Slot Plug >> :camera - >> :cups-control - >> :firewall-control - >> :gsettings - >> :hardware-observe - >> :home >> >> atom-cwayne,javagame,jtiledownloader,openjdk-demo,qtclocks,wallpaperdownloader >> :locale-control - >> :log-observe snappy-debug >> :modem-manager - >> :mount-observe - >> :network jtiledownloader,openjdk-demo >> :network-bind javagame,jtiledownloader,wallpaperdownloader >> :network-control - >> :network-manager - >> :network-observe - >> :opengl game-2048 >> :optical-drive - >> :ppp - >> :pulseaudio javagame >> :snapd-control - >> :system-observe - >> :timeserver-control - >> :timezone-control - >> :unity7 game-2048,openjdk-demo,qtclocks >> :x11 >> game-2048,javagame,jtiledownloader,qtclocks,wallpaperdownloader >> >> Any suggestions or examples can help to solve audio issue? >> Thank you. >> >> -- >> Snapcraft mailing list >> [email protected] <mailto:[email protected]> >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/snapcraft >> <https://lists.ubuntu.com/mailman/listinfo/snapcraft> > > > > > -- > Regards, > -- > *Howy Wang* > *O *+886-2-8729-6849 *M*+886 928-258-081 > Field Engineering | Canonical Ltd. > www.canonical.com <http://www.canonical.com/> | www.ubuntu.com > <http://www.ubuntu.com/> > > > -- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
