Firefox Crash [@ JS_updateMallocCounter ]

RESOLVED FIXED in mozilla10

Status

()

Core
Canvas: 2D
--
critical
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: marcia, Assigned: mattwoodrow)

Tracking

({crash})

Trunk
mozilla10
x86
Windows 7
crash
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [inbound], crash signature)

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Seen while looking at the explosive report for Firefox 7. Bug 656947 was filed a while back and was fixed, but the signature is still showing up in builds ups to 9.0a2.

https://crash-stats.mozilla.com/report/list?signature=JS_updateMallocCounter - Most if not all of the comments mention printing.

Frame 	Module 	Signature [Expand] 	Source
0 	mozjs.dll 	JS_updateMallocCounter 	js/src/jsapi.cpp:2018
1 	xul.dll 	nsCanvasRenderingContext2DAzure::SetDimensions 	content/canvas/src/nsCanvasRenderingContext2DAzure.cpp:1265
2 	xul.dll 	nsHTMLCanvasElement::UpdateContext 	content/html/content/src/nsHTMLCanvasElement.cpp:585
3 	xul.dll 	nsHTMLCanvasElement::GetContext 	content/html/content/src/nsHTMLCanvasElement.cpp:506
4 	xul.dll 	nsHTMLCanvasElement::CopyInnerTo 	content/html/content/src/nsHTMLCanvasElement.cpp:160
5 	xul.dll 	nsHTMLCanvasElement::Clone 	content/html/content/src/nsHTMLCanvasElement.cpp:108
6 	xul.dll 	nsNodeUtils::CloneAndAdopt 	content/base/src/nsNodeUtils.cpp:520
7 	xul.dll 	nsNodeUtils::CloneAndAdopt 	content/base/src/nsNodeUtils.cpp:666
8 	xul.dll 	nsNodeUtils::CloneAndAdopt 	content/base/src/nsNodeUtils.cpp:666
9 	xul.dll 	nsNodeUtils::CloneAndAdopt 	content/base/src/nsNodeUtils.cpp:666
10 	xul.dll 	nsNodeUtils::CloneAndAdopt 	content/base/src/nsNodeUtils.h:301
11 	xul.dll 	nsNodeUtils::CloneNodeImpl 	content/base/src/nsNodeUtils.cpp:439
12 	xul.dll 	nsDocument::CloneNode 	content/base/src/nsDocument.cpp:5778
13 	xul.dll 	nsIDocument::CreateStaticClone 	content/base/src/nsDocument.cpp:7980
14 	xul.dll 	nsPrintObject::Init 	layout/printing/nsPrintObject.cpp:122
15 	xul.dll 	nsPrintEngine::DoCommonPrint 	layout/printing/nsPrintEngine.cpp:543
16 	xul.dll 	nsPrintEngine::CommonPrint 	layout/printing/nsPrintEngine.cpp:444
17 	xul.dll 	nsPrintEngine::Print 	layout/printing/nsPrintEngine.cpp:759
18 	xul.dll 	DocumentViewerImpl::Print 	layout/base/nsDocumentViewer.cpp:3679
19 	xul.dll 	DocumentViewerImpl::LoadComplete 	
20 	xul.dll 	nsDocShell::EndPageLoad 	docshell/base/nsDocShell.cpp:6163
21 	xul.dll 	nsDocShell::OnStateChange 	docshell/base/nsDocShell.cpp:5999
22 	xul.dll 	nsDocLoader::FireOnStateChange 	uriloader/base/nsDocLoader.cpp:1339
23 	xul.dll 	nsDocLoader::doStopDocumentLoad 	uriloader/base/nsDocLoader.cpp:947
24 	xul.dll 	nsDocLoader::DocLoaderIsEmpty 	uriloader/base/nsDocLoader.cpp:823
25 	xul.dll 	nsDocLoader::OnStopRequest 	uriloader/base/nsDocLoader.cpp:707
26 	xul.dll 	nsLoadGroup::RemoveRequest 	netwerk/base/src/nsLoadGroup.cpp:734
27 	xul.dll 	nsBaseChannel::OnStopRequest 	netwerk/base/src/nsBaseChannel.cpp:735
28 	xul.dll 	nsInputStreamPump::OnStateStop 	netwerk/base/src/nsInputStreamPump.cpp:578
29 	xul.dll 	nsInputStreamPump::OnInputStreamReady 	netwerk/base/src/nsInputStreamPump.cpp:403
30 	xul.dll 	nsInputStreamReadyEvent::Run 	xpcom/io/nsStreamUtils.cpp:114
31 	xul.dll 	nsThread::ProcessNextEvent 	xpcom/threads/nsThread.cpp:617
32 	xul.dll 	mozilla::ipc::MessagePump::Run 	ipc/glue/MessagePump.cpp:110
33 	xul.dll 	xul.dll@0xb8ab03 	
34 	xul.dll 	MessageLoop::RunHandler 	ipc/chromium/src/base/message_loop.cc:202
35 	xul.dll 	xul.dll@0x2fc9af 	
36 	xul.dll 	MessageLoop::Run 	ipc/chromium/src/base/message_loop.cc:176
37 	xul.dll 	nsNativeThemeWin::WidgetStateChanged 	widget/src/windows/nsNativeThemeWin.cpp:2242
(Assignee)

Updated

6 years ago
Assignee: nobody → matt.woodrow
(Assignee)

Comment 1

6 years ago
Created attachment 565417 [details] [diff] [review]
Null check the JS context

Exactly the same as the normal canvas context.
Attachment #565417 - Flags: review?(bas.schouten)
Attachment #565417 - Flags: review?(bas.schouten) → review+
(Assignee)

Comment 2

6 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/0c06915f4465
Whiteboard: [inbound]
https://hg.mozilla.org/mozilla-central/rev/0c06915f4465
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
Duplicate of this bug: 711397
You need to log in before you can comment on or make changes to this bug.