[JavaGame] A snap question for audio.

Howy Wang howy.wang at canonical.com
Fri Aug 12 02:19:30 UTC 2016


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.




2016-08-11 19:00 GMT+08:00 Zygmunt Krynicki <zygmunt.krynicki at canonical.com>
:

>
> El 11 ago 2016, a las 7:37, Howy Wang <howy.wang at canonical.com> 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 at 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 at 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 at 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
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: 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 | www.ubuntu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160812/111860c0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: denied.log
Type: text/x-log
Size: 4778 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160812/111860c0/attachment.bin>


More information about the Snapcraft mailing list