Files icon indicating copy to clipboard operation
Files copied to clipboard

Navigation is randomly hitting fatal COM error (0x8000FFFF)

Open yaira2 opened this issue 2 years ago • 2 comments

yaira2 avatar Sep 06 '22 16:09 yaira2

Note that this issue only happens while using DetailedLayout. The crashing is happening at BaseLayout.NotifyPropertyChanged for ColumnsViewModel:

image

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.

hez2010 avatar Sep 07 '22 09:09 hez2010

https://github.com/microsoft/microsoft-ui-xaml/issues/7695

hez2010 avatar Sep 07 '22 09:09 hez2010

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 ?

QuaintMako avatar Oct 12 '22 10:10 QuaintMako

I don't think the solution works. We are using TemplatedBindings, not Bindings, and they cannot just be replaced with x:Bind.

hez2010 avatar Oct 12 '22 10:10 hez2010

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?

hez2010 avatar Nov 07 '22 14:11 hez2010