AccessViolationException thrown when updating bindings
See original GitHub issueDescribe the bug
In certain scenarios, bindings to .NET objects cause AccessViolationException
s to be thrown within the binding system, seemingly related to string corruption when marshaling? It seems to be possible at any time but appears to occur most often in ListView
s with large amounts of items and string bindings, where the contents of each ListViewItem
is it’s own control.
Steps to reproduce the bug Create a ListView populated with a large amount of items with large amounts of string bindings, and scroll through the view by dragging the scroll bar as fast as possible.
See the repo repository here: https://github.com/WamWooWam/WinUIBugRepros/
Expected behavior The app doesn’t crash
Version Info
NuGet package version: Microsoft.WinUI 3.0.0-preview3.201113.0
Windows app type:
UWP | Win32 |
---|---|
No | Yes |
Windows 10 version | Saw the problem? |
---|---|
Insider Build (19042) | Yes |
May 2020 Update (19041) | |
November 2019 Update (18363) | |
May 2019 Update (18362) | |
October 2018 Update (17763) | |
April 2018 Update (17134) | |
Fall Creators Update (16299) | |
Creators Update (15063) |
Device form factor | Saw the problem? |
---|---|
Desktop | Yes |
Xbox | |
Surface Hub | |
IoT |
Additional context This could be a CSWinRT related issue, but I haven’t been able to repro this elsewhere
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Any news on this. It is a blocking feature for me. I can’t really use WinUI 3.0 preview 3 due to this.
Thanks for the report! The fix for this will be included in the next WinUI 3 Preview. In the meantime, you can work around this issue by installing .NET SDK >= 5.0.101 and adding the following lines to your project file: