Repository navigation
[Inflight/Candidate] [Windows] Fix ScrollView handler leak in device test - #39060
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run maui-pr-uitests , maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
|
Note 🔍
|
This comment has been minimized.
This comment has been minimized.
|
The This is an automation failure, not a verdict on the PR tests. Maintainers can retry |
eaf170a to
c219b28
Compare
c8e013a to
1d88006
Compare
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Updated [Microsoft.AspNetCore.Authentication.Facebook](https://github.com/dotnet/dotnet) from 10.0.0 to 10.0.10. <details> <summary>Release notes</summary> _Sourced from [Microsoft.AspNetCore.Authentication.Facebook's releases](https://github.com/dotnet/dotnet/releases)._ No release notes found for this version range. Commits viewable in [compare view](https://github.com/dotnet/dotnet/commits). </details> Updated [Microsoft.AspNetCore.Authentication.Google](https://github.com/dotnet/dotnet) from 10.0.0 to 10.0.10. <details> <summary>Release notes</summary> _Sourced from [Microsoft.AspNetCore.Authentication.Google's releases](https://github.com/dotnet/dotnet/releases)._ No release notes found for this version range. Commits viewable in [compare view](https://github.com/dotnet/dotnet/commits). </details> Updated [Microsoft.AspNetCore.Authentication.MicrosoftAccount](https://github.com/dotnet/dotnet) from 10.0.0 to 10.0.10. <details> <summary>Release notes</summary> _Sourced from [Microsoft.AspNetCore.Authentication.MicrosoftAccount's releases](https://github.com/dotnet/dotnet/releases)._ No release notes found for this version range. Commits viewable in [compare view](https://github.com/dotnet/dotnet/commits). </details> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d42d94d to
e63456f
Compare
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Note 🔍
|
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
Note 🔍
|
AI Review Summary
🗂️ Review Sessions — click to expand🚦 Gate — Test Before & After FixGate Result:
|
…test (#39060) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details The ScrollView Does Not Leak test fails in CI after PR [#37428](#37428), while the test passes locally. ### Root Cause The ScrollViewer has direct event subscriptions to ScrollViewHandler for Loading, Loaded, Unloaded, and ViewChanged. These event subscriptions can keep the ScrollViewHandler and its associated MAUI ScrollView alive during teardown, causing the ScrollView Does Not Leak test to fail in CI. The queued dispatcher callback from PR [#37428](#37428) can also retain the ScrollViewHandler and native ScrollViewer while it is pending. ### Description of Change Updated the native ScrollViewer event subscriptions to use a ScrollViewEventProxy that holds a weak reference to the ScrollViewHandler for Loading, Loaded, Unloaded, and ViewChanged. This prevents the native event subscriptions from strongly retaining the handler and the associated MAUI ScrollView during teardown. The queued dispatcher callback also uses weak references to avoid retaining the ScrollViewHandler and native ScrollViewer while the callback is pending. These changes preserve the existing event and focus-restoration behavior while preventing the ScrollView from being retained during teardown. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dhivya-SF4094 <127717131+Dhivya-SF4094@users.noreply.github.com>
…test (#39060) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details The ScrollView Does Not Leak test fails in CI after PR [#37428](#37428), while the test passes locally. ### Root Cause The ScrollViewer has direct event subscriptions to ScrollViewHandler for Loading, Loaded, Unloaded, and ViewChanged. These event subscriptions can keep the ScrollViewHandler and its associated MAUI ScrollView alive during teardown, causing the ScrollView Does Not Leak test to fail in CI. The queued dispatcher callback from PR [#37428](#37428) can also retain the ScrollViewHandler and native ScrollViewer while it is pending. ### Description of Change Updated the native ScrollViewer event subscriptions to use a ScrollViewEventProxy that holds a weak reference to the ScrollViewHandler for Loading, Loaded, Unloaded, and ViewChanged. This prevents the native event subscriptions from strongly retaining the handler and the associated MAUI ScrollView during teardown. The queued dispatcher callback also uses weak references to avoid retaining the ScrollViewHandler and native ScrollViewer while the callback is pending. These changes preserve the existing event and focus-restoration behavior while preventing the ScrollView from being retained during teardown. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dhivya-SF4094 <127717131+Dhivya-SF4094@users.noreply.github.com>
…test (#39060) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ### Issue Details The ScrollView Does Not Leak test fails in CI after PR [#37428](#37428), while the test passes locally. ### Root Cause The ScrollViewer has direct event subscriptions to ScrollViewHandler for Loading, Loaded, Unloaded, and ViewChanged. These event subscriptions can keep the ScrollViewHandler and its associated MAUI ScrollView alive during teardown, causing the ScrollView Does Not Leak test to fail in CI. The queued dispatcher callback from PR [#37428](#37428) can also retain the ScrollViewHandler and native ScrollViewer while it is pending. ### Description of Change Updated the native ScrollViewer event subscriptions to use a ScrollViewEventProxy that holds a weak reference to the ScrollViewHandler for Loading, Loaded, Unloaded, and ViewChanged. This prevents the native event subscriptions from strongly retaining the handler and the associated MAUI ScrollView during teardown. The queued dispatcher callback also uses weak references to avoid retaining the ScrollViewHandler and native ScrollViewer while the callback is pending. These changes preserve the existing event and focus-restoration behavior while preventing the ScrollView from being retained during teardown. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dhivya-SF4094 <127717131+Dhivya-SF4094@users.noreply.github.com>
|
The This is an automation failure, not a verdict on the PR tests. Maintainers can retry |
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issue Details
The ScrollView Does Not Leak test fails in CI after PR #37428, while the test passes locally.
Root Cause
The ScrollViewer has direct event subscriptions to ScrollViewHandler for Loading, Loaded, Unloaded, and ViewChanged. These event subscriptions can keep the ScrollViewHandler and its associated MAUI ScrollView alive during teardown, causing the ScrollView Does Not Leak test to fail in CI. The queued dispatcher callback from PR #37428 can also retain the ScrollViewHandler and native ScrollViewer while it is pending.
Description of Change
Updated the native ScrollViewer event subscriptions to use a ScrollViewEventProxy that holds a weak reference to the ScrollViewHandler for Loading, Loaded, Unloaded, and ViewChanged. This prevents the native event subscriptions from strongly retaining the handler and the associated MAUI ScrollView during teardown. The queued dispatcher callback also uses weak references to avoid retaining the ScrollViewHandler and native ScrollViewer while the callback is pending. These changes preserve the existing event and focus-restoration behavior while preventing the ScrollView from being retained during teardown.