Closed Bug 1311612 Opened 8 years ago Closed 3 years ago

Assert in gfxFontGroup։։GetDefaultFont on x86

Categories

(Core :: Graphics: Text, defect, P3)

51 Branch
x86
Windows 10
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: abbGZcvu_bugzilla.mozilla.org, Unassigned)

References

Details

(Keywords: crash, testcase, Whiteboard: [gfx-noted])

Attachments

(2 files)

Attached image repro.svg
The following SVG file will cause an assertion failure on x86 Windows. The assertion does not trigger on x64 Windows.

<svg xmlns="http://www.w3.org/2000/svg" font-size-adjust="1" font-size="1%" style="font-family:crash;box-shadow:2ex 2ex;transition:4s"/>

I don't know exactly why all the font attributes and styles are needed, but apparently they create some kind of edge case that's not handled.

The assert triggered should be here in the source:
https://dxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxTextRun.cpp#1847
SkyLined, can you post the actual assert log?
Flags: needinfo?(berendjanwever)
:jfkthame, can you comment to the bug?
Flags: needinfo?(jfkthame)
Sotaro: sure, just let me know where I can grab that and I will add it.
Flags: needinfo?(berendjanwever)
I haven't been able to reproducet this locally (I don't currently have a 32-bit Windows system on hand) to investigate further.

I guess it may be related to the extremely small font size causing something to fail? It might also depend whether we're using the GDI or DirectWrite backends.

Could you please attach the about:support info for the system where it fails? Thanks.
Flags: needinfo?(jfkthame)
Attached file about support.txt
As requested, the about:support info for the VM on which it crashes.
OK, this is a VM where graphics acceleration is blocked, and so we end up using the GDI font backend. If you go into about:config and set gfx.font_rendering.directwrite.force-enabled to true, and then restart the browser, does the issue still occur or does that avoid it?
Changing that setting does not affect the outcome.
Whiteboard: [gfx-noted]

I tried to reproduce this issue on a 32bit Windows 10 machine with Intel HD Graphics but it doesnt occur in our latest Release version Fx 85.0 I will close this issue as Works For Me for now but if the issue reoccurs on the reporter side please reopen it.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME

@Skylined does this issue still occur on your end ? and if so are there any steps that might help us reproduce this issue on our side ?

Flags: needinfo?(abbGZcvu_bugzilla.mozilla.org)

No, it no longer crashes on my machine.

Status: RESOLVED → VERIFIED
Flags: needinfo?(abbGZcvu_bugzilla.mozilla.org)
See Also: → 1712165
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: