HTML 5 app cannot be running on the latest devel-proposed image

Bug #1428057 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-webapps-qml
New
Undecided
Unassigned

Bug Description

Today, I tried my project:

bzr branch lp:~liu-xiao-guo/debiantrial/meanings

It worked well on the previous vivid-proposed image. I flashed my phone to the following image:

phablet@ubuntu-phablet:~$ system-image-cli -i
current build number: 1
device name: mako
channel: ubuntu-touch/devel
alias: ubuntu-touch/vivid
last update: 2015-03-04 17:25:00
version version: 1
version ubuntu: 20141201
version device: 20141119
version custom: 20141201

Then, I got the following error:

/usr/bin/ubuntu-html5-app-launcher: unrecognized option '--www=www'
/usr/bin/ubuntu-html5-app-launcher: unrecognized option '--inspector'
Ignoring argument: "$@"
Setting import path to: /usr/lib/arm-linux-gnueabihf/qt5/imports:/opt/click.ubuntu.com/.click/users/phablet/meanings.ubuntu/lib/arm-linux-gnueabihf
shm_open() failed: Permission denied
Failed to create secure directory (/run/user/32011/pulse): Permission denied
[0304/090318:INFO:audio_manager_pulse.cc(258)] Failed to connect to the context. Error: 拒绝连接
[0304/090318:WARNING:proxy_service.cc(899)] PAC support disabled because there is no system implementation
qml: Loaded 5 UA override(s) from file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Web/ua-overrides-mobile.js
libust[6631/6701]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[6631/6701]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[6631/6702]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[6631/6702]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:958)
Cannot set WebContext.hostMapRules once the context is in use
UserScript url is a construct-only parameter
UserScript url is a construct-only parameter
UserScript url is a construct-only parameter
UserScript url is a construct-only parameter
Cannot set WebContext.sessionCookieMode once the context is in use
Cannot set WebContext.dataPath once the context is in use
Cannot set WebContext.cachePath once the context is in use
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=768, height=1222)
UbuntuClipboard - Got invalid serialized mime data. Ignoring it.
qml: [JS] (file:///usr/share/ubuntu-html5-ui-toolkit/0.1/ambiance/js/core.js:166) Uncaught ReferenceError: ActionBar is not defined
libust[6631/6701]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[6631/6702]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[6631/6701]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[6631/6702]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:958)

On the phone, I saw:

phablet@ubuntu-phablet:~$ grep "DENI" /var/log/syslog
Mar 4 08:59:10 ubuntu-phablet kernel: [ 18.790019] type=1400 audit(1425459550.936:64): apparmor="DENIED" operation="open" profile="/usr/lib/telepathy/telepathy-ofono" name="/dev/tty" pid=2300 comm="telepathy-ofono" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
Mar 4 08:59:11 ubuntu-phablet kernel: [ 19.369967] type=1400 audit(1425459551.516:65): apparmor="DENIED" operation="open" profile="/usr/bin/mediascanner-service-2.0" name="/dev/v4l-subdev0" pid=1896 comm="gst-plugin-scan" requested_mask="wr" denied_mask="wr" fsuid=32011 ouid=1000
Mar 4 08:59:11 ubuntu-phablet kernel: [ 19.370395] type=1400 audit(1425459551.516:66): apparmor="DENIED" operation="open" profile="/usr/bin/mediascanner-service-2.0" name="/dev/v4l-subdev1" pid=1896 comm="gst-plugin-scan" requested_mask="wr" denied_mask="wr" fsuid=32011 ouid=1000
Mar 4 08:59:11 ubuntu-phablet kernel: [ 19.370761] type=1400 audit(1425459551.516:67): apparmor="DENIED" operation="open" profile="/usr/bin/mediascanner-service-2.0" name="/dev/v4l-subdev10" pid=1896 comm="gst-plugin-scan" requested_mask="wr" denied_mask="wr" fsuid=32011 ouid=1000
Mar 4 08:59:11 ubuntu-phablet kernel: [ 19.371097] type=1400 audit(1425459551.516:68): apparmor="DENIED" operation="open" profile="/usr/bin/mediascanner-service-2.0" name="/dev/v4l-subdev2" pid=1896 comm="gst-plugin-scan" requested_mask="wr" denied_mask="wr" fsuid=32011 ouid=1000
Mar 4 08:59:11 ubuntu-phablet kernel: [ 19.371432] type=1400 audit(1425459551.516:69): apparmor="DENIED" operation="open" profile="/usr/bin/mediascanner-service-2.0" name="/dev/v4l-subdev3" pid=1896 comm="gst-plugin-scan" requested_mask="wr" denied_mask="wr" fsuid=32011 ouid=1000
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.224233] type=1400 audit(1425459798.380:89): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/etc/pulse/touch-client.conf" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.224813] type=1400 audit(1425459798.380:90): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-83504498" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.224904] type=1400 audit(1425459798.380:91): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-1474657094" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.224965] type=1400 audit(1425459798.380:92): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-3090914957" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.225057] type=1400 audit(1425459798.380:93): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-382848928" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.225118] type=1400 audit(1425459798.380:94): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-1199643785" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.225179] type=1400 audit(1425459798.380:95): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-275366472" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.225362] type=1400 audit(1425459798.380:96): apparmor="DENIED" operation="mknod" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-2755599513" pid=6631 comm="ubuntu-html5-ap" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.225637] type=1400 audit(1425459798.380:97): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-83504498" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011
Mar 4 09:03:18 ubuntu-phablet kernel: [ 266.225728] type=1400 audit(1425459798.380:98): apparmor="DENIED" operation="open" profile="meanings.ubuntu_meanings_0.1" name="/run/shm/pulse-shm-1474657094" pid=6631 comm="ubuntu-html5-ap" requested_mask="r" denied_mask="r" fsuid=32011 ouid=32011

There is a security issue with the html 5 app. However, after I flash back to "devel" image, everything works like a charm.

Thanks & best regards,
XiaoGuo

no longer affects: web
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.