Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Issue 1036703002: Add a hang monitor for the audio thread. (Closed)

Created:
5 years, 9 months ago by DaleCurtis
Modified:
5 years, 9 months ago
Reviewers:
nasko
CC:
chromium-reviews, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org, tommi (sloooow) - chröme
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a hang monitor for the audio thread. We've seen a bunch of reports in the field that the audio thread is getting hung for significant (perhaps indefinite) amounts of time; to help debug these reports, add a hang monitor which will crash the browser process and ensure we get a thread dump of what's going on. The hang timer is set extremely conservatively right now, at 1 minute, which is insanely long for audio tasks. I'll monitor crash reports and adjust it as necessary to find culprits. The hang monitor uses the browser I/O thread for hang checks, which is similar to what other hung task monitors seem to do. To do this I had to move AudioManager and MidiManager creation to after the browser threads have been spun up. Which shouldn't be an issue... BUG=422522, 469827 TEST=hang time exceeded ==> crash. Committed: https://crrev.com/fecee0475788ffe261a233d1cc6d2d885ef7269e Cr-Commit-Position: refs/heads/master@{#322276}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Disable for OSX. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -11 lines) Patch
M content/browser/browser_main_loop.cc View 2 chunks +11 lines, -9 lines 0 comments Download
M media/audio/audio_manager.h View 1 chunk +7 lines, -0 lines 0 comments Download
M media/audio/audio_manager.cc View 1 2 chunks +69 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
DaleCurtis
cc:tommi,henrika as FYI.
5 years, 9 months ago (2015-03-24 23:14:33 UTC) #2
henrika (OOO until Aug 14)
Great stuff Dale. Would it be beneficial to add UMA to this?
5 years, 9 months ago (2015-03-25 13:25:55 UTC) #3
nasko
I have just a couple of questions, otherwise looks good. https://codereview.chromium.org/1036703002/diff/1/media/audio/audio_manager.cc File media/audio/audio_manager.cc (right): https://codereview.chromium.org/1036703002/diff/1/media/audio/audio_manager.cc#newcode28 ...
5 years, 9 months ago (2015-03-25 17:28:00 UTC) #4
DaleCurtis
https://codereview.chromium.org/1036703002/diff/1/media/audio/audio_manager.cc File media/audio/audio_manager.cc (right): https://codereview.chromium.org/1036703002/diff/1/media/audio/audio_manager.cc#newcode28 media/audio/audio_manager.cc:28: CHECK(!monitor_task_runner_); On 2015/03/25 17:28:00, nasko wrote: > nit: Can ...
5 years, 9 months ago (2015-03-25 20:28:56 UTC) #5
DaleCurtis
henrika: No need to UMA, this is going to crash the entire browser so we'll ...
5 years, 9 months ago (2015-03-25 20:29:14 UTC) #6
nasko
LGTM https://codereview.chromium.org/1036703002/diff/1/media/audio/audio_manager.cc File media/audio/audio_manager.cc (right): https://codereview.chromium.org/1036703002/diff/1/media/audio/audio_manager.cc#newcode28 media/audio/audio_manager.cc:28: CHECK(!monitor_task_runner_); On 2015/03/25 20:28:56, DaleCurtis wrote: > On ...
5 years, 9 months ago (2015-03-25 20:52:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1036703002/20001
5 years, 9 months ago (2015-03-25 22:28:35 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/47456)
5 years, 9 months ago (2015-03-25 23:45:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1036703002/20001
5 years, 9 months ago (2015-03-26 00:02:43 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-26 00:37:50 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 00:38:42 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fecee0475788ffe261a233d1cc6d2d885ef7269e
Cr-Commit-Position: refs/heads/master@{#322276}

Powered by Google App Engine
This is Rietveld 408576698