Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91CD595E3 for ; Tue, 12 Jun 2012 04:25:45 +0000 (UTC) Received: (qmail 37792 invoked by uid 500); 12 Jun 2012 04:25:45 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 37602 invoked by uid 500); 12 Jun 2012 04:25:44 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 37567 invoked by uid 99); 12 Jun 2012 04:25:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 04:25:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id B0E2814002F for ; Tue, 12 Jun 2012 04:25:42 +0000 (UTC) Date: Tue, 12 Jun 2012 04:25:42 +0000 (UTC) From: "Patrick Mueller (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <2007990790.5686.1339475142730.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1047040521.41935.1338938602953.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (CB-873) When using Android Emulator with weinre, JS errors log only sometimes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293329#comment-13293329 ] Patrick Mueller commented on CB-873: ------------------------------------ A few questions. - I assume the D/ I/ E/ prefixes on the messages are DEBUG, INFO, ERROR, etc. - I haven't used Android in a while - what is the "PhoneGapLog" vs "Web Console" bit difference? - Complete guess, but I think you're not seeing "Hello now" in weinre because weinre hasn't been set up at the time. This ran very early? - The "[unknown filename]:[unknown lineno]:[unknown message]" bit sounds like it's coming from the onerror catcher. Is this an old version of Android? - The "Cannot read property 'code' of undefined sounds" sounds familiar, what version of weinre are you using? > When using Android Emulator with weinre, JS errors log only sometimes > --------------------------------------------------------------------- > > Key: CB-873 > URL: https://issues.apache.org/jira/browse/CB-873 > Project: Apache Cordova > Issue Type: Bug > Components: weinre > Affects Versions: 1.7.0 > Environment: Windows, Google Chrome, Cordova 1.7.0, Node.js 1.6.18, Eclipse + Android Emulator > Reporter: Chris Del Guercio > Assignee: Patrick Mueller > > When using Android Emulator with weinre, JS errors log only sometimes. > After reading that weinre needs a little time to setup before it will deal with console entries I made a test app that does the following: > console.log( 'Hello now' ); > setTimeout( "console.log( 'Hello 10' )", 10000 ); > setTimeout( "console.log( 'Hello 20' )", 20000 ); > setTimeout( "console.log( 'Hello 30' )", 30000 ); > setTimeout( "console.log( 'Hello 40' )", 40000 ); > setTimeout( "console.log( 'Hello 50' )", 50000 ); > setTimeout( "console.log( 'Hello 60' )", 60000 ); > I've ran this many times and get similar logcat entries that look like this: > 06-05 23:10:19.992: D/PhoneGapLog(969): Hello now > 06-05 23:10:19.992: D/PhoneGapLog(969): file:///android_asset/www/index.html: Line 39 : Hello now > 06-05 23:10:20.000: I/Web Console(969): Hello now at file:///android_asset/www/index.html:39 > 06-05 23:10:20.110: D/PhoneGapLog(969): error occurred: [unknown filename]:[unknown lineno]: [unknown message] > 06-05 23:10:20.110: D/PhoneGapLog(969): http://192.168.1.9:8081/target/target-script-min.js: Line 3176 : error occurred: [unknown filename]:[unknown lineno]: [unknown message] > 06-05 23:10:20.110: E/Web Console(969): error occurred: [unknown filename]:[unknown lineno]: [unknown message] at http://192.168.1.9:8081/target/target-script-min.js:3176 > 06-05 23:10:20.120: D/PhoneGapLog(969): Uncaught TypeError: Cannot read property 'code' of undefined > 06-05 23:10:20.120: D/PhoneGapLog(969): http://192.168.1.9:8081/target/target-script-min.js: Line 3478 : Uncaught TypeError: Cannot read property 'code' of undefined > 06-05 23:10:20.120: E/Web Console(969): Uncaught TypeError: Cannot read property 'code' of undefined at http://192.168.1.9:8081/target/target-script-min.js:3478 > I see the 'Hello now' entry in logcat, but I don't see it in weinre. The only entry I see in weinre is 'Hello 10'. > Does anyone know what these logcat errors mean or why only one out of my 7 test console messages are being picked up by weinre? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira