Skip to content

[Gallery][Windows][ShadowContainer] Crash on selection of Tabbar Neumorphic Style dropdown toolkit sample page. #1106

@avikeid2007

Description

@avikeid2007

Current behavior

Crash on the selection of Tabbar Neumorphic Style dropdown toolkit sample page in Gallery for Windows. This same crash happened in an Uno app developed by me for my organization. It is working fine in Other Heads i.e. [Wasm], [Desktop], & [Andi]

Msg:
System.Runtime.InteropServices.COMException

StackTrace:
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IUIElementMethods.Measure(IObjectReference _obj, Size availableSize)
at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize)
at Uno.Toolkit.UI.TabBarListPanel.MeasureOverride(Size availableSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference _obj, Size availableSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference _obj, Size availableSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IUIElementMethods.Measure(IObjectReference _obj, Size availableSize)
at Microsoft.UI.Xaml.UIElement.Measure(Size availableSize)
at CommunityToolkit.WinUI.UI.Controls.WrapPanel.MeasureOverride(Size availableSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)
--- End of stack trace from previous location ---
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverridesMethods.MeasureOverride(IObjectReference _obj, Size availableSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)

Expected behavior

No crashes and unhandled exceptions.

How to reproduce it (as minimally and precisely as possible)

  1. Build and run the Uno.Gallery for Windows on the latest master.
  2. Go to Toolkit=>ShadowContainer
  3. Scroll down to Neumorphic Style dropdown
  4. Select Tabbar in Dropdown.

Environment

Nuget Package:
Latest Master nugets
Package Version(s):
Latest Master nugets/ tried on 5.1 and 5.0 too
Affected platform(s):

Windows

Visual Studio:

2022 (version: Preview)

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Metadata

Metadata

Labels

kind/bugSomething isn't workingtriage/untriagedIndicates an issue requires triaging or verification.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions