Open
Bug 764254
Opened 13 years ago
Updated 3 years ago
"ASSERTION: GetInputStream on invalid context?" after memory-pressure
Categories
(Core :: Graphics: CanvasWebGL, defect, P3)
Tracking
()
NEW
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: assertion, testcase, Whiteboard: webgl-assert)
Attachments
(3 files)
1. Install https://www.squarefree.com/extensions/domFuzzLite3.xpi
2. Load the testcase.
Result:
###!!! ASSERTION: GetInputStream on invalid context?: 'gl', file content/canvas/src/WebGLContext.cpp, line 607
Reporter | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
This assertion, and the check below returning NS_ERROR_FAILURE if gl is null, seem bogus to me:
NS_ASSERTION(gl, "GetInputStream on invalid context?");
if (!gl)
return NS_ERROR_FAILURE;
Indeed, if we just proceed, we're not going to dereference this gl pointer here, all what will happen is we'll call Render() which will immediately return without doing anything, so we'll be left with a gfxImageSurface in default state which is cleared (this constructor takes a aClear optional parameter that defaults to true). So the resulting image will be blank transparent black which seems like a very reasonable choice for a lost context. I don't see anywhere in the spec where we say what should be done in this case?
Comment 3•13 years ago
|
||
Attachment #639936 -
Flags: review?(jgilbert)
Updated•13 years ago
|
Attachment #639936 -
Flags: review?(jgilbert) → review+
Updated•12 years ago
|
Whiteboard: webgl-assert
Updated•6 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•