Files
Files copied to clipboard
Navigation is randomly hitting fatal COM error (0x8000FFFF)
Note that this issue only happens while using DetailedLayout.
The crashing is happening at BaseLayout.NotifyPropertyChanged
for ColumnsViewModel
:
Not sure whether it's a WinUI bug or not, but it's possible that it's a WinUI bug because the failure is 0xC0000005 (Access Violation), I don't believe this can happen on managed code. Maybe we should report this issue to WinUI team.
https://github.com/microsoft/microsoft-ui-xaml/issues/7695
An answer has been provided by the microsoft-ui-xaml about this issue with a possible solution :
Agree it looks like a bug in WinUI3. Thanks for providing the debug info. In response to the property change notification, it's trying to reach back and get the new value, and it looks like the pointer it has to the internal ICustomProperty reflection object is bad.
In the interest of getting unblocked, maybe you could switch this binding to an {x:Bind}, or otherwise add some code to replace it. If it's happening for all of the bindings on this object, then that would be interesting to know too.
Should we go down this path ?
I don't think the solution works. We are using TemplatedBindings, not Bindings, and they cannot just be replaced with x:Bind.
I have an idea about working around this issue (but don't have time to implement and verify). How about removing the xaml code that binds ListView columns to the ViewModel, instead, manipulate the columns in the code behind manually?