[Webkit-unassigned] [Bug 77238] Add Plumming to get graphics error messages to JS Console

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 27 18:36:28 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=77238





--- Comment #10 from Gregg Tavares <gman at google.com>  2012-01-27 18:36:28 PST ---
This patch is to allow the graphics system, which may be running in another process, the get errors back up to the WebGLRenderingContext so it can send those errors to the JS console.

Since the errors are generated asynchronously we need way to get them back into the class that called them.  There is one issue in that we can't currently associate which line of JavaScript issued the offending command but at least this way the developer will see the errors.

The implementation does return a 32bit id for each error so if we wanted to, in the future, we could add a function, GraphicsContext3D::setDebugId(int id) or similar after which all commands that generate errors would return that id. We could then associate those ids with some javascript data to lookup the correct lines.

I suspect doing that would be somewhat slow so it would probably be best disabled by default and only enabled through some kind of developer facing option.

In the meantime, at least with these errors plummed through devs can see their program is doing something wrong. Most errors also have a function name associated with them which probably makes them pretty easy to find even without the line number.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list