Closed
Bug 755555
Opened 13 years ago
Closed 3 years ago
console.log messages and webgl verbose errors are not interleaved correctly
Categories
(DevTools :: Console, defect, P2)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: ehsan.akhgari, Unassigned)
References
Details
Attachments
(1 file)
|
444 bytes,
application/xhtml+xml
|
Details |
If you have a WebGL app which does a bunch of console.log calls and also generates a bunch of webgl warnings, the warnings are displayed first, and then all of the console.log messages are displayed. This makes it impossible to use console.log for printf-debugging. Chrome 20 doesn't seem to have the same problem.
Comment 1•12 years ago
|
||
What type of messages are the webgl warnings? We show messages as they arrive in the webconsole output.
Can we get a testcase?
Priority: -- → P3
Comment 2•12 years ago
|
||
WebGL warnings are JS warnings.
Comment 3•12 years ago
|
||
I've been thinking about why this bug might occur and here's why: we have listeners for script errors and console API messages, and we send all these messages from the server to the client console. Messages arrive async and I believe it is possible that they arrive out of order (we have no explicit mechanism to ensure the order of messages we display).
To keep from blocking content scripts the console API implementation returns as early as possible and we queue the sending of those messages to the server, which in turn sends messages to the client (async again). See for example the ConsoleAPI.js implementation - this is probably not the only source of irregularities.
Rob, we discussed the idea of sorting messages in the console output. We don't need any sorting UI but to fix this bug we probably need a way to insert messages in correct order (some logic for sorting). This problem keeps coming back to us.
Any thoughts?
Depends on: console-output
Comment 4•12 years ago
|
||
assuming they're coming in with accurate timestamps, we should probably be inserting them into the correct position when adding them. The timeline should be accurate and in order.
Comment 8•11 years ago
|
||
The asynchronous behavior causes also that the content of objects could be shown incorrectly. In the attachments is a testcase which demonstrates both problems. Unfortunately both issues are making debugging complex problems in web applications unnecessary difficult compared to other browsers.
Updated•11 years ago
|
Priority: P3 → P2
Comment 9•11 years ago
|
||
> compared to other browsers
Just to correct this a little: Chrome shows sometimes a filled array too (on my tests always the first time the testcase gets loaded).
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 10•7 years ago
|
||
Seems like this affects the console when its closed on logging. I get the same behavior for Chrome and Firefox.
Nicolas, is there a way that we can report the correct object state without adding overhead to logging when console is closed?
Flags: needinfo?(nchevobbe)
Comment 11•7 years ago
|
||
How did you test that Harald?
Flags: needinfo?(nchevobbe) → needinfo?(hkirschner)
Comment 12•7 years ago
|
||
STR:
- With Console closed open https://bug755555.bmoattachments.org/attachment.cgi?id=8461750
- Open Console and check last log: Array [ 0 ]
- Refresh
- Check last console log: Array []
ER: Always log `Array []` as last
Flags: needinfo?(hkirschner)
Comment 13•7 years ago
|
||
So it looks like cached messages are affected by later alterations, but this does not really match the original report I think.
I filed Bug 1513978 for that problem.
For the original bug, I'm not sure how to reproduce it/if this is still valid.
Updated•3 years ago
|
Severity: normal → S3
Comment 14•3 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates.
:nchevobbe, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Flags: needinfo?(nchevobbe)
Comment 15•3 years ago
|
||
we have some mechanism to re-order messages based on a microsecond-precise timestamp, so this shouldn't be an issue anymore
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(nchevobbe)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•