startup crash [@ nsTextBoxFrame::GetTextSize(nsPresContext*, nsIRenderingContext&, nsString const&, nsSize&, int&)]




9 years ago
7 years ago


(Reporter: wsmwk, Unassigned)




Firefox Tracking Flags

(Not tracked)


(crash signature)



9 years ago
(mostly) startup crash [@ nsTextBoxFrame::GetTextSize(nsPresContext*, nsIRenderingContext&, nsString const&, nsSize&, int&)]

#88 crash for Thunderbird v3.03. #10 crash of Thunderbird Mac crash reports.  For firefox, this does not break into top 300.

bp-fee45c22-a3ed-437d-9cad-927c72100401 windows (bobxm) no extensions
"[thunderbird] Crashed ... Repeated and the same. Browser Mozilla does likewise: uninstalling and reinstalling make no difference. Other browsers work OK"
0	thunderbird.exe	nsTextBoxFrame::GetTextSize	 layout/xul/base/src/nsTextBoxFrame.cpp:982
1	thunderbird.exe	nsTextBoxFrame::CalcTextSize	layout/xul/base/src/nsTextBoxFrame.cpp:999
2	thunderbird.exe	nsTextBoxFrame::GetBoxAscent	layout/xul/base/src/nsTextBoxFrame.cpp:1079
3	thunderbird.exe	nsSprocketLayout::GetAscent	layout/xul/base/src/nsSprocketLayout.cpp:1525
4	thunderbird.exe	nsBoxFrame::GetBoxAscent	layout/xul/base/src/nsBoxFrame.cpp:838
5	thunderbird.exe	nsSprocketLayout::GetAscent	layout/xul/base/src/nsSprocketLayout.cpp:1525
6	thunderbird.exe	nsBoxFrame::GetBoxAscent	layout/xul/base/src/nsBoxFrame.cpp:838
7	thunderbird.exe	nsSprocketLayout::GetAscent	layout/xul/base/src/nsSprocketLayout.cpp:1525
8	thunderbird.exe	nsBoxFrame::GetBoxAscent	layout/xul/base/src/nsBoxFrame.cpp:838
9	thunderbird.exe	nsSprocketLayout::GetAscent	layout/xul/base/src/nsSprocketLayout.cpp:1525
10	thunderbird.exe	nsBoxFrame::GetBoxAscent	layout/xul/base/src/nsBoxFrame.cpp:838
11	thunderbird.exe	nsSprocketLayout::GetAscent	layout/xul/base/src/nsSprocketLayout.cpp:1525
12	thunderbird.exe	nsBoxFrame::GetBoxAscent	layout/xul/base/src/nsBoxFrame.cpp:838
13	thunderbird.exe	nsSprocketLayout::GetAscent	layout/xul/base/src/nsSprocketLayout.cpp:1525
14	thunderbird.exe	nsBoxFrame::GetBoxAscent	layout/xul/base/src/nsBoxFrame.cpp:838
15	thunderbird.exe	nsSprocketLayout::Layout	layout/xul/base/src/nsSprocketLayout.cpp:244
16	thunderbird.exe	nsBoxFrame::DoLayout	layout/xul/base/src/nsBoxFrame.cpp:940
17	thunderbird.exe	nsIFrame::Layout	layout/xul/base/src/nsBox.cpp:561
18	thunderbird.exe	nsStackLayout::Layout	layout/xul/base/src/nsStackLayout.cpp:295
19	thunderbird.exe	nsBoxFrame::DoLayout	layout/xul/base/src/nsBoxFrame.cpp:940
20	thunderbird.exe	nsIFrame::Layout	layout/xul/base/src/nsBox.cpp:561
21	thunderbird.exe	nsBoxFrame::Reflow	layout/xul/base/src/nsBoxFrame.cpp:751
22	thunderbird.exe	nsContainerFrame::ReflowChild	layout/generic/nsContainerFrame.cpp:821
23	thunderbird.exe	ViewportFrame::Reflow	layout/generic/nsViewportFrame.cpp:282
24	thunderbird.exe	PresShell::DoReflow	layout/base/nsPresShell.cpp:6717
25	thunderbird.exe	PresShell::ProcessReflowCommands	layout/base/nsPresShell.cpp:6823
26	thunderbird.exe	PresShell::DoFlushPendingNotifications	layout/base/nsPresShell.cpp:4870
27	thunderbird.exe	PresShell::ReflowEvent::Run	layout/base/nsPresShell.cpp:6594
28	xpcom_core.dll	nsThread::ProcessNextEvent	xpcom/threads/nsThread.cpp:521
29	xpcom_core.dll	NS_ProcessNextEvent_P	objdir-tb/mozilla/xpcom/build/nsThreadUtils.cpp:247
30	xpcom_core.dll	nsThread::Shutdown	xpcom/threads/nsThread.cpp:468
31	xpcom_core.dll	NS_InvokeByIndex_P	xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp:102 
32  	xpcom_core.dll  	nsProxyObjectCallInfo::Run  	 xpcom/proxy/src/nsProxyEvent.cpp:181
(stack repeats last 5 frames)

Note: Most Mac crashes are 10.6.3, and some comments suggest it only started crashing on Mac starting v1.6 [1]. But, other version are reported [2].
[1] Mac 10.6
"Thunder ceashes when starting up after upgrade of MacOS 10.6.3"
crashed and can not be operate under the new version of snow leopard 10.6.3
[2] prior to Mac 10.6
bp-23a3663c-9ae9-4baa-9b8a-482572100408 Mac 10.5.8 9L31a

reporters notified of bug report:
bp-79f24a6e-80e2-4a6c-8a39-7d1702100311 (manfred)
bp-d789e32a-bbe6-44e4-8cef-08dea2100331 (brendan)
bp-f2785201-7bc2-4326-af9e-7534e2100313 (ru4)
bp-1885caff-fc15-4439-8eb5-7f1092100331 (lavran) "this has never worked. ever."  no extensions
On both Windows and OS X, these are crashes dereferencing a NULL
nsIFontMetrics pointer.

As such they seem related to bug 554544.

Comment 2

9 years ago
bug 554544 fixed on trunk 2010-04-11, and as of 2010-05-13, so it isn't in 3.1 release candidates.  none of the dudes in comment 0 came forward.
pming 3 others
bp-78ae9a27-2e08-41d8-8eea-0b9d52100610 (dennis)
bp-dbc6683c-ba02-4bab-9abf-7606e2100610 (gdin)
bp-d8ec9102-9095-4e8d-b836-4f3312100531 (jssevestre)

Comment 3

8 years ago
After many days work I solved this problem by re-installing the font: Microsoft sans-serif.

Apparently all of the Mozilla applications will crash on startup with out this font available.
Component: General → General
Product: Thunderbird → Core
QA Contact: general → general

Comment 4

8 years ago
Nice work robert.
Component: General → Graphics
QA Contact: general → thebes


8 years ago
Crash Signature: [@ nsTextBoxFrame::GetTextSize(nsPresContext*, nsIRenderingContext&, nsString const&, nsSize&, int&)]
This seems to happen a lot less frequently in newer versions of Firefox, but it is indeed still happening:*%2C%20nsIRenderingContext%26%2C%20nsString%20const%26%2C%20nsSize%26%2C%20int%26%29

Since it's a simple NULL dereference, should we just paper over this bug?

Also, this seems to properly be a Layout: Text bug.
Component: Graphics → Layout: Text
QA Contact: thebes → layout.fonts-and-text

Comment 7

7 years ago
for thunderbird, crash rate peaked with 3.1.10 	20110414.
And disappears starting with Tbird version 5.

ditto for firefox - one firefox crash in past month is probably just a freak. no firefox crashes for version 6 or newer in past 4 months.
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.