Closed Bug 615801 Opened 15 years ago Closed 15 years ago

'Many Planets Deep' demo triggers endless JS exceptions

Categories

(Core :: Graphics: CanvasWebGL, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jdm, Unassigned)

Details

https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/demos/webkit/ManyPlanetsDeep.html Error: uncaught exception: [Exception... "Could not convert JavaScript argument - 0 was passed, expected object. Did you mean null? arg 1 [nsIDOMWebGLRenderingContext.bindTexture]" nsresult: "0x80570035 (NS_ERROR_XPC_BAD_CONVERT_JS_ZERO_ISNOT_NULL)" location: "JS frame :: https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/demos/webkit/ManyPlanetsDeep.html :: drawPicture :: line 191" data: no]
Also, if you open the error console, the framerate slows down considerably.
This feels like it should block. The difference in frame rate is very noticeable. Nominating.
blocking2.0: --- → ?
This is not our bug, it's a bug in this JS demo. The error message that you get points to line 191 in https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/demos/webkit/ManyPlanetsDeep.html and there we have ctx.bindTexture(ctx.TEXTURE_2D, 0); the parameter 0 here is really a bug, only an object may be passed here, so this code really is wrong, the fix is to use null instead, and our behavior and error message here are perfect!
Status: NEW → RESOLVED
blocking2.0: ? → ---
Closed: 15 years ago
Resolution: --- → INVALID
That works for me :)
You need to log in before you can comment on or make changes to this bug.