Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwipeView inside Popup crashes on Windows with System.AccessViolationException #1904

Open
2 tasks done
nshtinkov opened this issue May 28, 2024 · 0 comments
Open
2 tasks done
Labels
area/views Issue/Discussion/PR that has to do with Views bug Something isn't working unverified

Comments

@nshtinkov
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

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

  1. Build and run the repro app on Windows.
  2. 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.

@nshtinkov nshtinkov added bug Something isn't working unverified labels May 28, 2024
@vhugogarcia vhugogarcia added the area/views Issue/Discussion/PR that has to do with Views label Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/views Issue/Discussion/PR that has to do with Views bug Something isn't working unverified
Projects
None yet
Development

No branches or pull requests

2 participants