GLX demo (glxgears) on db410c

Hi all,
i tried to run glxgears on db410c. Then i’m getting below error on HDMI
Error: couldn’t open display (null)

how to validate glx demo?

there is no glx on arm devices …

first of all you want to use the GLES variant of the mesa-utils … (the equivalent of glxgears is es2gears, typically packaged in the mesa-utils-extra package)

second, there is no X11 on Ubuntu Core (“couldn’t open display” points to the app attempting to use X11), you can use the mir-kiosk snap and the demos as described on:

https://developer.ubuntu.com/core/examples/snaps-on-mir

Thanks for the info.i followed instructions from the above link.
snap install mir-libs --channel=edge
snap install mir-kiosk --channel=edge
snap install mir-kiosk-apps --channel=edge
snap set mir-kiosk-apps app=rssnews
snap set mir-kiosk-apps app=" "

Then encountered this error:
error: cannot perform the following tasks:
Run configure hook of “mir-kiosk-apps” snap (run hook “configure”: app can only be set to [animated_cursor|clocks|cursors|eglplasma|egltriangle|fingerpaint|photoviewer|progressbar|rssnews|samegame|spinning-rect|stocqt|tweetsearch])

that line explicitly causes the “error”… quoting from the webpage above:

To see the list of what potential clients exist, just enter the snap set command with an empty value, like so:

 snap set mir-kiosk-apps app=" "
ya i tried with above listed snaps but nothing is coming up on HDMI

I checked syslog then i noticed apparmor denials

Aug 29 11:32:51 localhost /usr/lib/snapd/snapd[1704]: daemon.go:176: DEBUG: @ POST /v2/snapctl 1.203ms 200
Aug 29 11:33:39 localhost /usr/lib/snapd/snapd[1704]: daemon.go:176: DEBUG: uid=1000;@ PUT /v2/snaps/mir-kiosk-apps/conf 241.902ms 202
Aug 29 11:33:39 localhost rsyslogd-2007: action 'action 10' suspended, next retry is Tue Aug 29 11:35:09 2017 [v8.16.0 try http://www.rsyslog.com/e/2007 ]
Aug 29 11:33:39 localhost /usr/lib/snapd/snapd[1704]: taskrunner.go:367: DEBUG: Running task 185 on Do: Run configure hook of "mir-kiosk-apps" snap
Aug 29 11:33:39 localhost /usr/lib/snapd/snapd[1704]: taskrunner.go:367: DEBUG: Running task 47 on Doing: Setup snap "core" (2734) security profiles (phase 2)
Aug 29 11:33:39 localhost /usr/lib/snapd/snapd[1704]: task.go:303: DEBUG: 2017-08-29T11:33:39Z INFO Waiting for restart...
Aug 29 11:33:39 localhost kernel: [ 5519.869097] audit: type=1400 audit(1504006419.857:218): apparmor="DENIED" operation="create" profile="snap.mir-kiosk-apps.hook.configure" pid=6569 comm="snapctl" family="inet" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
Aug 29 11:33:39 localhost kernel: [ 5519.869190] audit: type=1400 audit(1504006419.857:219): apparmor="DENIED" operation="create" profile="snap.mir-kiosk-apps.hook.configure" pid=6569 comm="snapctl" family="inet6" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
Aug 29 11:33:39 localhost kernel: [ 5519.869253] audit: type=1400 audit(1504006419.857:220): apparmor="DENIED" operation="create" profile="snap.mir-kiosk-apps.hook.configure" pid=6569 comm="snapctl" family="inet6" sock_type="stream" protocol=6 requested_mask="create" denied_mask="create"
Aug 29 11:33:39 localhost /usr/lib/snapd/snapd[1704]: daemon.go:176: DEBUG: @ POST /v2/snapctl 1.834ms 200

can you check with:

snap interfaces

…if all interfaces are connected properly ? the denials seem to come from snapctl when changing the value of “app”, seems it tries to access the network for some reason … that said … they dont look fatal at all (there is no need for network access to set the value)

after:

snap install mir-kiosk --channel=edge

your screen should have turned black and a mouse cursor should show up … (even before you install the apps snap)

as a last resort you could try to reboot and see if there was simply a race in starting mir-kiosk …

yes you are right.if i reboot then its working.
so as you said there’s a race in starting mir-kiosk.
is there any workaround for it?

Thanks

not sure, i’d consider it a bug … but i dont know where exactly these are tracked, @greyback or @alan_g should be able to point to the right place …

Hi @laxman456
please log a bug in https://github.com/MirServer/mir-kiosk/issues
I’ve tried to reproduce on a Raspberry Pi, but no luck. So any detail you can share will be useful.
Thanks
-G

Hi,
During the first boot after installing mir-kiosk snap i’m not getting anything on the display.when i observed syslog i found that mir-kiosk-app-daemon is not started.Below are the logs:

Sep  1 04:41:27 localhost snap[3059]: /snap/mir-kiosk-apps/15/bin/mir-kiosk-app-daemon: line 98: kill: (3073) - No such process
Sep  1 04:41:27 localhost snap[3059]: rssnews was already dead!
Sep  1 04:41:27 localhost systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Main process exited, code=exited, status=1/FAILURE
Sep  1 04:41:27 localhost systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Unit entered failed state.
Sep  1 04:41:27 localhost systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Failed with result 'exit-code'.
Sep  1 04:41:27 localhost systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Service hold-off time over, scheduling restart.
Sep  1 04:41:27 localhost systemd[1]: Stopped Service for snap application mir-kiosk-apps.mir-kiosk-app-daemon.
Sep  1 04:41:27 localhost systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Start request repeated too quickly.
Sep  1 04:41:27 localhost systemd[1]: Failed to start Service for snap application mir-kiosk-apps.mir-kiosk-app-daemon.
Sep  1 04:41:43 localhost rsyslogd-2007: action 'action 10' suspended, next retry is Fri Sep  1 04:42:13 2017 [v8.16.0 try http://www.rsyslog.com/e/2007 ]

If i reboot then graphics showing up on display immediately after boot.

Sep 1 04:43:49 localhost kernel: [ 45.707051] audit: type=1400 audit(1504241029.204:41): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6" pid=1530 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 ouid=0
Sep 1 04:43:54 localhost kernel: [ 50.696421] audit: type=1400 audit(1504241034.192:42): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6-0" pid=1532 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 ouid=0
Sep 1 04:43:54 localhost rsyslogd-2007: action ‘action 10’ suspended, next retry is Fri Sep 1 04:44:24 2017 [v8.16.0 try http://www.rsyslog.com/e/2007 ]
Sep 1 04:43:54 localhost kernel: [ 50.715467] audit: type=1400 audit(1504241034.212:43): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6-0" pid=1533 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 ouid=0
Sep 1 04:43:54 localhost kernel: [ 50.734076] audit: type=1400 audit(1504241034.228:44): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6" pid=1534 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 ouid=0
Sep 1 04:43:54 localhost kernel: [ 50.752876] audit: type=1400 audit(1504241034.248:45): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6" pid=1535 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 ouid=0
Sep 1 04:43:59 localhost kernel: [ 55.734255] audit: type=1400 audit(1504241039.228:46): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6-0" pid=1536 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 ouid=0
Sep 1 04:43:59 localhost kernel: [ 55.753301] audit: type=1400 audit(1504241039.248:47): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6-0" pid=1537 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 ouid=0
Sep 1 04:43:59 localhost kernel: [ 55.772021] audit: type=1400 audit(1504241039.268:48): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6" pid=1538 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 ouid=0
Sep 1 04:43:59 localhost kernel: [ 55.790740] audit: type=1400 audit(1504241039.288:49): apparmor=“DENIED” operation=“mknod” profile=“snap.mir-kiosk-apps.mir-kiosk-app-daemon” name="/dev/shm/lttng-ust-wait-6" pid=1539 comm=“photoviewer” requested_mask=“c” denied_mask=“c” fsuid=0 oui

only 1 out of 10 times i observed correct behaviour as ogra said screen turned black and mouse cursor appeared.after reboot the behaviour got inconsistent.

Note that the lttng denials are harmless and can be ignored (later releases of snapd silence the denials).