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

Issue 10943003: Fix deadlock in VAAPI video decoder error cases. (Closed)

Created:
8 years, 3 months ago by sheu
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org
Base URL:
https://git.chromium.org/git/chromium/src@git-svn
Visibility:
Public.

Description

Fix deadlock in VAAPI video decoder error cases. RETURN_AND_NOTIFY_ON_FAILURE in VaapiVideoDecodeAccelerator calls Cleanup() directly in the case that it's running in the main thread. Unfortunately, this deadlocks when Cleanup() tries to recursively acquire the member lock_. BUG=None TEST=local build, run on lumpy Change-Id: I8055d5db12c6758f356be9616c27f083a5d3a7bf Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158069

Patch Set 1 #

Total comments: 3

Patch Set 2 : use PostTask for Cleanup() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sheu
Ran across this deadlock while debugging VDA-related stuff.
8 years, 3 months ago (2012-09-18 01:26:19 UTC) #1
Pawel Osciak
On 2012/09/18 01:26:19, sheu wrote: > Ran across this deadlock while debugging VDA-related stuff. I ...
8 years, 3 months ago (2012-09-18 02:19:40 UTC) #2
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10943003/diff/1/content/common/gpu/media/vaapi_video_decode_accelerator.cc File content/common/gpu/media/vaapi_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/10943003/diff/1/content/common/gpu/media/vaapi_video_decode_accelerator.cc#newcode25 content/common/gpu/media/vaapi_video_decode_accelerator.cc:25: message_loop_->PostTask(FROM_HERE, base::Bind( \ This will delay clearing client_ potentially ...
8 years, 3 months ago (2012-09-18 02:21:28 UTC) #3
Ami GONE FROM CHROMIUM
On Mon, Sep 17, 2012 at 7:19 PM, <posciak@chromium.org> wrote: > I don't understand, what's ...
8 years, 3 months ago (2012-09-18 02:21:58 UTC) #4
Pawel Osciak
On 2012/09/18 02:21:58, Ami Fischman wrote: > On Mon, Sep 17, 2012 at 7:19 PM, ...
8 years, 3 months ago (2012-09-18 02:24:37 UTC) #5
Ami GONE FROM CHROMIUM
> Of course. I still don't understand what kind of deadlock scenario this > fixes... ...
8 years, 3 months ago (2012-09-18 02:30:38 UTC) #6
sheu
https://chromiumcodereview.appspot.com/10943003/diff/1/content/common/gpu/media/vaapi_video_decode_accelerator.cc File content/common/gpu/media/vaapi_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/10943003/diff/1/content/common/gpu/media/vaapi_video_decode_accelerator.cc#newcode25 content/common/gpu/media/vaapi_video_decode_accelerator.cc:25: message_loop_->PostTask(FROM_HERE, base::Bind( \ That would possibly be racy as ...
8 years, 3 months ago (2012-09-19 08:21:35 UTC) #7
sheu
Second patchset up. https://chromiumcodereview.appspot.com/10943003/diff/1/content/common/gpu/media/vaapi_video_decode_accelerator.cc File content/common/gpu/media/vaapi_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/10943003/diff/1/content/common/gpu/media/vaapi_video_decode_accelerator.cc#newcode25 content/common/gpu/media/vaapi_video_decode_accelerator.cc:25: message_loop_->PostTask(FROM_HERE, base::Bind( \ Oh! I see ...
8 years, 3 months ago (2012-09-19 08:58:57 UTC) #8
Ami GONE FROM CHROMIUM
lgtm
8 years, 3 months ago (2012-09-19 16:52:30 UTC) #9
Pawel Osciak
lgtm
8 years, 3 months ago (2012-09-19 17:01:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/10943003/6001
8 years, 3 months ago (2012-09-19 19:45:30 UTC) #11
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 3 months ago (2012-09-20 04:43:19 UTC) #12
sheu
Tests have been flaky lately. Not like anything VAAPI-related should be causing Windows test failures...
8 years, 3 months ago (2012-09-21 19:17:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/10943003/6001
8 years, 3 months ago (2012-09-21 19:17:39 UTC) #14
commit-bot: I haz the power
8 years, 3 months ago (2012-09-21 20:45:55 UTC) #15
Change committed as 158069

Powered by Google App Engine
This is Rietveld 408576698