Open Bug 1974078 Opened 7 months ago Updated 6 months ago

PWAs sometimes crash on launch

Categories

(Firefox for Android :: PWA, defect)

Firefox 140
All
Android
defect

Tracking

()

UNCONFIRMED

People

(Reporter: FormularSumo, Unassigned)

Details

Attachments

(1 file)

Steps to reproduce:

Launch a PWA in Firefox

Examples in which I notice this happening a lot are WordReference and OpenStreetMaps. I have never noticed it using KanbanFlow over many years, nor Pinafore, I assumed because they use service workers to provide an offline-first approach, whereas WordReference and OpenStreetMaps do not work without a connection. However I think I've seen it happen with Cryptee (although considerably less), which likewise is offline-first, so I'm not sure what to make of this.

Actual results:

PWA often opens and immediately crashes, closing, and not showing in the list of open apps. Launching it again then loads without crashing. After this, some PWAs (WordReference in particular) can freeze for quite a few seconds before loading as normal (normally they load near instantly).

Expected results:

PWAs always launch without crashing

https://photos.app.goo.gl/YZKXCxPvf7yL7yF28 - screen recording demonstrating the bug

Have further tested and can confirm it happens with Cryptee as well. Seems to happen after it's been awhile (a few hours usually) and the PWA is not currently loaded in memory.

The severity field is not set for this bug.
:boek, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jboek)

Hey James, if you navigate to about:crashes is this crash present? If so could you link to the crash here?

Flags: needinfo?(jboek) → needinfo?(chewy.h)

Hey, I've taken a look, but unfortunately not. The last crash is from August 2024, so I suspect it and previous ones are unrelated, given this particular crash has happened many times since then. I think it probably doesn't show because Firefox itself isn't crashing as far as I can tell, only the PWA instance/tab which gets forced-closed after loading.

Flags: needinfo?(chewy.h)

How frequently does the crash occur? Could you encounter the crash while having logcat runnging?

Flags: needinfo?(chewy.h)
Flags: needinfo?(chewy.h)

For WordReference (worst case scenario), I'd say it happens at least one in two times when it's been over an hour since I last opened it, but it's still showing in the Android "Recents Screen" (currently open apps).

I did manage to capture it on Logcat and I've attached all that parts that I think might be relevant to this crash (let me know if there's something missing and I can send the full file).

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: