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

Issue 1626163002: Speculative fix for ui::DisplayLinkMac::StopDisplayLink crashes (Closed)

Created:
4 years, 11 months ago by tapted
Modified:
4 years, 10 months ago
Reviewers:
ccameron
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Speculative fix for ui::DisplayLinkMac::StopDisplayLink crashes The CVDisplayLink is tied to a ScopedTypeRef data member of DisplayLinkMac. However, there may be other references. Since there's no guarantee that ~DisplayLinkMac() will invoke the last CVDisplayLinkRelease(..) and clear the callback automatically, clear it explicitly in ~DisplayLinkMac. BUG=564780 Committed: https://crrev.com/2286ddf0119516f7a93feaff4f8ce2edff8c4543 Cr-Commit-Position: refs/heads/master@{#371648}

Patch Set 1 #

Total comments: 2

Patch Set 2 : reference bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M ui/accelerated_widget_mac/display_link_mac.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
tapted
Hi Chris - WDYT? I've verified that doing this correctly reports kCGErrorSuccess when closing a ...
4 years, 11 months ago (2016-01-25 04:59:01 UTC) #2
ccameron
Thanks! lgtm https://codereview.chromium.org/1626163002/diff/1/ui/accelerated_widget_mac/display_link_mac.cc File ui/accelerated_widget_mac/display_link_mac.cc (right): https://codereview.chromium.org/1626163002/diff/1/ui/accelerated_widget_mac/display_link_mac.cc#newcode91 ui/accelerated_widget_mac/display_link_mac.cc:91: // destructor completes. Ensure the callback is ...
4 years, 11 months ago (2016-01-25 18:04:18 UTC) #3
tapted
https://codereview.chromium.org/1626163002/diff/1/ui/accelerated_widget_mac/display_link_mac.cc File ui/accelerated_widget_mac/display_link_mac.cc (right): https://codereview.chromium.org/1626163002/diff/1/ui/accelerated_widget_mac/display_link_mac.cc#newcode91 ui/accelerated_widget_mac/display_link_mac.cc:91: // destructor completes. Ensure the callback is cleared out ...
4 years, 10 months ago (2016-01-26 23:36:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1626163002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1626163002/20001
4 years, 10 months ago (2016-01-26 23:37:35 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-01-27 00:09:54 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2286ddf0119516f7a93feaff4f8ce2edff8c4543 Cr-Commit-Position: refs/heads/master@{#371648}
4 years, 10 months ago (2016-01-27 00:11:26 UTC) #10
pdr.
On 2016/01/27 at 00:11:26, commit-bot wrote: > Patchset 2 (id:??) landed as https://crrev.com/2286ddf0119516f7a93feaff4f8ce2edff8c4543 > Cr-Commit-Position: ...
4 years, 10 months ago (2016-01-27 04:26:16 UTC) #11
pdr.
On 2016/01/27 at 04:26:16, pdr wrote: > On 2016/01/27 at 00:11:26, commit-bot wrote: > > ...
4 years, 10 months ago (2016-01-27 04:30:07 UTC) #12
pdr.
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1637313002/ by pdr@chromium.org. ...
4 years, 10 months ago (2016-01-27 04:30:28 UTC) #13
tapted
4 years, 10 months ago (2016-01-27 04:35:10 UTC) #14
Message was sent while issue was closed.
On 2016/01/27 04:30:07, pdr wrote:
> On 2016/01/27 at 04:26:16, pdr wrote:
> > On 2016/01/27 at 00:11:26, commit-bot wrote:
> > > Patchset 2 (id:??) landed as
> https://crrev.com/2286ddf0119516f7a93feaff4f8ce2edff8c4543
> > > Cr-Commit-Position: refs/heads/master@{#371648}
> > 
> > I think this broke the mac build:
> > ../../ui/accelerated_widget_mac/display_link_mac.cc:94:69: error: null
passed
> to a callee that requires a non-null argument [-Werror,-Wnonnull]
> >       CVDisplayLinkSetOutputCallback(display_link_, nullptr, nullptr);
> >                                                     ~~~~~~~         ^
> > 
> > Let me see if there's an easy fix (the mac bot is down). If not, I'll roll
> this out.
> 
> I'm afraid I don't know how to fix this. I'll roll this out for now so the
build
> is fixed.

sgtm - I'm investigating now. Is there a link to a bot or is that an error you
got locally? (It's super-weird - probably a particular SDK thing which I can
probably repro by updating.. something.)

Powered by Google App Engine
This is Rietveld 408576698