Closed Bug 1983973 Opened 4 months ago Closed 3 months ago

[Wayland] Firefox 142 crashes when switching to second device using KVM switch

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 142
x86_64
Linux
defect

Tracking

()

RESOLVED MOVED

People

(Reporter: mozbugzilla, Assigned: stransky)

References

(Regression)

Details

(Keywords: regression)

Attachments

(5 files)

Attached file journalctl.log

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).

Component: Untriaged → Widget: Gtk
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64

Forgot to mention. Switching the Window Protocol to x11 from wayland solves this issue and firefox does not crash anymore.

Could you run mozregression? [1]

[1] https://mozilla.github.io/mozregression/quickstart.html

Severity: -- → S2
Flags: needinfo?(mozbugzilla)

(In reply to Thinker Li [:sinker] from comment #2)

Could you run mozregression? [1]

[1] https://mozilla.github.io/mozregression/quickstart.html

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

Flags: needinfo?(mozbugzilla)
Attached file mozreg.log

Please run on terminal with env variables WAYLAND_DEBUG=1 MOZ_LOG="WidgetScreen:5" make it crash and attach the log here.
Thanks.

Flags: needinfo?(mozbugzilla)
Keywords: regression
Regressed by: 1971161
Summary: Firefox 142 crashes when switching to second device using KVM switch → [Wayland] Firefox 142 crashes when switching to second device using KVM switch

(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.

Flags: needinfo?(mozbugzilla)
Attached file moz-crash.log

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.

Flags: needinfo?(mozbugzilla)
Assignee: nobody → stransky
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

Set release status flags based on info from the regressing bug 1971161

Leave open until we get logs from nightly.

Keywords: leave-open
Priority: -- → P3
Attached file nightly.log
Flags: needinfo?(mozbugzilla)

(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

Thanks, will look it it. We should see the correct release callbacks in the log.

Flags: needinfo?(stransky)

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.

Flags: needinfo?(stransky) → needinfo?(mozbugzilla)
See Also: → 1984696

(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.

Flags: needinfo?(mozbugzilla)

I've created a bug report on the KDE side as well, https://bugs.kde.org/show_bug.cgi?id=508784

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.

https://invent.kde.org/plasma/kwin/-/merge_requests/8029

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → INVALID
Duplicate of this bug: 1985561
Duplicate of this bug: 1945226
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: