Created
May 16, 2014 16:02
-
-
Save morganrallen/f955cc0312ae2cdbe9a5 to your computer and use it in GitHub Desktop.
Phonegap navigate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D/CordovaActivity(18223): onMessage(onPageStarted,file:///#!/sites) | |
D/CordovaLog(18223): file:///#!/sites: Line 1 : Uncaught ReferenceError: start is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 2 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 3 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 4 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 5 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 6 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 7 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 8 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 9 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 10 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 11 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 12 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 13 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 14 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 15 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 16 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 17 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 18 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 19 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 20 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 21 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 22 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 23 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 24 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 25 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 26 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 27 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 28 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 29 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 30 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 31 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 32 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 33 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaLog(18223): file:///#!/sites: Line 34 : Uncaught ReferenceError: addRow is not defined | |
D/CordovaWebViewClient(18223): onPageFinished(file:///#!/sites) | |
D/CordovaActivity(18223): onMessage(onPageFinished,file:///#!/sites) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These errors happens chromium is launched with
headless: true
and with an empty argumentargs: [""]
passed to chromium: puppeteer/puppeteer#5737 - The default page chromium opens is invalidThese errors only happen because of the argument
""
passed to chromium and if chrome is launched withheadless: true
. Ifheadless: false
, then, no errors happen.When I begin testings, I was directly trying to use the default page (
let [page] = await browser.pages()
) instead of creating a new page withlet page = await browser.newPage()
.Trying to use the default page, caused awkward errors in the first tests trying to use the default page:
TimeoutError: Timed out after 30000 ms while trying to connect to Chrome, Protocol error (Runtime.callFunctionOn): Execution context was destroyed, Error details for UnhandledPromiseRejectionWarning
(puppeteer/puppeteer#1591, puppeteer/puppeteer#4253, puppeteer/puppeteer#4651). These tests would hang forever (https://github.com/evandroforks/anki/runs/610551447?check_suite_focus=true#step:27:1649). The problem was fixed after creating a new pagelet page = await browser.newPage()
instead of trying to use the default pagelet [page] = await browser.pages()
.If I try to print the page contents with
document.body.innerHTML
nothing is output. But if I do aawait page.reload()
right before, then, the page contents are printed. These problems only happen withheadless: true
.Perhaps add to the documentation to never use the default page?
What steps will reproduce the problem?
Just run: node file.js
Running it on Windows results in:
Running it on Linux results in:
Tell us about your environment:
After tracking down these prints, I found they located on the chromium
directory_listing.cc
: https://chromium.googlesource.com/chromium/src/net/+/master/base/directory_listing.cc, https://chromium.googlesource.com/chromium/src/gpu/+/master/ipc/client/command_buffer_proxy_impl.cc, https://bugs.chromium.org/p/chromium/issues/detail?id=737678, puppeteer/puppeteer#1610 - HTML render with headless chrome + GPU hangs, puppeteer/puppeteer#1665 - async function inside evaluate fails.