Browser cannot run files of methonal from sdcard locally

Bug #1032140 reported by Yongqin Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Won't Fix
Undecided
Unassigned

Bug Description

when run methanol test on panda-jb-gcc47-tilt-stable-blob#9 from the sdcard partition,
it reports the following error from logcat:

--------- beginning of /dev/log/main
E/browser ( 2532): Console: Unsafe JavaScript attempt to access frame with URL file:///sdcard/methanol/fire-svg.html from frame with URL file:///sdcard/methanol/svg/pure/blur.svg. Domains, protocols and ports must match.
E/browser ( 2532): null:1
E/browser ( 2532): Console: Uncaught TypeError: Property 'methanol_next' of object [object DOMWindow] is not a function file:///sdcard/methanol/svg/pure/blur.svg:4
E/browser ( 2532): Console: Unsafe JavaScript attempt to access frame with URL file:///sdcard/methanol/fire-smp.html from frame with URL file:///sdcard/methanol/smp/3d-terrain-demo/single/index.html. Domains, protocols and ports must match.
E/browser ( 2532): null:1
E/browser ( 2532): Console: Uncaught TypeError: Property 'methanol_next' of object [object DOMWindow] is not a function file:///sdcard/methanol/smp/3d-terrain-demo/single/demo.js:31

The steps I did is:
1. git clone git://gitorious.org/methanol/methanol.git
2. adb push methanol/ /sdcard/methanol
3. open the browser
4. input file:///sdcard/methanol/fire-svg.html to the address bar of browser and press enter
5. when the browser stops, input file:///sdcard/methanol/fire-smp.html to the address bar of browser and press enter

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

I just tried with https://android-build.linaro.org/builds/~linaro-android/panda-ics-gcc47-tilt-stable-blob/#build=96.
there is no problem to load file:///sdcard/methanol/svg/pure/blur.svg,
but have problem to load file:///sdcard/methanol/svg/anim/spotlight.svg

The error information from logcat is :
--------- beginning of /dev/log/main
E/browser ( 2097): Console: Uncaught TypeError: Cannot read property 'baseVal' of undefined file:///sdcard/methanol/svg/anim/spotlight.svg:26

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

when run file:///sdcard/methanol/fire-smp.html, there is following error in the logcat:
E/browser ( 2097): Console: Uncaught ReferenceError: Worker is not defined file:///sdcard/methanol/smp/3d-terrain-demo/worker/demo.js:205

description: updated
Revision history for this message
Yongqin Liu (liuyq0307) wrote :

When accessed via http (like http://192.168.1.127/images/methanol2/fire-svg.html), it is the same error two:

--------- beginning of /dev/log/main
E/browser ( 2097): Console: Uncaught TypeError: Cannot read property 'baseVal' of undefined http://192.168.1.127/images/methanol2/svg/anim/spotlight.svg:26
--------- beginning of /dev/log/system
E/browser ( 2097): Console: Uncaught ReferenceError: Worker is not defined http://192.168.1.127/images/methanol2/smp/3d-terrain-demo/worker/demo.js:205

comment#1 and comment#2 and this all are tried with https://android-build.linaro.org/builds/~linaro-android/panda-ics-gcc47-tilt-stable-blob/#build=96

Revision history for this message
Joe (Zhou) Yu (nap-yu) wrote :

1) fire-smp.html tests the HTML5 WebWorker feature, which hasn't been supported by the stock browser of neither ICS and JB. There is an app called 'HTML5 Supported' https://play.google.com/store/apps/details?id=net.the4thdimension.html5supported&feature=search_result#?t=W251bGwsMSwyLDEsIm5ldC50aGU0dGhkaW1lbnNpb24uaHRtbDVzdXBwb3J0ZWQiXQ..

2) I've tested fire-svg.html on the stock browser of my JB Galaxy Nexus -- it doesn't work. I will report the bug to the maintainer.

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

on JellyBean, https://android-build.linaro.org/builds/~linaro-android/panda-jb-gcc47-tilt-stable-blob/
it's the same error when access via http

$ adb logcat browser:V *:S
--------- beginning of /dev/log/main
E/browser ( 2025): Console: Uncaught TypeError: Cannot read property 'baseVal' of undefined http://192.168.1.127/images/methanol/svg/anim/spotlight.svg:26
E/browser ( 2025): Console: Uncaught ReferenceError: Worker is not defined http://192.168.1.127/images/methanol/smp/3d-terrain-demo/worker/demo.js:205
--------- beginning of /dev/log/system

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

I have put the methanol test in the below url, so that we can try the test a little more easily.
http://testdata.validation.linaro.org/methanol

The steps to run the methanol test:
1. open the default android browser
2. input http://testdata.validation.linaro.org/methanol/fire-svg.html to run the svg test
3. input http://testdata.validation.linaro.org/methanol/fire-smp.html to run the smp test

4. install the attached chrome apk
5. open the chrome application
6. input http://testdata.validation.linaro.org/methanol/fire-svg.html to run the svg test
7. input http://testdata.validation.linaro.org/methanol/fire-smp.html to run the smp test

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

Just tested with the attached chrome browser.
1. the fire-svg.html is ok, no error occurred.
2. when run the fire-smp.html, the chrome browser crashed. not know which test case yet

the crash log from logcat:11:24:50 liuyq:~$ adb logcat |tee /tmp/logcat.log
--------- beginning of /dev/log/main
D/dalvikvm( 2170): GC_CONCURRENT freed 802K, 24% free 8332K/10887K, paused 7ms+7ms, total 82ms
D/dalvikvm( 2170): GC_CONCURRENT freed 753K, 25% free 8238K/10887K, paused 12ms+2ms, total 36ms
I/Choreographer( 2170): Skipped 40 frames! The application may be doing too much work on its main thread.
I/chromium( 2170): Initial Minidump data written:
I/chromium( 2170): /data/data/com.android.chrome/cache/Crash Reports
W/chromium( 2170): Output crash dump file:
W/chromium( 2170): /data/data/com.android.chrome/cache/Crash Reports/34c8f196-f828-0096-35e13194-57338047.dmp
--------- beginning of /dev/log/system
I/WindowState( 1595): WIN DEATH: Window{41945818 com.android.chrome/com.google.android.apps.chrome.Main paused=false}
I/ActivityManager( 1595): Process com.android.chrome (pid 2170) has died.
I/chromium( 2565): [INFO:sandboxed_process_service.cc(317)] SandboxedProcessService: Force exiting sandboxed process.
W/ActivityManager( 1595): Force removing ActivityRecord{419929b8 com.android.chrome/com.google.android.apps.chrome.Main}: app died, no saved state
D/Zygote ( 1348): Process 2170 terminated by signal (11)
I/ActivityManager( 1595): Process com.android.chrome:sandboxed_process1 (pid 2565) has died.
W/InputMethodManagerService( 1595): Got RemoteException sending setActive(false) notification to pid 2170 uid 10048
E/ThrottleService( 1595): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)

vishal (vishalbhoj)
Changed in linaro-android:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers