Closed Bug 1760298 Opened 4 years ago Closed 2 years ago

[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(296,34620)

Categories

(Core :: Graphics, defect)

Firefox 100
Unspecified
All
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: pmenzel+bugzilla.mozilla.org, Unassigned)

References

Details

(Keywords: nightly-community, reproducible, Whiteboard: [closeme 2024-08-20])

Steps to reproduce:

Use Debian sid/unstable with GNOME Shell 41.4 under X.Org session and firefox-esr 91.7.0esr-1.

Actual results:

Looking at the (systemd) (user) journal, the firefox-esr process logs

firefox-esr.desktop[165027]: [GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(296,34620)

several thousand times:

$ journalctl -b | grep firefox-esr | grep -c GFX1
9102

Expected results:

No failure message should be present.

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

Reclassifying under Graphics.

Is this a persistent problem, or did it just happen on that one day?

(I think this sort of error logging is somewhat expected for certain classes of web content. It's Firefox telling you that something is requesting that we create a 34,620px tall graphical surface, and we're failing to allocate a surface of that size, and apparently falling back gracefully (and probably failing to paint something, though maybe it didn't end up being noticeable).

Component: Layout → Graphics
Flags: needinfo?(pmenzel+bugzilla.mozilla.org)

What were you doing at the time the error was triggered? If possible, can you supply the website you were on, etc.?

Severity: -- → S4

I can reproduce this on Nightly111.0a1 Windows10.

STR:

  1. The failure appears when open https://bugzilla.mozilla.org/attachment.cgi?id=9312575 and a couple of zoom in.

Actual results:

Failure Log
(#0) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(25130,25130)
(#1) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(25130,25130)
(#2) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(25130,25130)
(#3) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(25130,25130)
(#4) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(27405,27405)
(#5) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(30137,30137)
(#6) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(33473,33474)
(#7) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(37644,37645)
(#8) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(37644,37645)
(#9) 	CP+[GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(37644,37645)
See Also: → 1810708
OS: Unspecified → All

On Debian sid/unstable with gnome-shell 43.3-1 and Wayland, and firefox 109.0-1:

Mar 01 13:43:59 dellxps139370 firefox.desktop[71316]: [GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(249,36537)
Mar 01 13:43:59 dellxps139370 firefox.desktop[71316]: [GFX1-]: Failed to allocate a surface due to invalid size (DTD) Size(249,36537)
Flags: needinfo?(pmenzel+bugzilla.mozilla.org)

Thanks for the update. Per comment 3, could you clarify what website and/or actions seem to trigger this issue?

(We do have one testcase in comment 4, with a somewhat-pathological testcase, using a 9999px-sized box-shadow, which we probably gracefully decline to paint per my last paragraph of comment 2. It would be useful to know what real-world web content is triggering the issue for the reporter here, though, if you can determine that.)

Flags: needinfo?(pmenzel+bugzilla.mozilla.org)

Paul?

Whiteboard: [closeme 2024-08-20]

I checked my user log files that go back to May 24th, 2024. I haven’t seen this in there. I am currently using gnome-shell 47beta-1 and firefox-nightly 131.0a120240808214725.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(pmenzel+bugzilla.mozilla.org)
Resolution: --- → WORKSFORME

Thanks!

You need to log in before you can comment on or make changes to this bug.