Open
Bug 1458645
Opened 8 years ago
Updated 4 years ago
IPC logging is interspersed resulting in garbled logs
Categories
(Core :: IPC, defect, P3)
Tracking
()
NEW
People
(Reporter: bryce, Unassigned)
Details
When running local builds I'm seeing IPC log messages in the console appear gabled. It appears log lines are being interspersed. For example:
>[Par
> #e##!!! [nPartent][Ru nM5essage] Error: Channel closing3: too late 6to send/r,e cv, messages Gwill be lost
Which I think is a mangling together of the following logs:
> [Parent 536, Gecko_IOThread] WARNING: pipe error: 109: file c:/projects/mozilla-central/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
and
> ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
Comment 1•8 years ago
|
||
Huh, both of these messages are emitted as complete messages, so I would kind of expect stdio locking to handle this. Unless Windows defaults to unlocked I/O by default?
Priority: -- → P3
Comment 2•8 years ago
|
||
There was a similar problem with the ++DOMWINDOW messages that was fixed by using printf_stderr. (We use the ++DOMWINDOW messages as part of one of the leak checking frameworks so it has to be right or we get intermittent oranges.)
| Reporter | ||
Comment 3•7 years ago
|
||
Still seeing stuff like this:
Crash Annotation GraphicsCriticalError: |[0]GP+[GFX1-]: GFX: D3D11 detected a device reset in Present (t=27.9511) |[31]GP+[GFX1-]: [CompositorD3D11] device removed with error code: 0x887a0005, 0x887a0020, 0 (t=65.4511) |[32]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=65.7611) |[33][GFX1-]: GPU processed experienced too many device resets (t=66.2311) |[34][GFX1-]: Compositors might be mixed (3,1) (t=105.601) |[20]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=50.2911) |[21]GP+[GFX1-]: D3D11 swap chain preset failed 0x887a0005 (t=52.1611) |[22]GP+[GFX1-]: [CompositorD3D11] device removed with error code: 0x887a0005, 0x887a0020, 0 (t=52.1611) |[23]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=55.2911) |[24]GP+[GFX1-]: D3D11 swap chain preset failed 0x887a0005 (t=57.1611) |[25]GP+[GFX1-]: [CompositorD3D11] device removed with error code: 0x887a0005, 0x887a0020, 0 (t=57.1611) |[26]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=57.1611) |[27]GP+[GFX1-]: D3D11 swap chain preset failed 0x887a0005 (t=63.4111) |[28]GP+[GFX1-]: [CompositorD3D11] device removed with error code: 0x887a0005, 0x887a0020, 0 (t=63.4111) |[29]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=64.3511) |[30]GP+[GFX1-]: D3D11 swap chain preset failed 0x887a0005 (t=65.4511) [GFX1-]: Compositors might be mixed (3,1)
[Parent 21
6#,# #!G!! e[Chcildk][RounM_essIagOe] TErrhor:r Cehananeld er]ror : cWanAnotR seNnd/IrecNv
G
: file c:/Projects/moz
i###l!!!l [Cahil-d][cRuneMesnsagte] rErraor:l Ch/anniel perrcor:/ cacnnoht srendo/remcv
i
um
#/##!s!! r[Chcild/][RbunMaesssagee] E/rropr: rChaonnecl eerrosr: scan_notu setnd/ireclv
_
win.cc, line 160
Crash Annotation GraphicsCriticalError: |[0]GP+[GFX1-]: GFX: D3D11 detected a device reset in Present (t=27.9511) |[31]GP+[GFX1-]: [CompositorD3D11] device removed with error code: 0x887a0005, 0x887a0020, 0 (t=65.4511) |[32]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=65.7611) |[33][GFX1-]: GPU processed experienced too many device resets (t=66.2311) |[34][GFX1-]: Compositors might be mixed (3,1) (t=105.601) |[35][GFX1-]: Receive IPC close with reason=AbnormalShutdown (t=106.701) |[21]GP+[GFX1-]: D3D11 swap chain preset failed 0x887a0005 (t=52.1611) |[22]GP+[GFX1-]: [CompositorD3D11] device removed with error code: 0x887a0005, 0x887a0020, 0 (t=52.1611) |[23]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=55.2911) |[24]GP+[GFX1-]: D3D11 swap chain preset failed 0x887a0005 (t=57.1611) |[25]GP+[GFX1-]: [CompositorD3D11] device removed with error code: 0x887a0005, 0x887a0020, 0 (t=57.1611) |[26]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=57.1611) |[27]GP+[GFX1-]: D3D11 swap chain preset failed 0x887a0005 (t=63.4111) |[28]GP+[GFX1-]: [CompositorD3D11] device removed with error code: 0x887a0005, 0x887a0020, 0 (t=63.4111) |[29]GP+[GFX1-]: GFX: D3D11 skip BeginFrame with device-removed. (t=64.3511) |[30]GP+[GFX1-]: D3D11 swap chain preset failed 0x887a0005 (t=65.4511) [GFX1-]: Receive IPC close with reason=AbnormalShutdown
[Parent 2116, Compositor] WARNING: Invalid to register the same layer tree twice: file c:/Projects/mozilla-central/gfx/layers/ipc/CompositorBridgeParent.cpp, line 1648
IPDL protocol error: Handler returned error code!
Any suggestions as to how I could debug this?
Comment 4•7 years ago
|
||
It looks like PrintErrorMessage already uses printf_stderr, which was my only thought on what might be going wrong there. The other part is from mozilla::LogWrapper(), which looks like something we use for other things, so you think that'd be okay.
Comment 5•7 years ago
|
||
It looks like the Chromium logging macros in ipc/chromium have been converted into a wrapper around MOZ_LOG (via above mentioned mozilla::LogWrapper) so maybe that's where there would need to be locking?
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•