New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 601389 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocking:
issue 586427



Sign in to add a comment

Some WebRTC log messages don't make the log

Project Member Reported by grunell@chromium.org, Apr 7 2016

Issue description

Some WebRTC log messages in the end of calls don't make the log.

This is because all we register all logging handlers as listeners, and we filter forwarding of the messages by which render processes that have a MediaStream request. Afaik, the reason for filtering is to avoid unnecessary calls to those not interested in log messages. Since logging in the browser process was introduced, the way we call up to the logging handler (which lives in the embedder) has changed from going through the RenderProcessHost(Impl) to be a direct callback.

With the new design, it allows to and makes more sense to register the callback when logging is started, and unregister when stopping, and then remove the MS request filtering. This will then ensure all messages reaches the logging handlers that are interested.
 
Blocking: 586427
Project Member

Comment 2 by bugdroid1@chromium.org, Apr 8 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/34f2e5e23e6a3a34742089fc49590075d4352685

commit 34f2e5e23e6a3a34742089fc49590075d4352685
Author: grunell <grunell@chromium.org>
Date: Fri Apr 08 12:54:59 2016

Change WebRTC log callback registration in browser process.

This ensures we forward all log messages, also when shutting down.

* Register the callback when logging is started, and unregister when stopping.
* Remove the MediaStream request filtering when running callbacks.

BUG= 601389 

Review URL: https://codereview.chromium.org/1871533002

Cr-Commit-Position: refs/heads/master@{#386058}

[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/chrome/browser/chrome_content_browser_client.cc
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/chrome/browser/media/webrtc_log_uploader_unittest.cc
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/chrome/browser/media/webrtc_logging_handler_host.cc
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/chrome/browser/media/webrtc_logging_handler_host.h
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/content/browser/renderer_host/media/media_stream_manager.cc
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/content/browser/renderer_host/render_process_host_impl.cc
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/content/browser/renderer_host/render_process_host_impl.h
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/content/public/browser/render_process_host.h
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/content/public/test/mock_render_process_host.cc
[modify] https://crrev.com/34f2e5e23e6a3a34742089fc49590075d4352685/content/public/test/mock_render_process_host.h

Cc: tnakamura@chromium.org jansson@chromium.org
Status: Fixed (was: Assigned)
Cc: srcv@chromium.org srnarayanan@chromium.org
Components: Blink>WebRTC>Tools
Thanks for the fix! grunell@, can you describe some logging scenarios that should now work with M51 that may not have worked consistently in M50?
There is some info during shutdown that I saw would not make it, most notably
"AISW: number of detected audio glitches: 0 out of x"

Also other data around glitches I plan to add to the logging.

However, I also noted that often the logging was stopped by the application before these "late messages" reached the logging handler, so it also depends on that.
Status: Verified (was: Fixed)
Verified in M51 Beta 51.0.2704.29 
Established a 2 way hangout call and verified that in the logs (attached), I do not see the line "AISW: number of detected audio glitches: 0 out of x"

(checked with M50, that the logs have the above line)
2052492215.gz
95.0 KB Download
I don't understand how the results in comment #6 verifies this. On the other hand, the result is that we saw a log in M50 and not in M51. In comment #5 I mean that the issue is that the log line often isn't seen.

But as I wrote there too, it also depends on the application so it's not possible to verify reliably. The probability of certain log lines making it should be higher than before.

Sign in to add a comment