When running my app in Release mode, I get the following exception when hovering with the mouse over a template that uses some behaviors to trigger some animations. This is the exception:
Unhandled exception at 0x00007FFF1D7B2EC0 (Windows.UI.Xaml.dll) in WinUICrashRepro.exe: 0xC000027B: An internal exception occurrend in the application (parameters: 0x00000239CD4ADBE0, 0x0000000000000003).
I tried both with the 2.0.1 build and the 1.0.1 of the Microsoft.Xaml.Behaviors.Uwp.Managed package, same exact issue, in case this bit of information is of any help.
Also, as suggested by @ranjeshj, I've tried adding this to my .csproj file:
In order to repro the crash in Debug mode as well (in case this was similar to https://github.com/microsoft/microsoft-ui-xaml/issues/1949), but that didn't work. Even with this directive, Debug builds still work perfectly fine for me.
Run the app in Debug mode, and hover with the mouse on the template being displayed
Notice how the app behaves normally and the animations all work fine
Run the app in Release mode
Notice how the app crashes as soon as you hover on the template
Expected behavior
The app should work in Release mode just like it does in Debug mode
Screenshots
Version Info
NuGet package version:
Microsoft.NETCore.UniversalWindowsPlatform version 6.2.10
Microsoft.UI.Xaml version 2.3.200213001.
Microsoft.Xaml.Behaviors.Uwp.Managed version 2.0.1
Windows 10 version
Saw the problem?
Insider Build (xxxxx)
November 2019 Update (18363)
Yes
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
Mobile
Xbox
Surface Hub
IoT
Additional context
Looks like this issue might be related to the APIs in Microsoft.Xaml.Interactivity.
In particular, the storyboard animations are triggered with these behaviors:
Removing these lines removes the animations, but it also seems to prevent the issue from happening. Hopefully this might help a bit in investigating this issue.
Describe the bug Opening this issue here to mirror the one in WinUI, here: https://github.com/microsoft/microsoft-ui-xaml/issues/2256.
When running my app in Release mode, I get the following exception when hovering with the mouse over a template that uses some behaviors to trigger some animations. This is the exception:
I tried both with the
2.0.1
build and the1.0.1
of theMicrosoft.Xaml.Behaviors.Uwp.Managed
package, same exact issue, in case this bit of information is of any help.Also, as suggested by @ranjeshj, I've tried adding this to my
.csproj
file:In order to repro the crash in Debug mode as well (in case this was similar to https://github.com/microsoft/microsoft-ui-xaml/issues/1949), but that didn't work. Even with this directive, Debug builds still work perfectly fine for me.
Steps to reproduce the bug
Expected behavior
The app should work in Release mode just like it does in Debug mode
Screenshots
Version Info
NuGet package version:
Microsoft.NETCore.UniversalWindowsPlatform
version6.2.10
Microsoft.UI.Xaml
version2.3.200213001
.Microsoft.Xaml.Behaviors.Uwp.Managed
version2.0.1
Additional context
Looks like this issue might be related to the APIs in
Microsoft.Xaml.Interactivity
. In particular, the storyboard animations are triggered with these behaviors:Removing these lines removes the animations, but it also seems to prevent the issue from happening. Hopefully this might help a bit in investigating this issue.
Thank you for your time! 😄