[Wayland] Firefox 142 crashes when switching to second device using KVM switch
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: mozbugzilla, Assigned: stransky)
References
(Regression)
Details
(Keywords: regression)
Attachments
(5 files)
Steps to reproduce:
I switch between two devices using an external KVM. While firefox was open I switched from device 1 to device 2 using the KVM switch.
Actual results:
After switching back to device 1 from device 2, firefox crashes alongside the firefox crash reporter. This also causes kwin_wayland to crash as well.
Crash Report: https://crash-stats.mozilla.org/report/index/1adc08c6-0dab-49f4-9ff6-17a420250819
I've also attached the journalctl log of a crash.
Expected results:
Firefox does not crash when switching between devices (similar to version 141).
Forgot to mention. Switching the Window Protocol to x11 from wayland solves this issue and firefox does not crash anymore.
Comment 2•4 months ago
|
||
Could you run mozregression? [1]
(In reply to Thinker Li [:sinker] from comment #2)
Could you run mozregression? [1]
2025-08-20T01:08:48.432000: DEBUG : Found commit message:
Bug 1971161 [Wayland] Refresh monitor setup on wp_color_management_output_v1::image_description_changed signal r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D256433
2025-08-20T01:08:48.432000: DEBUG : Did not find a branch, checking all integration branches
2025-08-20T01:08:48.433000: INFO : The bisection is done.
2025-08-20T01:08:48.433000: INFO : Stopped
app_name: firefox
build_date: 2025-07-14 14:09:57.883000
build_file: /home/user/Distrobox/Ubuntu/.mozilla/mozregression/persist/f0b99f7ee3e5--autoland--target.tar.xz
build_type: integration
build_url: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Y88_MEVzSzafbzm0BP-X0Q/runs/0/artifacts/public%2Fbuild%2Ftarget.tar.xz
changeset: f0b99f7ee3e50ee9bd2a80528d55ce845d3b770b
pushlog_url: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=3fa79c09efb02f43a0ec1f2ad7d22d51aaa9dd96&tochange=f0b99f7ee3e50ee9bd2a80528d55ce845d3b770b
repo_name: autoland
repo_url: https://hg.mozilla.org/integration/autoland
task_id: Y88_MEVzSzafbzm0BP-X0Q
| Assignee | ||
Comment 5•4 months ago
|
||
Please run on terminal with env variables WAYLAND_DEBUG=1 MOZ_LOG="WidgetScreen:5" make it crash and attach the log here.
Thanks.
| Assignee | ||
Updated•4 months ago
|
(In reply to Martin Stránský [:stransky] (ni? me) from comment #5)
Please run on terminal with env variables WAYLAND_DEBUG=1 MOZ_LOG="WidgetScreen:5" make it crash and attach the log here.
Thanks.
Here you go
https://crash-stats.mozilla.org/report/index/b865f5ef-960c-4c25-a74a-6fe780250820
Let me know if you need me to check anything else.
| Assignee | ||
Comment 8•4 months ago
|
||
Can you please try latest nightly:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_Nightly_binaries
and attach a the logs from it? (if you see the crashes there too).
Thanks.
| Assignee | ||
Comment 9•4 months ago
|
||
Updated•4 months ago
|
Comment 10•4 months ago
|
||
Set release status flags based on info from the regressing bug 1971161
| Assignee | ||
Comment 11•4 months ago
|
||
Leave open until we get logs from nightly.
| Reporter | ||
Comment 12•4 months ago
|
||
| Reporter | ||
Comment 13•4 months ago
|
||
(In reply to Martin Stránský [:stransky] (ni? me) from comment #8)
Can you please try latest nightly:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_Nightly_binaries
and attach a the logs from it? (if you see the crashes there too).
Thanks.
Here is the crash log from the nightly build
https://crash-stats.mozilla.org/report/index/4ad168b3-fb53-4cdd-974a-833aa0250822
I've also attached the log gathered using WAYLAND_DEBUG=1 MOZ_LOG="WidgetScreen:5". As mentioned in the bug report, starting the nightly build using MOZ_ENABLE_WAYLAND=0 doesn't cause the crash.
This was using firefox 144.0a1
Build id: 20250821091952
| Assignee | ||
Comment 14•4 months ago
|
||
Thanks, will look it it. We should see the correct release callbacks in the log.
Comment 15•4 months ago
|
||
Comment 16•4 months ago
|
||
| bugherder | ||
| Assignee | ||
Comment 17•3 months ago
|
||
I don't see anything wrong in the log - can you please report it at KDE? It should not crash in any case. Also I tested it and can't reproduce.
Updated•3 months ago
|
| Reporter | ||
Comment 18•3 months ago
|
||
(In reply to Martin Stránský [:stransky] (ni? me) from comment #17)
I don't see anything wrong in the log - can you please report it at KDE? It should not crash in any case. Also I tested it and can't reproduce.
For sure. I'll report this on KDE's end as well. I created a bootable USB drive to test this on Fedora 42 Gnome. Using firefox 142:
Fedora 42 Gnome: No crashes despite switching devices multiple times.
Fedora 42 KDE: Crash similar to tumbleweed when using wayland. https://crash-stats.mozilla.org/report/index/b410c7ae-eb2c-4585-915a-1e9350250826
So for some reason, I can't reproduce this on Gnome. Although even on KDE, version 141.0.3 works as expected.
| Reporter | ||
Comment 19•3 months ago
|
||
I've created a bug report on the KDE side as well, https://bugs.kde.org/show_bug.cgi?id=508784
| Reporter | ||
Comment 20•3 months ago
|
||
I got a message from KDE devs that the bug is on their side. Closing the bug here. Thanks again for trying to debug the issue. Really appreciate the help with everything.
Updated•3 months ago
|
Updated•3 months ago
|
Description
•