Closed Bug 1743385 Opened 2 years ago Closed 2 years ago

Crash in [@ mozilla::detail::InvalidArrayIndex_CRASH | mozilla::widget::ScreenGetterWayland::GetScreenForWindow]

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1762867

People

(Reporter: gsvelto, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/14e95ea6-99c5-4f85-9af9-3cc210211127

Reason: SIGSEGV / SEGV_MAPERR

Top 10 frames of crashing thread:

0 firefox-bin mozilla::detail::InvalidArrayIndex_CRASH mfbt/Assertions.cpp:50
1 libxul.so mozilla::widget::ScreenGetterWayland::GetScreenForWindow widget/gtk/ScreenHelperGTK.cpp:430
2 libxul.so mozilla::widget::ScreenHelperGTK::GetScreenForWindow widget/gtk/ScreenHelperGTK.cpp:435
3 libxul.so nsWindow::GetWidgetScreen widget/gtk/nsWindow.cpp:6910
4 libxul.so nsWindow::GetDPI widget/gtk/nsWindow.cpp:726
5 libxul.so nsDeviceContext::SetDPI gfx/src/nsDeviceContext.cpp:95
6 libxul.so nsDeviceContext::CheckDPIChange gfx/src/nsDeviceContext.cpp:435
7 libxul.so nsDocumentViewer::SetBoundsWithFlags layout/base/nsDocumentViewer.cpp:1983
8 libxul.so nsDocShell::SetPositionAndSize docshell/base/nsDocShell.cpp:4588
9 libxul.so mozilla::AppWindow::WindowResized xpfe/appshell/AppWindow.cpp:2787

This happens when adding or removing a monitor, typically by docking or undocking a laptop as the comments suggest:

Accidentally unplugged one of the monitors (DisplayPort) during Youtube playback

connecting my external monitor to Laptop probably caused this crash

connecting my external monitor to Laptop probably caused this crash

new screen connected

There's more but you get the gist. The issue is specific to wayland.

Blocks: wayland
Priority: -- → P2

Just fwiw, I hit theis crash more than once just from closing my laptop lid (sleeps the linux system) moving my location (new wifi hotspot) and then resuming. Crash dialog is visible when resumed:

https://crash-stats.mozilla.org/report/index/acaef65f-63d4-4f74-8900-d88980220218

Of note the following is/was my setup and steps:

  1. "At Work Office":
  • Connected to an external screen via a thunderbolt dock
  • Laptop lid was actively closed (only using external screen)
  1. Unplugged the dock

  2. moved locations to connect to a new wifi hotspot on a different floor of my office

  3. Opened my laptop screen to see the crash dialog.

  4. Closed the laptop screen when meeting on this other floor was done

  5. Returned to location/setup as 1.

  6. Saw crash dialog again.

  7. Repeat step 2

  8. Returned home for work today

  9. Saw crash dialog after I plugged in my HDMI cord for local external monitor. (this setup was dual-screen at the moment I noticed the crash dialog, but I routinely close the laptop screen here)

Justin, which desktop / distribution do you use?

Flags: needinfo?(bugspam.Callek)

(In reply to Martin Stránský [:stransky] (ni? me) from comment #2)

Justin, which desktop / distribution do you use?

Admittedly I haven't seen this in a bit, but I use Fedora 35, on Wayland. Gnome 41.3. Firefox DevEd installed by untarring the package on releases.m.o to my /opt folder directly, rather than using an OS distro (I changed the folders perms so that auto update works)

Flags: needinfo?(bugspam.Callek)

I ran into this today (no idea what triggered it, I saw the crash-reporter dialog after unlocking post resume), bp-5fe7eebf-b827-40e4-90af-593670220308. Debian testing, gnome 41.3, wayland session.

This should be already fixed by Bug 1762867

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.