Closed
Bug 828835
Opened 13 years ago
Closed 13 years ago
Firefox OS cannot start up due to an exception: NS_ERROR_FILE_TARGET_DOES_NOT_EXIST
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(blocking-basecamp:+, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed)
People
(Reporter: airpingu, Assigned: kk1fff)
References
Details
(Keywords: regression)
Attachments
(1 file)
897 bytes,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
STR
==============================
0. 2013/1/10 m-c build.
1. Cannot start up after reflashing everything.
LOG
==============================
E/GeckoConsole( 105): [JavaScript Error: "DOMApplicationRegistry: Could not parse JSON: /data/local/webapps/webapps.json [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.copyTo]" nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)" location: "JS frame :: resource://gre/modules/Webapps.jsm :: installPreinstalledApp/< :: line 243" data: no]
E/GeckoConsole( 105): [JavaScript Error: "[Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.copyTo]" nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)" location: "JS frame :: resource://gre/modules/Webapps.jsm :: installPreinstalledApp/< :: line 243" data: no]" {file: "resource://gre/modules/Webapps.jsm" line: 243}]
E/GeckoConsole( 105): [JavaScript Error: "NO SETTINGS PERMISSION FOR: app://system.gaiamobile.org
E/GeckoConsole( 105): [JavaScript Error: "NS_ERROR_FAILURE: Denied" {file: "jar:file:///system/b2g/omni.ja!/components/Webapps.js" line: 649}]
E/GeckoConsole( 105): [JavaScript Error: "TypeError: navigator.mozSettings is null" {file: "app://system.gaiamobile.org/js/value_selector/value_selector.js" line: 108}]
E/GeckoConsole( 105): [JavaScript Error: "SecurityError: The operation is insecure." {file: "app://system.gaiamobile.org/shared/js/idletimer.js" line: 101}]
E/GeckoConsole( 105): [JavaScript Error: "TypeError: settings is null" {file: "app://system.gaiamobile.org/js/sleep_menu.js" line: 41}]
E/GeckoConsole( 105): [JavaScript Error: "TypeError: settings is null" {file: "app://system.gaiamobile.org/shared/js/settings_listener.js" line: 34}]
E/GeckoConsole( 105): [JavaScript Error: "SecurityError: The operation is insecure." {file: "app://system.gaiamobile.org/shared/js/idletimer.js" line: 101}]
This might be a regression due to bug 828190.
Comment 1•13 years ago
|
||
Hmm. The latest nightly build from https://pvtbuilds.mozilla.org/pub/mozilla.org/b2g/nightly/mozilla-b2g18-unagi/latest/ works for me. Does that build include this patch?
Assignee | ||
Comment 2•13 years ago
|
||
Getting baseDir doesn't really throw an exception even when coreAppsDir doesn't exist. Check if baseDir exists, and return form that installPreinstalledApp when the base is not there.
Assignee: nobody → pwang
Attachment #700224 -
Flags: review?(ferjmoreno)
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #1)
> Hmm. The latest nightly build from
> https://pvtbuilds.mozilla.org/pub/mozilla.org/b2g/nightly/mozilla-b2g18-
> unagi/latest/ works for me. Does that build include this patch?
This changeset is not in current nightly.
Comment 4•13 years ago
|
||
Are these eng builds or user ones? I can't reproduce that with a user build.
Comment 5•13 years ago
|
||
Comment on attachment 700224 [details] [diff] [review]
Patch
Review of attachment 700224 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/apps/src/Webapps.jsm
@@ +223,5 @@
> let app = this.webapps[aId];
> let baseDir;
> try {
> baseDir = FileUtils.getDir("coreAppsDir", ["webapps", aId], false);
> + if (!baseDir.exists()) return;
nit:
if (!baseDir.exists()) {
return;
}
Attachment #700224 -
Flags: review?(ferjmoreno) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Being able to start the phone is a preferred user feature.
blocking-basecamp: ? → +
Comment 8•13 years ago
|
||
baku, can you land this on b2g18?
Comment 9•13 years ago
|
||
Comment 10•13 years ago
|
||
Landed on inbound and b2g18, marking FIXED.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 11•13 years ago
|
||
Comment 13•13 years ago
|
||
Well...we're starting up now, so marking as verified.
Status: RESOLVED → VERIFIED
Updated•13 years ago
|
status-firefox21:
--- → fixed
Target Milestone: --- → B2G C4 (2jan on)
You need to log in
before you can comment on or make changes to this bug.
Description
•