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

Issue 1714663002: Attempt to fix the crash in blink Scroll Animator. (Closed)

Created:
4 years, 10 months ago by ymalik
Modified:
4 years, 10 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, bokan, chromium-reviews, Eric Willigers, kinuko+watch, rjwright, shans, skobes
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Attempt to fix the crash in blink Scroll Animator. https://crrev.com/1695763003 didn't fix the crash. Maybe the crash is because the delegate is actually null but the call succeeds and eventually results in a crash. Another speculation is that ScrollAnimatorCompositorCoordinator gets garbage collected by oilpan, but the player doesn't know about it. In that case, the fix would be to use USING_PRE_FINALIZER and clear the player in dispose(). BUG=586400 Committed: https://crrev.com/8ce9d13097b1b0e14b9710b0b2670a510e258502 Cr-Commit-Position: refs/heads/master@{#377005}

Patch Set 1 #

Patch Set 2 : added WILL_BE_USING_PRE_FINALIZER #

Total comments: 6

Patch Set 3 : address review feedback #

Total comments: 2

Patch Set 4 : undo scroll animator mac changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -6 lines) Patch
M third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp View 1 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (9 generated)
ymalik
4 years, 10 months ago (2016-02-18 22:34:56 UTC) #3
ajuma
This change looks good, but I think you'll still need the other change you mentioned ...
4 years, 10 months ago (2016-02-18 22:44:35 UTC) #4
bokan
Why not just trace the m_delegate so that OilPan knows not to destruct it in ...
4 years, 10 months ago (2016-02-18 22:51:16 UTC) #6
ymalik
On 2016/02/18 22:51:16, bokan wrote: > Why not just trace the m_delegate so that OilPan ...
4 years, 10 months ago (2016-02-18 23:18:08 UTC) #7
ymalik
Hey guys, PTAL :) Added WILL_BE_USING_PRE_FINALIZER to ScrollAnimatorCompositorCoordinator. I realized that we already had that ...
4 years, 10 months ago (2016-02-20 22:41:58 UTC) #9
ajuma
https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h File third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h (left): https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h#oldcode48 third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h:48: WILL_BE_USING_PRE_FINALIZER(ScrollAnimatorMac, dispose); I'm not sure about this change. Is ...
4 years, 10 months ago (2016-02-22 15:15:01 UTC) #10
bokan
https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (left): https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp#oldcode97 third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:97: #if OS(MACOSX) && ENABLE(OILPAN) On 2016/02/22 15:15:01, ajuma wrote: ...
4 years, 10 months ago (2016-02-22 15:55:35 UTC) #11
ymalik
https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h File third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h (left): https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h#oldcode48 third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.h:48: WILL_BE_USING_PRE_FINALIZER(ScrollAnimatorMac, dispose); On 2016/02/22 15:15:01, ajuma wrote: > I'm ...
4 years, 10 months ago (2016-02-22 19:22:56 UTC) #12
bokan
https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (left): https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp#oldcode97 third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp:97: #if OS(MACOSX) && ENABLE(OILPAN) On 2016/02/22 19:22:56, ymalik1 wrote: ...
4 years, 10 months ago (2016-02-22 19:35:46 UTC) #13
loyso (OOO)
On 2016/02/22 19:35:46, bokan wrote: > If we have something here that needs to happen ...
4 years, 10 months ago (2016-02-22 23:47:20 UTC) #14
loyso (OOO)
https://codereview.chromium.org/1714663002/diff/40001/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp File third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp (right): https://codereview.chromium.org/1714663002/diff/40001/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp#newcode75 third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp:75: if (m_delegate) I think, these changes are unrelated to ...
4 years, 10 months ago (2016-02-22 23:47:29 UTC) #16
loyso (OOO)
A drive-by note/observation: ScrollableArea::scrollAnimator() approach might be error prone (lazy init). Not having an explicit ...
4 years, 10 months ago (2016-02-22 23:59:12 UTC) #17
ymalik
On 2016/02/22 19:35:46, bokan wrote: > https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp > File third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp (left): > > https://codereview.chromium.org/1714663002/diff/20001/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp#oldcode97 > ...
4 years, 10 months ago (2016-02-23 00:44:07 UTC) #18
ymalik
https://codereview.chromium.org/1714663002/diff/40001/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp File third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp (right): https://codereview.chromium.org/1714663002/diff/40001/third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp#newcode75 third_party/WebKit/Source/platform/animation/CompositorAnimationPlayer.cpp:75: if (m_delegate) On 2016/02/22 23:47:29, loyso wrote: > I ...
4 years, 10 months ago (2016-02-23 00:49:33 UTC) #19
loyso (OOO)
On 2016/02/23 00:49:33, ymalik1 wrote: > The premise of this CL is that we need ...
4 years, 10 months ago (2016-02-23 01:08:27 UTC) #20
loyso (OOO)
CompositorAnimationPlayer::m_delegate isn't initialized to nullptr in ctor. Is it?
4 years, 10 months ago (2016-02-23 01:11:10 UTC) #21
loyso (OOO)
On 2016/02/23 00:49:33, ymalik1 wrote: > The premise of this CL is that we need ...
4 years, 10 months ago (2016-02-23 01:16:49 UTC) #22
loyso (OOO)
Fixing the ctor init here: https://codereview.chromium.org/1720313002/
4 years, 10 months ago (2016-02-23 01:26:16 UTC) #23
ajuma
lgtm
4 years, 10 months ago (2016-02-23 14:32:40 UTC) #24
bokan
non-owner lgtm
4 years, 10 months ago (2016-02-23 15:02:12 UTC) #25
ymalik
+Jeremy for Source/platform
4 years, 10 months ago (2016-02-23 15:10:22 UTC) #27
jbroman
rs lgtm
4 years, 10 months ago (2016-02-23 15:18:17 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714663002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714663002/60001
4 years, 10 months ago (2016-02-23 15:26:31 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-23 16:59:19 UTC) #32
commit-bot: I haz the power
4 years, 10 months ago (2016-02-23 17:00:43 UTC) #34
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8ce9d13097b1b0e14b9710b0b2670a510e258502
Cr-Commit-Position: refs/heads/master@{#377005}

Powered by Google App Engine
This is Rietveld 408576698