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

Issue 836473003: Avoid gpu watchdog crash on timeout if X is un-responsive. (Closed)

Created:
5 years, 11 months ago by sohanjg
Modified:
5 years, 1 month ago
Reviewers:
danakj, no sievers, piman
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

On timeout, we wait for a XProperty change event with additional timeout. If it arrives we know that X is responsive and is not the cause of the watchdog trigger, so we should terminate. If it times out, it may be due to X taking a long time, but terminating won't help, so ignore the watchdog trigger. BUG=432095 Committed: https://crrev.com/cf28abf824523e4d78b683680fdf87de4dc66901 Cr-Commit-Position: refs/heads/master@{#316757}

Patch Set 1 #

Total comments: 3

Patch Set 2 : create new display and explicitly catch change in prop in watchdog thread. #

Total comments: 5

Patch Set 3 : review comments updated. #

Total comments: 10

Patch Set 4 : review comments addressed. #

Total comments: 18

Patch Set 5 : review comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -3 lines) Patch
M content/gpu/gpu_watchdog_thread.h View 1 2 3 4 3 chunks +23 lines, -0 lines 0 comments Download
M content/gpu/gpu_watchdog_thread.cc View 1 2 3 4 7 chunks +86 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (5 generated)
sohanjg
Can you please take a look, if this is what we want? thanks.
5 years, 11 months ago (2015-01-02 11:51:48 UTC) #2
danakj
https://codereview.chromium.org/836473003/diff/1/content/gpu/gpu_watchdog_thread.cc File content/gpu/gpu_watchdog_thread.cc (right): https://codereview.chromium.org/836473003/diff/1/content/gpu/gpu_watchdog_thread.cc#newcode285 content/gpu/gpu_watchdog_thread.cc:285: if (!XDisplayString(gfx::GetXDisplay())) { What does this do if the ...
5 years, 11 months ago (2015-01-06 00:29:19 UTC) #3
sohanjg
https://codereview.chromium.org/836473003/diff/1/content/gpu/gpu_watchdog_thread.cc File content/gpu/gpu_watchdog_thread.cc (right): https://codereview.chromium.org/836473003/diff/1/content/gpu/gpu_watchdog_thread.cc#newcode285 content/gpu/gpu_watchdog_thread.cc:285: if (!XDisplayString(gfx::GetXDisplay())) { On 2015/01/06 00:29:19, danakj wrote: > ...
5 years, 11 months ago (2015-01-06 12:21:45 UTC) #4
danakj
On 2015/01/06 12:21:45, sohanjg wrote: > https://codereview.chromium.org/836473003/diff/1/content/gpu/gpu_watchdog_thread.cc > File content/gpu/gpu_watchdog_thread.cc (right): > > https://codereview.chromium.org/836473003/diff/1/content/gpu/gpu_watchdog_thread.cc#newcode285 > ...
5 years, 11 months ago (2015-01-06 16:10:05 UTC) #5
danakj
5 years, 11 months ago (2015-01-06 16:10:23 UTC) #7
sohanjg
On 2015/01/06 16:10:23, danakj wrote: If we use XChangeProperty, say we use something like, int ...
5 years, 11 months ago (2015-01-15 13:37:12 UTC) #8
danakj
On 2015/01/15 13:37:12, sohanjg wrote: > On 2015/01/06 16:10:23, danakj wrote: > > If we ...
5 years, 11 months ago (2015-01-22 17:56:10 UTC) #9
sohanjg
On 2015/01/22 17:56:10, danakj wrote: > On 2015/01/15 13:37:12, sohanjg wrote: > > On 2015/01/06 ...
5 years, 10 months ago (2015-01-28 14:44:43 UTC) #10
danakj
On Jan 28, 2015 6:44 AM, <sohan.jyoti@samsung.com> wrote: > > On 2015/01/22 17:56:10, danakj wrote: ...
5 years, 10 months ago (2015-01-28 18:02:51 UTC) #11
sohanjg
On 2015/01/28 18:02:51, danakj wrote: > On Jan 28, 2015 6:44 AM, <mailto:sohan.jyoti@samsung.com> wrote: > ...
5 years, 10 months ago (2015-01-30 12:54:01 UTC) #12
sohanjg
On 2015/01/30 12:54:01, sohanjg wrote: > On 2015/01/28 18:02:51, danakj wrote: > > On Jan ...
5 years, 10 months ago (2015-01-30 12:58:59 UTC) #14
piman
On Fri, Jan 30, 2015 at 4:58 AM, <sohan.jyoti@samsung.com> wrote: > On 2015/01/30 12:54:01, sohanjg ...
5 years, 10 months ago (2015-01-30 20:57:09 UTC) #15
sohanjg
Thank you for your direction piman@. This is a bit rough, can you' please have ...
5 years, 10 months ago (2015-02-02 14:17:19 UTC) #16
piman
https://codereview.chromium.org/836473003/diff/20001/content/gpu/gpu_watchdog_thread.cc File content/gpu/gpu_watchdog_thread.cc (right): https://codereview.chromium.org/836473003/diff/20001/content/gpu/gpu_watchdog_thread.cc#newcode45 content/gpu/gpu_watchdog_thread.cc:45: window_(1), why 1? https://codereview.chromium.org/836473003/diff/20001/content/gpu/gpu_watchdog_thread.cc#newcode291 content/gpu/gpu_watchdog_thread.cc:291: &nbytes, &property_data) == Success) ...
5 years, 10 months ago (2015-02-04 01:03:05 UTC) #17
sohanjg
Can you ptal, if this is what we want ? thanks. https://codereview.chromium.org/836473003/diff/20001/content/gpu/gpu_watchdog_thread.cc File content/gpu/gpu_watchdog_thread.cc (right): ...
5 years, 10 months ago (2015-02-06 10:40:58 UTC) #18
piman
https://codereview.chromium.org/836473003/diff/40001/content/gpu/gpu_watchdog_thread.cc File content/gpu/gpu_watchdog_thread.cc (right): https://codereview.chromium.org/836473003/diff/40001/content/gpu/gpu_watchdog_thread.cc#newcode253 content/gpu/gpu_watchdog_thread.cc:253: int status = poll(fds, 1, timeout_.InMilliseconds()); 1- we need ...
5 years, 10 months ago (2015-02-06 22:49:54 UTC) #19
sohanjg
Thanks for your direction. Sorry for sitting on this, was caught up with something else. ...
5 years, 10 months ago (2015-02-13 05:18:00 UTC) #20
piman
https://codereview.chromium.org/836473003/diff/60001/content/gpu/gpu_watchdog_thread.cc File content/gpu/gpu_watchdog_thread.cc (right): https://codereview.chromium.org/836473003/diff/60001/content/gpu/gpu_watchdog_thread.cc#newcode33 content/gpu/gpu_watchdog_thread.cc:33: #endif nit: move into anonymous namespace above. https://codereview.chromium.org/836473003/diff/60001/content/gpu/gpu_watchdog_thread.cc#newcode257 content/gpu/gpu_watchdog_thread.cc:257: ...
5 years, 10 months ago (2015-02-13 22:28:39 UTC) #21
sohanjg
Thanks. Can you please take a look. https://codereview.chromium.org/836473003/diff/60001/content/gpu/gpu_watchdog_thread.cc File content/gpu/gpu_watchdog_thread.cc (right): https://codereview.chromium.org/836473003/diff/60001/content/gpu/gpu_watchdog_thread.cc#newcode257 content/gpu/gpu_watchdog_thread.cc:257: // timeout ...
5 years, 10 months ago (2015-02-16 09:44:50 UTC) #22
piman
lgtm
5 years, 10 months ago (2015-02-17 16:50:10 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836473003/80001
5 years, 10 months ago (2015-02-18 01:54:36 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-02-18 03:13:52 UTC) #26
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 03:14:48 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cf28abf824523e4d78b683680fdf87de4dc66901
Cr-Commit-Position: refs/heads/master@{#316757}

Powered by Google App Engine
This is Rietveld 408576698