<div dir="ltr">Hi Zygmunt,<div><br></div><div>Yes, I got some similar wrong message during "<span style="font-size:14px"> </span><span style="font-size:14px">journalctl -f</span><span style="font-size:14px"> </span>"</div><div><b>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<br></b></div><div><b><br></b></div><div>Should I add more plugs or change something on my snapcraft.yaml?</div><div>Thank you.</div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-11 19:00 GMT+08:00 Zygmunt Krynicki <span dir="ltr"><<a href="mailto:zygmunt.krynicki@canonical.com" target="_blank">zygmunt.krynicki@canonical.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>El 11 ago 2016, a las 7:37, Howy Wang <<a href="mailto:howy.wang@canonical.com" target="_blank">howy.wang@canonical.com</a>> escribió:</div><br><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">Hi there,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I made a snap, javagame and it works well.</div><div class="gmail_extra">Now the snap upload for javagame.howy to the Ubuntu Store has been approved.</div><div class="gmail_extra"><div>But I found something wrong with audio, the following is the wrong message during running the snap.<br></div></div></div></div></div></blockquote><div><br></div></span><div>Do you see any denials in the system log? You can check for them using journalctl -f when you start the game.</div><br><blockquote type="cite"><div><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra"><b>[MUSIC][11:39:29] Playing song: Towards The End</b></div><div class="gmail_extra"><b>[ERROR][11:39:29] Problem playing file sun.net.www.protocol.jar.<wbr>JarURLConnection$<wbr>JarURLInputStream@61ab49d</b></div><div class="gmail_extra"><b>[ERROR][11:39:29]javazoom.jl.<wbr>decoder.JavaLayerException: Cannot create AudioDevice</b></div><div class="gmail_extra"><b>[MUSIC][11:39:29] Playing song: yoshi song</b></div><div class="gmail_extra"><b>[ERROR][11:39:29] Problem playing file sun.net.www.protocol.jar.<wbr>JarURLConnection$<wbr>JarURLInputStream@35104da8</b></div><div class="gmail_extra"><b>[ERROR][11:39:29]javazoom.jl.<wbr>decoder.JavaLayerException: Cannot create AudioDevice</b></div><div class="gmail_extra"><br></div><div class="gmail_extra">I have checked my snapcraft.yaml has "plugs" with pulseaudio and "$ snap interfaces" has ":pulseaudio javagame:, too.</div><div class="gmail_extra">This is the $ snap interfaces </div><div class="gmail_extra"><br></div><div class="gmail_extra">howy@howy-Vostro-14-5480:~/<wbr>examples/java$ snap interfaces </div><div class="gmail_extra">Slot Plug</div><div class="gmail_extra">:camera -</div><div class="gmail_extra">:cups-control -</div><div class="gmail_extra">:firewall-control -</div><div class="gmail_extra">:gsettings -</div><div class="gmail_extra">:hardware-observe -</div><div class="gmail_extra">:home atom-cwayne,javagame,<wbr>jtiledownloader,openjdk-demo,<wbr>qtclocks,wallpaperdownloader</div><div class="gmail_extra">:locale-control -</div><div class="gmail_extra">:log-observe snappy-debug</div><div class="gmail_extra">:modem-manager -</div><div class="gmail_extra">:mount-observe -</div><div class="gmail_extra">:network jtiledownloader,openjdk-demo</div><div class="gmail_extra">:network-bind javagame,jtiledownloader,<wbr>wallpaperdownloader</div><div class="gmail_extra">:network-control -</div><div class="gmail_extra">:network-manager -</div><div class="gmail_extra">:network-observe -</div><div class="gmail_extra">:opengl game-2048</div><div class="gmail_extra">:optical-drive -</div><div class="gmail_extra">:ppp -</div><div class="gmail_extra">:pulseaudio javagame</div><div class="gmail_extra">:snapd-control -</div><div class="gmail_extra">:system-observe -</div><div class="gmail_extra">:timeserver-control -</div><div class="gmail_extra">:timezone-control -</div><div class="gmail_extra">:unity7 game-2048,openjdk-demo,<wbr>qtclocks</div><div class="gmail_extra">:x11 game-2048,javagame,<wbr>jtiledownloader,qtclocks,<wbr>wallpaperdownloader</div><div class="gmail_extra"><br></div><div class="gmail_extra">Any suggestions or examples can help to solve audio issue? </div><div class="gmail_extra">Thank you.<br></div><div><br></div>
</div></div></div></div><span class="HOEnZb"><font color="#888888">
-- <br>Snapcraft mailing list<br><a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br></font></span></div></blockquote></div><br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Regards,<span><br><div><font color="#888888">-- </font><br><b><font color="#000000">Howy Wang</font></b></div><div><b><font color="#000000">O </font></b><a value="+886287296807" style="color:rgb(17,85,204)">+886-2-8729-6849 </a><b>M</b><font color="#073763"> </font><font color="#0b5394">+886 928-258-081</font></div><div style="color:rgb(136,136,136)">Field Engineering | Canonical Ltd. <br><a href="http://www.canonical.com/" style="color:rgb(17,85,204)" target="_blank">www.canonical.com</a> | <a href="http://www.ubuntu.com/" style="color:rgb(17,85,204)" target="_blank">www.ubuntu.com</a> </div></span></div></div></div></div></div></div>
</div></div>