-
Notifications
You must be signed in to change notification settings - Fork 442
Closed
Labels
area/viewsIssue/Discussion/PR that has to do with ViewsIssue/Discussion/PR that has to do with ViewsbugSomething isn't workingSomething isn't workingunverified
Description
Is there an existing issue for this?
- I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
- I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
Current Behavior
On Windows, opening a Popup
containing a SwipeView
crashes with "System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'"
The same code works on Android.
Expected Behavior
Should not crash on Windows.
Steps To Reproduce
- Build and run the repro app on Windows.
- Press the button to open the popup. The app crashes.
Link to public reproduction project repository
https://github.com/nshtinkov/SwipeView-BL-Crash
Environment
- .NET MAUI CommunityToolkit: 9.0.0
- OS: Windows 11 Build 10.0.22631
- .NET MAUI: 8.0.40
Anything else?
The crash happens in the call to FrameworkElement.Measure()
on the SwipeView
. It may be a bug in MAUI, but I am posting it here because it only happens in a Popup
.
Could be related to dotnet/maui#16735 ; the repro app is modified from that issue. However I can no longer reproduce the original issue.
Metadata
Metadata
Assignees
Labels
area/viewsIssue/Discussion/PR that has to do with ViewsIssue/Discussion/PR that has to do with ViewsbugSomething isn't workingSomething isn't workingunverified