Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid stderr pollution from chrome/electron logging #132

Open
ssbarnea opened this issue Mar 3, 2022 · 1 comment
Open

Avoid stderr pollution from chrome/electron logging #132

ssbarnea opened this issue Mar 3, 2022 · 1 comment

Comments

@ssbarnea
Copy link

ssbarnea commented Mar 3, 2022

At this moment, while running tests, almost on any platforms, there are a series of notifications or warnings coming from chrome that cannot be addressed. These cannot really be addressed and they make reading the console considerably harder, especially as they are generated by a different process and they appear at random locations in output.

I investigated a redirection of stderr and it seems to be considerably improve the experience. Example of thing that no longer populated the console:

2022-03-03 09:10:37.800 Electron[55575:17722594] ApplePersistence=NO

2022-03-03 09:10:38.695 Code Helper (Renderer)[55583:17722698] CoreText note: Client requested name ".NewYork-Regular", it will get Times-Roman rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2022-03-03 09:10:38.695 Code Helper (Renderer)[55583:17722698] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.

(node:55731) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Electron --trace-deprecation ...` to show where the warning was created)

[55580:0303/091046.311665:ERROR:gles2_cmd_decoder.cc(5004)] [.RendererMainThread-0x7f94b387e600]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawArrays: framebuffer incomplete

[55580:0303/091114.782105:ERROR:gles2_cmd_decoder.cc(5004)] [.RendererMainThread-0x7f94b387e600]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawArrays: framebuffer incomplete

I am not saying that we should sent this to /dev/null, just that we should dump it to an stderr.log instead, so it can be analyzed if really needed.

@connor4312
Copy link
Member

This can be done by consumers fairly easily be appending 2> stderr.log to their command if they find the output unpleasant. Doing that automatically would make debugging any failures significantly harder (e.g. lack of a framebuffer in CI, which is a pretty common stumbling block), so I'm disinclined to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants