Skip to content

ScrollView doesn't use safe reference counting to hide indicators #10514

@stevenbrix

Description

@stevenbrix

Describe the bug

We have a crash in our app, which is attributed to the ScrollView::OnHideIndicatorsTimerTick method that happens after a window has been closed. Looking at the implementation of how this event is registered, it is just grabbing a raw this pointer, so there is no guarantee the pointer is valid once the object has been destroyed.

C++/Winrt docs describing this issue: https://learn.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/weak-references#the-issue

Steps to reproduce the bug

So timing related, good luck reproducing

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Windows version

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions