Implicit hide animation causes AccessViolationException + Fail fast exception in Windows.UI.Xaml.dll and MinUser.dll
See original GitHub issueHello, I’m having a problem with an exception that is thrown in my app (I know how to reproduce it, fortunately) that I have no idea how to solve. A few info on the problem:
- The same crash happens in the same way both in Debug and Release mode
- When crashing in Debug mode (without .NET Native), VS doesn’t show any kind of error message and the app just closes, and after a few seconds the VS debugger closes too
- When debugging with .NET Native enabled, I manage to get these two info on the exceptions being thrown: AccessViolationException and then (pressing Continue on the debugger) a FailFastException
- ~This issue is possibly related to the
RichEditBox
control I’m using and it happens when calling the ‘ITextRange.Move(TextRangeUnit, Int32)’ method repeatedly (even though the number of times needed to make the app crash is variable). So, this is possibly related to #223~ It looks like the issue is caused by an implicit composition animation I play whenever I close a popup, removing it works as a workaround for the crash - None of those exceptions had an available StackTrace in the debugger (could be just because of the .NET Native compiler, I’m not sure)
- The app targets W10 build 10.15063
Anyways, I don’t think this is to be expected and right now I have a section of the app that’s completely broken because of this and I have absolutely no idea on what to do to solve this problem. Any help would be really appreciated, thank you in advance! Sergio
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Many Windows programs crashes with Windows.UI.Xaml. ...
Xaml.dll error. Most programs on Windows open and crashes immediately. Then I open the event viewer, which displays the reason for the shutdown....
Read more >AccessViolationException when setting character format in ...
Implicit hide animation causes AccessViolationException + Fail fast exception in Windows.UI.Xaml.dll and MinUser.dll #225.
Read more >Fix Fail Fast Exception error on Windows 11/10
If you see Fail Fast Exception error for Explorer.exe or any other program on Windows 11/10, then here are suggestions to help you....
Read more >Fix Fail Fast Exception Error on Windows 11/10 [Tutorial]
Fix Fail Fast Exception Error on Windows 11/10 [Tutorial] Commands Used: sfc /scannow Dism /Online /Cleanup-Image /RestoreHealth Some ...
Read more >KB4480976 and Windows.UI.Xaml.dll crash : r/Windows10
Windows Calculator actually crashes and the faulting module is Windows.UI.Xaml.dll. Has anyone else faced the same issue? You can download a csv ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @Sergio0694 - we made some changes in these code paths as a part of the development for the next version of Windows. Can you please try out the broken scenario using an insider build and let us know if the issue still occurs?
Hey @scott-moore-ms and @stmoy - thank you for your help, sorry for the late reply! I’ve just tried again and I couldn’t replicate the issue, so it looks like that crash is no longer happening in this situation, great work! 😄 (tested on 17736.x with an app targeting 17134)