Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87C7F10F69 for ; Tue, 6 Jan 2015 13:19:35 +0000 (UTC) Received: (qmail 88517 invoked by uid 500); 6 Jan 2015 13:19:36 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 88428 invoked by uid 500); 6 Jan 2015 13:19:35 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 88052 invoked by uid 99); 6 Jan 2015 13:19:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 13:19:35 +0000 Date: Tue, 6 Jan 2015 13:19:35 +0000 (UTC) From: "Eser Esen (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-8148) No deviceReady on WP8 in Emulator because of SystemException 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-8148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266076#comment-14266076 ] Eser Esen edited comment on CB-8148 at 1/6/15 1:19 PM: ------------------------------------------------------- i guess this isolated exception happens only on emulators, but im not sure. im getting SystemException as follows: A first chance exception of type 'System.SystemException' occurred in Microsoft.Phone.Interop.ni.dll Additional information: An unknown error has occurred. Error: 80020101 I get no deviceReady event because of this. When i break on this exception, it highlights the following code from CordovaView.xaml.cs: string nativeReady = "(function(){cordova.require('cordova/channel').onNativeReady.fire()})();"; try { CordovaBrowser.InvokeScript("eval", new string[] { nativeReady }); } catch (Exception) { Debug.WriteLine("Error calling js to fire nativeReady event. Did you include cordova.js in your html script tag?"); } was (Author: eesen): i guess this isolated exception happens only on emulators, but im not sure. im getting SystemException as follows: A first chance exception of type 'System.SystemException' occurred in Microsoft.Phone.Interop.ni.dll Additional information: An unknown error has occurred. Error: 80020101 I get no deviceReady event because of this. When i break on this exception, it highlights the following code from CordovaView.xaml.cs: string nativeReady = "(function(){ cordova.require('cordova/channel').onNativeReady.fire()})();"; try { CordovaBrowser.InvokeScript("eval", new string[] { nativeReady }); } catch (Exception /*ex*/) { Debug.WriteLine("Error calling js to fire nativeReady event. Did you include cordova.js in your html script tag?"); } > No deviceReady on WP8 in Emulator because of SystemException > ------------------------------------------------------------ > > Key: CB-8148 > URL: https://issues.apache.org/jira/browse/CB-8148 > Project: Apache Cordova > Issue Type: Bug > Components: WP8 > Affects Versions: 4.0.0 > Environment: VisualStudioExpress2013, Windows 8.1 Enterprise > Reporter: Eser Esen > Assignee: Jesse MacFadyen > Priority: Critical > Labels: wp8 > > I successfully created and added wp8 project using cordova CLI. > Running the app also works, it shows the HTML from my index.html file but then ends up with following below in console. > On my index.html im trying to setup filesystem opening the cordova.file.dataDirectory using resolveLocalFileSystemURL. But this happens only within deviceReady function, which is never called, because i put a console.log there and i dont see any of my logs in the output window in Visual Studio Express 2013. Whats wrong here? > --------------------------------------------------- > Adding feature.value=Device > Adding feature.value=DebugConsole > Adding feature.value=File > Adding feature.value=FileTransfer > Adding feature.value=Globalization > Adding feature.value=InAppBrowser > 'TaskHost.exe' (CoreCLR: Silverlight AppDomain): Loaded 'C:\windows\system32\en-US\mscorlib.debug.resources.dll'. Module was built without symbols. > A first chance exception of type 'System.IO.IsolatedStorage.IsolatedStorageException' occurred in mscorlib.ni.dll > Updating IsolatedStorage for APP:DeviceID :: 6eb37ee1-d188-40ff-afb0-78504f5158b4 > CordovaBrowser_LoadCompleted > Apache Cordova native platform version 3.7.0 is starting > A first chance exception of type 'System.SystemException' occurred in Microsoft.Phone.Interop.ni.dll > Error calling js to fire nativeReady event. Did you include cordova.js in your html script tag? -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org