Closed Bug 1164065 Opened 8 years ago Closed 8 years ago

[B2G] Crash when trying to load a Service Worker

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1163945

People

(Reporter: noemi, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

Being Service Workers preferences properly enabled user_pref('network.disable.ipc.security', true)
user_pref('dom.caches.enabled', true)
user_pref('dom.serviceWorkers.enabled', true)
STRs:
1- Open Browser and go to https://acperez.github.io/gecko-sw-test/
2- Click on "Register" button, re-load the page
3- Go to Settings->Developer->Service Workers, the SW info is properly shown
4- Power off the device
5- Power on the device
6- Go to Browser and try to re-load https://acperez.github.io/gecko-sw-test/ again
a crash occurs and the device re-starts

Please find attached dmp and extra files corresponding to this scenario.

Environmental variables:
Flame device
master build
Gecko: 7a8f888
Gaia: 0974a80
Platform version: 41.0a1

Applying the corresponding symbols to dmp file we have seen that the error appears when trying to load the Service Worker, at https://mxr.mozilla.org/mozilla-central/source/dom/workers/ServiceWorkerScriptCache.cpp#605

0  libxul.so!mozilla::dom::workers::serviceWorkerScriptCache::::CompareNetwork::OnStartRequest [ServiceWorkerScriptCache.cpp : 605 + 0x0]
Summary: Crash when trying to load a Service Worker → [B2G] Crash when trying to load a Service Worker
See Also: → 1164100
(In reply to José Antonio Olivera Ortega [:jaoo] from comment #1)
> Dup of bug 1163945?

I bet it is.
Assignee: nobody → ehsan
Depends on: 1163945
Noemi, can you please retest with the patch I just attached to bug 1163945?  Thanks!
Flags: needinfo?(noemi.freiredecarlos)
Hi,

I've just re-tested with the patch added to Bug 1163945 and the crash is not happening anymore but I'm still not able to load the page (step 6 in the description), the following error appears in the logcat:

E/Browser ( 1732): [JavaScript Error: "Error: Failed to load script (nsresult = 0x80004005)"]

It is same error as the one reported in https://bugzilla.mozilla.org/show_bug.cgi?id=1164100#c0. Since the crash is not happening anymore, marking this bug as duplicate of Bug 1163945.
I'll re-check the remaining issue once Bug 1164100 will be fixed and opened and new one if necessary.
Many Thanks for your quick fix!
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(noemi.freiredecarlos)
Resolution: --- → DUPLICATE
No longer depends on: 1163945
Hi,

I've just re-checked this scenario once Bug 1164100 and Bug 1163945 have been landed and it works fine. I'm able to re-load the page. Thanks for fixing it so quickly!
Glad to hear.  :-)
You need to log in before you can comment on or make changes to this bug.