Skip to content

Firefox PWA instances are not closing properly. #559

@Froggy111

Description

@Froggy111

Description

When closing any firefox PWA instance, it leaves a zombie process which eventually crashes, and reopening the PWA is not possible during that period, and gives an error message "Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile."

Steps to Reproduce

  1. Open web app installed by firefox PWA
  2. Close web app
  3. Open the same web app again
  4. See error

Additional Information

I have tried running the locally installed firefox, the modified firefox runtime binaries, and they all close normally. It is only when using PWAs that the issue occurs.

Crash log from the PWA instance that failed to close:

AbortMessage: xpcom_runtime_abort(###!!! ABORT: file resource://gre/modules/CrashMonitor.sys.mjs:165)
AdapterDeviceID: 0x15bf
AdapterDriverVendor: mesa/radeonsi
AdapterDriverVersion: 24.2.2.0
AdapterVendorID: 0x1002
Add-ons: formautofill%40mozilla.org:1.0.1,pictureinpicture%40mozilla.org:1.0.0,webcompat%40mozilla.org:130.2.0,default-theme%40mozilla.org:1.3,addons-search-detection%40mozilla.com:2.0.0
AsyncShutdownTimeout: {"phase":"IOUtils: waiting for profileBeforeChange IO to complete","conditions":[{"name":"CrashMonitor: Writing notifications to file after receiving profile-before-change and awaiting all checkpoints written","state":{"profile-after-change":true,"final-ui-startup":true,"sessionstore-windows-restored":true,"quit-application-granted":true,"quit-application":true,"profile-change-net-teardown":true,"profile-change-teardown":true,"profile-before-change":true},"filename":"resource://gre/modules/CrashMonitor.sys.mjs","lineNumber":165,"stack":["resource://gre/modules/CrashMonitor.sys.mjs:init:165","resource://gre/modules/nsCrashMonitor.sys.mjs:observe:20"]}]}
AvailablePageFile: 54052831232
AvailablePhysicalMemory: 14432346112
AvailableSwapMemory: 50330071040
AvailableVirtualMemory: 23889838080
BackgroundTaskMode: 0
BuildID: 20240829075237
ContentSandboxCapabilities: 119
ContentSandboxCapable: 1
ContentSandboxLevel: 4
CrashTime: 1726185088
DOMFissionEnabled: 1
DOMIPCEnabled: 1
DesktopEnvironment: kde
EMCheckCompatibility: true
GpuSandboxLevel: 0
GraphicsNumActiveRenderers: 1
GraphicsNumRenderers: 0
HeadlessMode: 0
InstallTime: 1725593988
IsWayland: 1
LastInteractionDuration: 56
LastStartupWasCrash: 0
LinuxUnderMemoryPressure: 0
MozCrashReason: [Parent 36168, Main Thread] ###!!! ABORT: file resource://gre/modules/CrashMonitor.sys.mjs:165
Notes: Arch LinuxFP(D00-L1000-W0000000-T01) Has dual GPUs. GPU #2: AdapterVendorID2: 0x10de, AdapterDeviceID2: 0x28a1WR? WR+ EGL? EGL- GL Context? GL Context+ WebGL? WebGL+ xpcom_runtime_abort(###!!! ABORT: file resource://gre/modules/CrashMonitor.sys.mjs:165)
ProductID: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
ProductName: Firefox
ReleaseChannel: release
SafeMode: 0
SecondsSinceLastCrash: 327
ShutdownProgress: profile-before-change
ShutdownReason: AppClose
StartupCacheValid: 1
StartupCrash: 0
StartupTime: 1726185021
SubmittedFrom: Client
TelemetryEnvironment: {"build":{"applicationId":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","applicationName":"Firefox","architecture":"x86-64","buildId":"20240829075237","version":"130.0","vendor":"Mozilla","displayVersion":"130.0","platformVersion":"130.0","xpcomAbi":"x86_64-gcc3","updaterAvailable":true},"partner":{"distributionId":"firefoxpwa","distributionVersion":"2.12.3","partnerId":null,"distributor":null,"distributorChannel":null,"partnerNames":[]},"system":{"memoryMB":27839,"virtualMaxMB":null,"cpu":{"count":16,"cores":8,"vendor":"AuthenticAMD","name":"AMD Ryzen 7 7840HS w/ Radeon 780M Graphics","family":25,"model":116,"stepping":1,"l2cacheKB":1024,"l3cacheKB":16384,"speedMHz":5137,"extensions":["hasMMX","hasSSE","hasSSE2","hasSSE3","hasSSSE3","hasSSE4A","hasSSE4_1","hasSSE4_2","hasAVX","hasAVX2","hasAES"]},"os":{"name":"Linux","version":"6.10.9-arch1-2","locale":"en-US","distro":"Arch","distroVersion":"rolling"},"hdd":{"profile":{"model":null,"revision":null,"type":null},"binary":{"model":null,"revision":null,"type":null},"system":{"model":null,"revision":null,"type":null}},"gfx":{"D2DEnabled":null,"DWriteEnabled":null,"ContentBackend":"Skia","Headless":false,"EmbeddedInFirefoxReality":null,"TargetFrameRate":60,"textScaleFactor":1,"adapters":[{"description":"AMD Radeon 780M (radeonsi, gfx1103_r1, LLVM 18.1.8, DRM 3.57, 6.10.9-arch1-2)","vendorID":"0x1002","deviceID":"0x15bf","subsysID":null,"RAM":0,"driver":null,"driverVendor":"mesa/radeonsi","driverVersion":"24.2.2.0","driverDate":null,"GPUActive":true},{"description":null,"vendorID":"0x10de","deviceID":"0x28a1","subsysID":null,"RAM":null,"driver":null,"driverVendor":null,"driverVersion":null,"driverDate":null,"GPUActive":false}],"monitors":[{"screenWidth":2560,"screenHeight":1440,"defaultCSSScaleFactor":2,"contentsScaleFactor":2}],"features":{"compositor":"webrender","hwCompositing":{"status":"available"},"gpuProcess":{"status":"unused"},"webrender":{"status":"available"},"wrCompositor":{"status":"blocked:FEATURE_FAILURE_DISABLE_RELEASE_OR_BETA"},"openglCompositing":{"status":"available"},"omtp":{"status":"unused"}}},"appleModelId":null,"hasWinPackageId":null},"settings":{"blocklistEnabled":true,"e10sEnabled":true,"e10sMultiProcesses":8,"fissionEnabled":true,"telemetryEnabled":false,"locale":"en-US","intl":{"requestedLocales":["en-US"],"availableLocales":["en-US"],"appLocales":["en-US"],"systemLocales":["en-US"],"regionalPrefsLocales":["en-US"],"acceptLanguages":["en-US","en"]},"update":{"channel":"release","enabled":true,"autoDownload":true,"background":true},"userPrefs":{"browser.search.region":"SG","browser.urlbar.autoFill":true,"browser.urlbar.autoFill.adaptiveHistory.enabled":false,"browser.urlbar.dnsResolveSingleWordsAfterSearch":0,"browser.urlbar.quicksuggest.dataCollection.enabled":false,"browser.urlbar.suggest.quicksuggest.nonsponsored":false,"browser.urlbar.suggest.quicksuggest.sponsored":false,"general.config.filename":"<set>","network.trr.strict_native_fallback":false,"widget.content.gtk-high-contrast.enabled":true},"sandbox":{"effectiveContentProcessLevel":4,"contentWin32kLockdownState":3},"addonCompatibilityCheckEnabled":true,"isDefaultBrowser":false,"defaultSearchEngine":"google-b-d","defaultSearchEngineData":{"loadPath":"[app][email protected]","name":"Google","origin":"default","submissionURL":"https://www.google.com/search?client=firefox-b-d&q="}},"profile":{"creationDate":19978,"firstUseDate":19978},"addons":{"activeAddons":{"[email protected]":{"version":"1.0.1","scope":1,"type":"extension","updateDay":19978,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":null,"name":"Form Autofill","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19978,"quarantineIgnoredByApp":true,"quarantineIgnoredByUser":false},"[email protected]":{"version":"1.0.0","scope":1,"type":"extension","updateDay":19978,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Fixes for web compatibility with Picture-in-Picture","name":"Picture-In-Picture","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19978,"quarantineIgnoredByApp":true,"quarantineIgnoredByUser":false},"[email protected]":{"version":"130.2.0","scope":1,"type":"extension","updateDay":19978,"isSystem":true,"isWebExtension":true,"multiprocessCompatible":true,"blocklisted":false,"description":"Urgent post-release fixes for web compatibility.","name":"Web Compatibility Interventions","userDisabled":false,"appDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19978,"quarantineIgnoredByApp":true,"quarantineIgnoredByUser":false}},"theme":{"id":"[email protected]","blocklisted":false,"description":"Follow the operating system setting for buttons, menus, and windows.","name":"System theme — auto","userDisabled":false,"appDisabled":false,"version":"1.3","scope":4,"foreignInstall":false,"hasBinaryComponents":false,"installDay":19978,"updateDay":19978},"activeGMPlugins":{"gmp-gmpopenh264":{"version":null,"userDisabled":false,"applyBackgroundUpdates":1}}},"experiments":{"long-term-holdback-2024-h2-velocity-desktop":{"branch":"delivery","type":"nimbus-nimbus"},"csv-import-release-rollout":{"branch":"enable-csv-import","type":"nimbus-rollout"},"upgrade-spotlight-rollout":{"branch":"treatment","type":"nimbus-rollout"},"phc-rollout":{"branch":"rollout","type":"nimbus-rollout"},"highlighting-in-pdfs-rollout":{"branch":"treatment","type":"nimbus-rollout"},"consolidated-search-configuration-row-desktop-relaunch":{"branch":"rollout","type":"nimbus-rollout"},"disable-redirects-for-authretries":{"branch":"control","type":"nimbus-rollout"},"tab-hover-preview-release-rollout":{"branch":"control","type":"nimbus-rollout"},"encrypted-client-hello-fallback-mechanism":{"branch":"control","type":"nimbus-rollout"},"fx-accounts-ping-release-rollout-2":{"branch":"control","type":"nimbus-rollout"}}}
TelemetrySessionId: 0db159d3-e485-46b5-ac25-a54e24c45b24
Throttleable: 1
TotalPageFile: 79523037184
TotalPhysicalMemory: 29191393280
UptimeTS: 66.48181776
UtilityProcessStatus: Running
Vendor: Mozilla
Version: 130.0
XPCOMSpinEventLoopStack: default: AsyncShutdown Spinner for profile-before-change
useragent_locale: en-US
This report also contains technical information about the state of the application when it crashed.

Affected Websites

Every website that I have tried

Environment

System information:
OS: Arch Linux x86_64
Host: HP ZBook Power 15.6 inch G10 A Mobile Workstation PC (SBKPF)
Kernel: Linux 6.10.9-arch1-2
Shell: zsh 5.9
DE: KDE Plasma 6.1.5
WM: KWin (Wayland)
WM Theme: Breeze
CPU: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
GPU 1: NVIDIA GeForce RTX 4050 Max-Q / Mobile [Discrete]
GPU 2: AMD Radeon 780M [Integrated]
FS: BTRFS

Firefox-PWA:
Extension version: 2.12.3
Local version: 2.12.3-1 (tried both the precompiled and self compiled packages from AUR, same issue)
No extensions are installed
Runtime is freshly installed by wiping .local/share/firefox-pwa and reinstalling through the extension
Firefox version: 130.0-1
Firefox developer edition version (shouldn't matter): 131.0b5-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions