Crash on launch after updating to 154: Wayland protocol error: the specified toplevel id is already used
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: jw_bugzilla+mozilla, Unassigned)
Details
(Keywords: crash)
Overview
Running on Fedora 44 KDE Wayland, I recently updated Firefox from 153 to 154 and am now experiencing a crash on launch.
I cannot recall whether on first launch I was offered the session-restore page, but now every launch does so. Shortly after clicking the "restore" button (while loading the existing tabs), Firefox crashes, usually within 1-10 seconds.
If run from a terminal, the error displayed is [GFX1-]: (kde) Wayland protocol error: xdg_session_v1#76: error 1: the specified toplevel id is already used. The number after the hash changes with system reboot.
Reproducibility
The crash occurs in safe mode, and I can reproduce it on a new profile by only copying over the contents of the sessionstore-backups folder to the new profile. If there is some way to sanitise this data to pass over for reproducing the issue, I am happy to do so.
I have been unable to find the issue with mozregression, since instructing it to load a profile does not seem to actually bring in the session-restore data, even when using about:sessionrestore as the target page. Again, if there is some way to achieve this I have no problem taking the time to do so.
Relevant Links
This is likely strongly related to https://bugzilla.mozilla.org/show_bug.cgi?id=2059617 (unsure whether I should have simply added comments to that report; apologies if so!)
Various crash reports for what looks to be the same issue have accumulated in the last couple days:
https://crash-stats.mozilla.org/signature/?product=Firefox&version=154.0&signature=%3Cname%20omitted%3E%20%7C%20mozilla%3A%3Awidget%3A%3AWlLogHandler&date=%3E%3D2026-08-20T00%3A00%3A00.000Z&date=%3C2026-08-21T00%3A00%3A00.000Z&_columns=date&_columns=product&_columns=version&_columns=build_id&_columns=platform&_columns=reason&_columns=address&_columns=install_time&_columns=startup_crash&_sort=-date&page=1#reports
Additional Notes
I have spent some time removing tabs from those to be restored to find minimal examples of open tabs that still suffice to cause the crash.
- Originally, I had 15 Firefox windows open. I have found there are 4 distinct "pairs" of windows such that the inclusion of any one "pair" in the tabs to be restored is sufficient to cause the crash (and removing one half of each pair is sufficient for the other 11 windows to open safely); it seems like there is some kind of clash where both windows in each pair must try to claim the same ID.
- Within any given offending window pair, the precise tab(s) to open do not seem to matter - each can be reduced to any single tab from its original complement and still cause a crash.
- Waiting around 15-20s (and certainly 30s+) between launching firefox and clicking the session restore button has proven sufficient to avoid the crash when already limited to a minimal example (e.g. a single crashing pair of windows). However, this did not seem to work on the full 15 windows - possibly over time the windows have a chance to reallocate into non-clashing IDs?
Comment 1•3 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•3 months ago
|
Description
•