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

Issue 2601003002: Android: Fix random crash in HW encode accelerator (Closed)

Created:
3 years, 12 months ago by braveyao
Modified:
3 years, 11 months ago
Reviewers:
watk
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Fix random crash in HW encode accelerator There are reports of random Chrome crash due to HW encode accelerator on Android. Possible reason may be: currently we'll reset client factory at encoding error and notify client. But before client stops encoding (calling Destroy() here), if there is any pending frame delivered to encoder, it will fail to get the pointer of client factory. Here we try to leave the client factory life managment to client and only notify the encoding error to client in error handling. BUG=676987 CQ_INCLUDE_TRYBOTS=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 Committed: https://crrev.com/9bb17e2cba3cdac48a775f9375d23fd8f0ac7365 Cr-Commit-Position: refs/heads/master@{#440864}

Patch Set 1 #

Patch Set 2 : address comments #

Total comments: 8

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -6 lines) Patch
M media/gpu/android_video_encode_accelerator.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M media/gpu/android_video_encode_accelerator.cc View 1 2 5 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
braveyao
Hi, watk@, please take a look at this.
3 years, 12 months ago (2016-12-27 23:16:39 UTC) #9
watk
On 2016/12/27 23:16:39, braveyao wrote: > Hi, watk@, please take a look at this. Hmm, ...
3 years, 12 months ago (2016-12-27 23:54:36 UTC) #10
braveyao
On 2016/12/27 23:54:36, watk wrote: > On 2016/12/27 23:16:39, braveyao wrote: > > Hi, watk@, ...
3 years, 12 months ago (2016-12-28 00:08:51 UTC) #11
watk
On 2016/12/28 00:08:51, braveyao wrote: > On 2016/12/27 23:54:36, watk wrote: > > On 2016/12/27 ...
3 years, 12 months ago (2016-12-28 00:16:35 UTC) #12
watk
On 2016/12/28 00:16:35, watk wrote: > On 2016/12/28 00:08:51, braveyao wrote: > > On 2016/12/27 ...
3 years, 12 months ago (2016-12-28 00:36:09 UTC) #13
braveyao
Hi watk@, thanks so much for the suggestion. PTAL. BTW: InvalidateWeakPtrs() causes other problem at ...
3 years, 12 months ago (2016-12-28 00:51:58 UTC) #20
watk
https://codereview.chromium.org/2601003002/diff/20001/media/gpu/android_video_encode_accelerator.cc File media/gpu/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/2601003002/diff/20001/media/gpu/android_video_encode_accelerator.cc#newcode50 media/gpu/android_video_encode_accelerator.cc:50: if (client_ptr_factory_->GetWeakPtr()) { \ It's not possible for this ...
3 years, 12 months ago (2016-12-28 01:01:51 UTC) #21
braveyao
All done. Thanks again for the insight! PTAL. https://codereview.chromium.org/2601003002/diff/20001/media/gpu/android_video_encode_accelerator.cc File media/gpu/android_video_encode_accelerator.cc (right): https://codereview.chromium.org/2601003002/diff/20001/media/gpu/android_video_encode_accelerator.cc#newcode50 media/gpu/android_video_encode_accelerator.cc:50: if ...
3 years, 12 months ago (2016-12-28 01:28:19 UTC) #24
watk
lgtm
3 years, 11 months ago (2016-12-28 17:52:15 UTC) #27
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/2601003002/40001
3 years, 11 months ago (2016-12-28 17:56:18 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:40001)
3 years, 11 months ago (2016-12-28 18:00:31 UTC) #34
commit-bot: I haz the power
3 years, 11 months ago (2017-01-02 15:49:28 UTC) #36
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9bb17e2cba3cdac48a775f9375d23fd8f0ac7365
Cr-Commit-Position: refs/heads/master@{#440864}

Powered by Google App Engine
This is Rietveld 408576698