Open
Bug 1230737
Opened 9 years ago
Updated 2 years ago
asm.js: storage initialization failed
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
REOPENED
People
(Reporter: duanyao.ustc, Unassigned)
Details
Attachments
(1 file)
64.92 KB,
application/zip
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20151119004053
Steps to reproduce:
Load http://duanyao.github.io/codecbox.js/ , open devtools.
This page contains a big asm.js code, so wait until the console show something.
Actual results:
The console prompt that the asm.js code compiled and stored in cache, or load from cache.
Expected results:
The console prompt:
: Successfully compiled asm.js code (total compilation time 4968ms; storage initialization failed (consider filing a bug)) codecbox.js
This happens for any asm.js code in my profile which is about 3 year old, but doesn't happen in a fresh profile. I remember that asm.js had worked fine with that profile.
What can I do to investigate this issue? I can build firefox on Windows.
This is the console output of firefox win32 debug build when it failed to cache asm.js code,
it seems a quota error:
JavaScript error: file:///D:/project/mozilla-source/moz_src/obj-i686-pc-mingw32/
dist/bin/components/nsHandlerService.js, line 320: NS_ERROR_NOT_IMPLEMENTED: Com
ponent returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIHandlerI
nfo.description]
[Parent 2496] WARNING: '!validSubdirs.GetEntry(subdirName)', file d:/project/moz
illa-source/moz_src/dom/indexedDB/ActorsParent.cpp, line 16520
[Parent 2496] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x8000FFFF:
file d:/project/mozilla-source/moz_src/dom/quota/QuotaManager.cpp, line 2885
[Parent 2496] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/d
om/quota/QuotaManager.cpp, line 2773
[Parent 2496] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/d
om/quota/QuotaManager.cpp, line 3226
[Parent 2496] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/d
om/asmjscache/AsmJSCache.cpp, line 741
[Parent 2496] WARNING: '!validSubdirs.GetEntry(subdirName)', file d:/project/moz
illa-source/moz_src/dom/indexedDB/ActorsParent.cpp, line 16520
[Parent 2496] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x8000FFFF:
file d:/project/mozilla-source/moz_src/dom/quota/QuotaManager.cpp, line 2885
[Parent 2496] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/d
om/quota/QuotaManager.cpp, line 2773
[Parent 2496] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/d
om/quota/QuotaManager.cpp, line 3226
[Parent 2496] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/d
om/asmjscache/AsmJSCache.cpp, line 741
++DOMWINDOW == 33 (21E69C00) [pid = 2496] [serial = 55] [outer = 1C217800]
Comment 2•9 years ago
|
||
Thanks for filing and helping us track this down! This failure message was added in bug 1155726 to catch bugs in the storage/quota-manager subsystem (e.g. bug 1142694). Jan: do you see what might be going wrong from the warning messages above?
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → DOM
Ever confirmed: true
Flags: needinfo?(Jan.Varga)
Yeah, according to https://bugzilla.mozilla.org/show_bug.cgi?id=1142694 , this issue may be caused by some corruption in `<profile>/storage/ directory`, and I managed to narrow it down to `<profile>/storage/default/http+++offlintab.firefoxchina.cn/`. If I copy this dir to a fresh profile, this issue can be reproduced as well. I attached this dir and hope you can reproduce it in your system.
P.S. in a more recent build (changeset: 275743:09d64535bcda , 2015-12-05), the console output changed:
JavaScript error: file:///D:/project/mozilla-source/moz_src/obj-i686-pc-mingw32/
dist/bin/components/nsHandlerService.js, line 320: NS_ERROR_NOT_IMPLEMENTED: Com
ponent returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIHandlerI
nfo.description]
[Parent 13444] WARNING: '!validSubdirs.GetEntry(subdirName)', file d:/project/mo
zilla-source/moz_src/dom/indexedDB/ActorsParent.cpp, line 16482
[Parent 13444] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x8000FFFF:
file d:/project/mozilla-source/moz_src/dom/quota/ActorsParent.cpp, line 3540
[Parent 13444] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/
dom/quota/ActorsParent.cpp, line 3428
[Parent 13444] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/
dom/quota/ActorsParent.cpp, line 3881
[Parent 13444] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/
dom/asmjscache/AsmJSCache.cpp, line 733
[Parent 13444] WARNING: '!validSubdirs.GetEntry(subdirName)', file d:/project/mo
zilla-source/moz_src/dom/indexedDB/ActorsParent.cpp, line 16482
[Parent 13444] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x8000FFFF:
file d:/project/mozilla-source/moz_src/dom/quota/ActorsParent.cpp, line 3540
[Parent 13444] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/
dom/quota/ActorsParent.cpp, line 3428
[Parent 13444] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/
dom/quota/ActorsParent.cpp, line 3881
[Parent 13444] WARNING: 'NS_FAILED(rv)', file d:/project/mozilla-source/moz_src/
dom/asmjscache/AsmJSCache.cpp, line 733
++DOMWINDOW == 63 (1558E400) [pid = 13444] [serial = 101] [outer = 18649800]
Comment 4•9 years ago
|
||
Thanks for narrowing it down, I really appreciate it!
This is another case when the same profile was used with aurora and nightly back and forth.
There's http+++offlintab.firefoxchina.cn/idb/123733528obfaftlni.files subdirectory but there's no 123733528obfaftlni.sqlite
Here's how it happened:
1. nightly created 123733528obfaftlni.sqlite and 123733528obfaftlni.files
2. aurora tried to open the database but it failed so it tried to delete 123733528obfaftlni.sqlite and 123733528obfaftlni (note there's no .files suffix)
3. nightly tried to open the database and failed because there's just 123733528obfaftlni.files w/o a database which is unexpected
A similar bug was filed in bugzilla some time ago but it was closed since we don't support downgrading of profiles which is actually sometimes impossible to do.
I'll try to find the bug and refresh my memory a little bit. I think we could move such orphaned directories to something like "lost+found". bkelly already suggested to do it for a similar problem.
Flags: needinfo?(jvarga)
Comment 5•7 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
Updated•7 years ago
|
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
Updated•6 years ago
|
Priority: -- → P5
Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•