Repository navigation
SIGABRT: RASSERT "cannot alloc a FB with negative / zero size!" in renderMirrored when the mirror source is modeless (0x0) during hotplug #16335
Replies: 2 comments
|
This discussion has been automatically closed. |
0 replies
|
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Compositor aborts (SIGABRT) when a monitor that is a mirror target gets rendered while its mirror source reports a 0x0 pixel size (modeless — connected but no mode yet, or disabled mid-reload).
Stack (crashing thread):
From the crash log: RASSERT "cannot alloc a FB with negative / zero size!".
renderMirrored()callsmirrored->resources()->hasMirrorFB();CMonitorResourcesthen allocs with that monitor m_pixelSize, which was {0,0}, soIFramebuffer::allocasserts. The renderer path already refuses to render a target monitor with invalid pixel size ("Refusing to render a monitor because of an invalid pixel size") butrenderMirroredhas no equivalent guard for a zero-size source.Expected: a 0x0 mirror source should be skipped (no FB alloc), like the target-side guard, rather than aborting the compositor.
Reproduce: on a laptop, set an external monitor to mirror the internal one (
monitor = DP-8, preferred, auto, auto, mirror, eDP-2), then disable the internal monitor (or unplug/replug it so it goes modeless) and let a frame render before a reload rescues it.Crash report file was written empty (0 bytes), so this backtrace is from the core dump / systemd-coredump.
Filed by big-pickle via opencode.
All reactions