Skip to content

[windows] MauiNavigationView Crashing on applytemplate #29675

@rmarinho

Description

@rmarinho

Description

The net10 branch is failing in a lot windows tests after moving to preview5.

Some errors seem to be crashing with an NRE on MauiNavigationView .

Image

Steps to Reproduce

  1. Checkout net10
  2. Run the UItest host app
  3. Go CollectionView tests

Link to public reproduction project repository

No response

Version with bug

10.0.0-preview.5 (net10.0 branch)

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

10.0.0-preview.4

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

   at ABI.System.Nullable_IntEnum.Do_Abi_get_Value_0(IntPtr thisPtr, Int32* __return_value__)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|38_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.OnApplyTemplate(IObjectReference _obj)
   at Microsoft.UI.Xaml.FrameworkElement.OnApplyTemplate()
   at Microsoft.Maui.Platform.MauiNavigationView.OnApplyTemplate() in C:\repos\dotnet\maui\src\Core\src\Platform\Windows\MauiNavigationView.cs:line 69
   at Microsoft.UI.Xaml.FrameworkElement.Microsoft.UI.Xaml.IFrameworkElementOverrides.OnApplyTemplate()
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_OnApplyTemplate_2(IntPtr thisPtr)
--- End of stack trace from previous location ---
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|38_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference _obj, Size availableSize)
   at Microsoft.UI.Xaml.FrameworkElement.MeasureOverride(Size availableSize)
   at Microsoft.UI.Xaml.FrameworkElement.Microsoft.UI.Xaml.IFrameworkElementOverrides.MeasureOverride(Size availableSize)
   at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedWork that is currently blockeds/triagedIssue has been reviewedt/bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions