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

Issue 130253002: Attempt to fixed crash on stop mirroring by stopping render thread on a worker thread. (Closed)

Created:
6 years, 11 months ago by imcheng
Modified:
6 years, 11 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Attempt to fixed crash on stop mirroring by stopping render thread on a worker thread. BUG=324454 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244876

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressed Alpha's comments #

Patch Set 3 : added sequence token for executing render thread join using blocking pool #

Patch Set 4 : Fixed compile for desktop_capture_device_aura.cc. Removed the use of StopOnWorkerThread and use Del… #

Patch Set 5 : Removed sequence token usage since thread is always detached when being stopped #

Patch Set 6 : Fix compile desktop_capture_device_aura.cc #

Total comments: 2

Patch Set 7 : Create render_thread_ during Start() instead of ctor / Stop() #

Total comments: 4

Patch Set 8 : Rebase #

Patch Set 9 : Addressed miu's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -20 lines) Patch
M content/browser/renderer_host/media/desktop_capture_device_aura.cc View 1 2 3 4 5 4 chunks +5 lines, -3 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_device_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_device_impl.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -7 lines 0 comments Download
M content/browser/renderer_host/media/web_contents_video_capture_device.cc View 1 2 3 4 5 6 7 8 6 chunks +34 lines, -9 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
imcheng
https://codereview.chromium.org/130253002/diff/1/content/browser/renderer_host/media/video_capture_device_impl.cc File content/browser/renderer_host/media/video_capture_device_impl.cc (right): https://codereview.chromium.org/130253002/diff/1/content/browser/renderer_host/media/video_capture_device_impl.cc#newcode275 content/browser/renderer_host/media/video_capture_device_impl.cc:275: base::Passed(&capture_machine_)))); Not sure if this is problematic here - ...
6 years, 11 months ago (2014-01-09 01:15:16 UTC) #1
imcheng
Wanted to send this out first as I was already working on this.
6 years, 11 months ago (2014-01-09 01:16:19 UTC) #2
Alpha Left Google
https://codereview.chromium.org/130253002/diff/1/content/browser/renderer_host/media/video_capture_device_impl.cc File content/browser/renderer_host/media/video_capture_device_impl.cc (right): https://codereview.chromium.org/130253002/diff/1/content/browser/renderer_host/media/video_capture_device_impl.cc#newcode275 content/browser/renderer_host/media/video_capture_device_impl.cc:275: base::Passed(&capture_machine_)))); On 2014/01/09 01:15:17, imcheng1 wrote: > Not sure ...
6 years, 11 months ago (2014-01-09 01:37:07 UTC) #3
Alpha Left Google
6 years, 11 months ago (2014-01-09 21:17:00 UTC) #4
imcheng
https://codereview.chromium.org/130253002/diff/1/content/browser/renderer_host/media/video_capture_device_impl.cc File content/browser/renderer_host/media/video_capture_device_impl.cc (right): https://codereview.chromium.org/130253002/diff/1/content/browser/renderer_host/media/video_capture_device_impl.cc#newcode275 content/browser/renderer_host/media/video_capture_device_impl.cc:275: base::Passed(&capture_machine_)))); Thanks for the explanation. I changed the code ...
6 years, 11 months ago (2014-01-09 23:31:09 UTC) #5
imcheng
I added a sequence token to be passed to the blocking pool for doing render ...
6 years, 11 months ago (2014-01-10 02:07:34 UTC) #6
Alpha Left Google
LGTM.
6 years, 11 months ago (2014-01-10 20:02:21 UTC) #7
miu
lgtm
6 years, 11 months ago (2014-01-10 21:49:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/130253002/140001
6 years, 11 months ago (2014-01-10 22:02:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/130253002/140001
6 years, 11 months ago (2014-01-10 23:29:41 UTC) #10
imcheng
FYI, I made some changes to this CL. Previously calling WebContentsCaptureMachine::Stop() will post a task ...
6 years, 11 months ago (2014-01-11 01:44:38 UTC) #11
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=66484
6 years, 11 months ago (2014-01-11 01:58:49 UTC) #12
imcheng
+sergeyu for content/browser/renderer_host/media/desktop_capture_device_aura.cc
6 years, 11 months ago (2014-01-11 02:06:22 UTC) #13
miu
https://codereview.chromium.org/130253002/diff/470002/content/browser/renderer_host/media/web_contents_video_capture_device.cc File content/browser/renderer_host/media/web_contents_video_capture_device.cc (right): https://codereview.chromium.org/130253002/diff/470002/content/browser/renderer_host/media/web_contents_video_capture_device.cc#newcode609 content/browser/renderer_host/media/web_contents_video_capture_device.cc:609: render_thread_.reset(new base::Thread(kRenderThreadName)); Seems strange to create a new thread ...
6 years, 11 months ago (2014-01-11 03:48:35 UTC) #14
imcheng
https://codereview.chromium.org/130253002/diff/470002/content/browser/renderer_host/media/web_contents_video_capture_device.cc File content/browser/renderer_host/media/web_contents_video_capture_device.cc (right): https://codereview.chromium.org/130253002/diff/470002/content/browser/renderer_host/media/web_contents_video_capture_device.cc#newcode609 content/browser/renderer_host/media/web_contents_video_capture_device.cc:609: render_thread_.reset(new base::Thread(kRenderThreadName)); On 2014/01/11 03:48:36, miu wrote: > Seems ...
6 years, 11 months ago (2014-01-13 20:23:23 UTC) #15
miu
lgtm https://codereview.chromium.org/130253002/diff/850001/content/browser/renderer_host/media/web_contents_video_capture_device.cc File content/browser/renderer_host/media/web_contents_video_capture_device.cc (right): https://codereview.chromium.org/130253002/diff/850001/content/browser/renderer_host/media/web_contents_video_capture_device.cc#newcode729 content/browser/renderer_host/media/web_contents_video_capture_device.cc:729: if (success && render_thread_ && render_thread_->message_loop_proxy()) { nit: ...
6 years, 11 months ago (2014-01-13 23:22:13 UTC) #16
miu
lgtm Sorry...one more comment. https://codereview.chromium.org/130253002/diff/850001/content/browser/renderer_host/media/web_contents_video_capture_device.cc File content/browser/renderer_host/media/web_contents_video_capture_device.cc (right): https://codereview.chromium.org/130253002/diff/850001/content/browser/renderer_host/media/web_contents_video_capture_device.cc#newcode582 content/browser/renderer_host/media/web_contents_video_capture_device.cc:582: return false; Add a render_thread_.reset() ...
6 years, 11 months ago (2014-01-13 23:25:10 UTC) #17
imcheng
https://codereview.chromium.org/130253002/diff/850001/content/browser/renderer_host/media/web_contents_video_capture_device.cc File content/browser/renderer_host/media/web_contents_video_capture_device.cc (right): https://codereview.chromium.org/130253002/diff/850001/content/browser/renderer_host/media/web_contents_video_capture_device.cc#newcode582 content/browser/renderer_host/media/web_contents_video_capture_device.cc:582: return false; On 2014/01/13 23:25:10, miu wrote: > Add ...
6 years, 11 months ago (2014-01-14 02:06:51 UTC) #18
imcheng
Friendly ping for Sergey.
6 years, 11 months ago (2014-01-14 02:08:56 UTC) #19
Sergey Ulanov
lgtm
6 years, 11 months ago (2014-01-14 21:14:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/130253002/1010001
6 years, 11 months ago (2014-01-14 23:07:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/130253002/1010001
6 years, 11 months ago (2014-01-15 01:54:10 UTC) #22
commit-bot: I haz the power
6 years, 11 months ago (2014-01-15 14:00:13 UTC) #23
Message was sent while issue was closed.
Change committed as 244876

Powered by Google App Engine
This is Rietveld 408576698