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

Issue 2934613002: Avoid shutdown crash if audio thread is hung. (Closed)

Created:
3 years, 6 months ago by alokp
Modified:
3 years, 6 months ago
Reviewers:
DaleCurtis, o1ka, pfeldman
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid shutdown crash if audio thread is hung. BUG=729494 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2934613002 Cr-Commit-Position: refs/heads/master@{#479969} Committed: https://chromium.googlesource.com/chromium/src/+/7a4df7ece78ac404d153133e5a80577838ef56f9

Patch Set 1 #

Patch Set 2 : fixes compile error #

Patch Set 3 : rebase #

Patch Set 4 : fixes recursive acquire #

Total comments: 7

Patch Set 5 : leaks audio manager #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -5 lines) Patch
M content/browser/browser_main_loop.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M media/audio/audio_manager.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M media/audio/audio_manager.cc View 1 2 3 4 4 chunks +14 lines, -2 lines 4 comments Download

Messages

Total messages: 42 (29 generated)
alokp
https://codereview.chromium.org/2934613002/diff/60001/media/audio/audio_manager_base.cc File media/audio/audio_manager_base.cc (right): https://codereview.chromium.org/2934613002/diff/60001/media/audio/audio_manager_base.cc#newcode101 media/audio/audio_manager_base.cc:101: DCHECK_EQ(0, num_output_streams_); Changing CHECKs in the constructor to DCHECKs ...
3 years, 6 months ago (2017-06-13 23:35:51 UTC) #17
DaleCurtis
Doesn't this leave the streams running and potentially hit use-after-frees? I think instead you want ...
3 years, 6 months ago (2017-06-13 23:43:15 UTC) #18
alokp
https://codereview.chromium.org/2934613002/diff/60001/media/audio/audio_manager.cc File media/audio/audio_manager.cc (right): https://codereview.chromium.org/2934613002/diff/60001/media/audio/audio_manager.cc#newcode224 media/audio/audio_manager.cc:224: mutable base::Lock hang_lock_; On 2017/06/13 23:43:15, DaleCurtis wrote: > ...
3 years, 6 months ago (2017-06-14 17:34:35 UTC) #22
DaleCurtis
lgtm
3 years, 6 months ago (2017-06-14 19:25:34 UTC) #25
alokp
pfeldman: content/
3 years, 6 months ago (2017-06-14 20:02:20 UTC) #29
pfeldman
https://codereview.chromium.org/2934613002/diff/80001/media/audio/audio_manager.cc File media/audio/audio_manager.cc (right): https://codereview.chromium.org/2934613002/diff/80001/media/audio/audio_manager.cc#newcode86 media/audio/audio_manager.cc:86: return audio_thread_status_ == THREAD_HUNG; We should not sync UI ...
3 years, 6 months ago (2017-06-14 22:38:31 UTC) #30
alokp
https://codereview.chromium.org/2934613002/diff/80001/media/audio/audio_manager.cc File media/audio/audio_manager.cc (right): https://codereview.chromium.org/2934613002/diff/80001/media/audio/audio_manager.cc#newcode86 media/audio/audio_manager.cc:86: return audio_thread_status_ == THREAD_HUNG; On 2017/06/14 22:38:30, pfeldman wrote: ...
3 years, 6 months ago (2017-06-14 23:56:19 UTC) #31
o1ka
lgtm
3 years, 6 months ago (2017-06-15 16:01:17 UTC) #32
pfeldman
lgtm
3 years, 6 months ago (2017-06-16 00:18:07 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2934613002/80001
3 years, 6 months ago (2017-06-16 01:31:18 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/442960)
3 years, 6 months ago (2017-06-16 02:31:19 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2934613002/80001
3 years, 6 months ago (2017-06-16 03:43:55 UTC) #39
commit-bot: I haz the power
3 years, 6 months ago (2017-06-16 06:35:32 UTC) #42
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/7a4df7ece78ac404d153133e5a80...

Powered by Google App Engine
This is Rietveld 408576698