Crash in [@ gfxWindowsPlatform::SetupClearTypeParams]
Categories
(Core :: Graphics: Text, defect, P3)
Tracking
()
People
(Reporter: gsvelto, Assigned: jfkthame)
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
This bug is for crash report bp-ceeaefd9-f81d-406d-9c5f-f75350200221.
Top 10 frames of crashing thread:
0 xul.dll gfxWindowsPlatform::SetupClearTypeParams gfx/thebes/gfxWindowsPlatform.cpp:1106
1 xul.dll gfxWindowsPlatform::InitDWriteSupport gfx/thebes/gfxWindowsPlatform.cpp:370
2 xul.dll gfxWindowsPlatform::InitAcceleration gfx/thebes/gfxWindowsPlatform.cpp:331
3 xul.dll static gfxPlatform::Init gfx/thebes/gfxPlatform.cpp:1009
4 xul.dll static gfxPlatform::InitChild gfx/thebes/gfxPlatform.cpp:517
5 xul.dll mozilla::dom::ContentChild::RecvSetXPCOMProcessAttributes dom/ipc/ContentChild.cpp:629
6 xul.dll mozilla::dom::PContentChild::OnMessageReceived ipc/ipdl/PContentChild.cpp:11014
7 xul.dll mozilla::ipc::MessageChannel::DispatchMessage ipc/glue/MessageChannel.cpp:2137
8 xul.dll nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1220
9 xul.dll NS_ProcessNextEvent xpcom/threads/nsThreadUtils.cpp:481
Not a new crash since I could find crashes with the same stack going back all the way to ESR68. This is a simple NULL-pointer dereference. We're not checking the HRESULT value returned by IDWriteFactory::CreateRenderingParams() before accessing the pointer it returns so we're probably getting a NULL pointer there.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•4 years ago
|
||
25 crashes on a single installation in the November 11 Nightlies.
Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
The MSDN doc doesn't give any hint as to why IDWriteFactory::CreateRenderingParams() might fail, but given that it returns an HRESULT
we really ought to check it. And then subsequent code will need to be prepared to deal with the params not being available, and gfxWindowsPlatform::GetRenderingParams
potentially returning null. This will eventually lead to setting a null textRenderingParams in DrawTargetD2D1::FillGlyphs
, but that should be OK according to the docs.
(I'm suspicious that if CreateRenderingParams
fails, it could indicate something is pretty broken in the dwrite world, and maybe we're doomed to crash or render garbage or something anyhow. But perhaps that's overly pessimistic. In principle we should be able to proceed without having rendering-params instances, and just get default text-rendering behavior.)
Comment 5•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•