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)

ARM
Gonk (Firefox OS)
defect
Not set
blocker

Tracking

(blocking-basecamp:+, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed)

VERIFIED FIXED
B2G C4 (2jan on)
blocking-basecamp +
Tracking Status
firefox19 --- wontfix
firefox20 --- wontfix
firefox21 --- fixed
b2g18 --- fixed

People

(Reporter: airpingu, Assigned: kk1fff)

References

Details

(Keywords: regression)

Attachments

(1 file)

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.
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?
Attached patch PatchSplinter Review
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)
(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.
Are these eng builds or user ones? I can't reproduce that with a user build.
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+
Being able to start the phone is a preferred user feature.
blocking-basecamp: ? → +
baku, can you land this on b2g18?
Landed on inbound and b2g18, marking FIXED.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Well...we're starting up now, so marking as verified.
Status: RESOLVED → VERIFIED
Target Milestone: --- → B2G C4 (2jan on)
See Also: → 889696
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: