Closed
Bug 291576
Opened 20 years ago
Closed 20 years ago
[Canvas] dynamically created canvas element crashes browser [@nsCanvasRenderingContext2D::SetTargetImageFrame ]
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: kae, Unassigned)
References
()
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
502 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050423 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050423 Firefox/1.0+
The following page does not crash the browser:
http://verens.com/bugs/firefox/canvas.works.html
but this one does:
http://verens.com/bugs/firefox/canvas.crashes.html
The difference is that the first one has the <canvas> element written explicitly
into the HTML, and in the second one, the <canvas> element is created with
document.createElement('canvas');
Reproducible: Always
Steps to Reproduce:
1.create a canvas element dynamically
2.
3.
Actual Results:
browser crashes
Expected Results:
browser should create a <canvas> element
the following error message appears on the console:
./run-mozilla.sh: line 423: 1845 Segmentation fault "$prog" ${1+"$@"}
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
->NEW
per request reporter
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: dynamically created canvas element crashes browser → [Canvas] dynamically created canvas element crashes browser
Comment 3•20 years ago
|
||
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b2) Gecko/20050423
Firefox/1.0+
None of the cases actually crash for me, but I get these message to stderr
JavaScript error: , line 0: uncaught exception: [Exception... "Component
returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE)
[nsIDOMHTMLCanvasElement.getContext]" nsresult: "0x80070057
(NS_ERROR_ILLEGAL_VALUE)" location: "JS frame ::
https://bugzilla.mozilla.org/attachment.cgi?id=181613 :: onload :: line 12"
data: no]
Updated•20 years ago
|
Assignee: firefox → nobody
Component: General → Layout: Canvas
Product: Firefox → Core
QA Contact: general → layout.canvas
Version: unspecified → Trunk
Comment 4•20 years ago
|
||
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050506 Firefox/1.0+
gdiplus.dll installed.
Crashed loading URL and testcase, identical stack signature
maybe related:
Bug 293245 Implement nsIDOMCanvasRenderingContext2D properly
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB5645638X
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB5645665E
nsCanvasRenderingContext2D::SetTargetImageFrame
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/content/canvas/src/nsCanvasRenderingContext2D.cpp,
line 500]
nsHTMLCanvasElement::GetContext
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/content/html/content/src/nsHTMLCanvasElement.cpp,
line 323]
XPTC_InvokeByIndex
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp,
line 102]
XPCWrappedNative::CallMethod
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp,
line 2065]
XPC_WN_CallMethod
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp,
line 1287]
js_Invoke
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/js/src/jsinterp.c, line 1320]
js_Interpret
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/js/src/jsinterp.c, line 3611]
js_Invoke
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/js/src/jsinterp.c, line 1340]
js_InternalInvoke
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/js/src/jsinterp.c, line 1417]
JS_CallFunctionValue
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/js/src/jsapi.c, line 3851]
nsJSContext::CallEventHandler
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/dom/src/base/nsJSEnvironment.cpp,
line 1385]
nsJSEventListener::HandleEvent
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/dom/src/events/nsJSEventListener.cpp,
line 184]
nsEventListenerManager::HandleEventSubType
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/content/events/src/nsEventListenerManager.cpp,
line 1568]
nsEventListenerManager::HandleEvent
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/content/events/src/nsEventListenerManager.cpp,
line 1669]
nsGlobalWindow::HandleDOMEvent
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/dom/src/base/nsGlobalWindow.cpp,
line 914]
DocumentViewerImpl::LoadComplete
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/layout/base/nsDocumentViewer.cpp,
line 992]
nsDocShell::EndPageLoad
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/docshell/base/nsDocShell.cpp,
line 4627]
nsWebShell::EndPageLoad
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/docshell/base/nsWebShell.cpp,
line 667]
nsDocShell::OnStateChange
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/docshell/base/nsDocShell.cpp,
line 4553]
nsDocLoader::FireOnStateChange
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/uriloader/base/nsDocLoader.cpp,
line 1194]
nsDocLoader::doStopDocumentLoad
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/uriloader/base/nsDocLoader.cpp,
line 832]
nsDocLoader::OnStopRequest
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/uriloader/base/nsDocLoader.cpp,
line 653]
nsLoadGroup::RemoveRequest
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/netwerk/base/src/nsLoadGroup.cpp,
line 732]
PresShell::RemoveDummyLayoutRequest
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/layout/base/nsPresShell.cpp,
line 7041]
DummyLayoutRequestEvent::HandleEvent
[c:/builds/tinderbox/Fx-Trunk/WINNT_5.0_Depend/mozilla/layout/base/nsPresShell.cpp,
line 6941]
0x778b0c24
Depends on: 293245
OS: Linux → All
Summary: [Canvas] dynamically created canvas element crashes browser → [Canvas] dynamically created canvas element crashes browser [@nsCanvasRenderingContext2D::SetTargetImageFrame ]
Comment 5•20 years ago
|
||
I'm pretty sure this has been fixed by the initial checkin of bug 291216. The
example works for me.
Comment 6•20 years ago
|
||
wfm Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b2) Gecko/20050507 Firefox/1.0+
tested on URL and testcase, looking at talkback seems to be fixed by checkin of
bug 291216.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Crash Signature: [@nsCanvasRenderingContext2D::SetTargetImageFrame ]
You need to log in
before you can comment on or make changes to this bug.
Description
•