[Windows] App crashes when static DoubleCollection is used more than once #18201
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
create a simple app, that uses
DoubleCollection
.if
DoubleCollection
is referenced more than ones, it causes app to crash.I suppose the issue has nothing to do with
DoubleCollection
, but rather is related to static instantiation. I mean, using static object of another types will probably as well cause problems.This issue occurs only on
net8.0-windows
.net8.0-desktop
is not affected.Expected behavior
using static
DoubleCollection
shall work fine.How to reproduce it (as minimally and precisely as possible)
create a simple app, that uses
DoubleCollection
.if
DoubleCollection
is referenced more than ones, it causes app to crash.App crashes with following exception:
Exception thrown: 'System.ArgumentException' in WinRT.Runtime.dll
An exception of type 'System.ArgumentException' occurred in WinRT.Runtime.dll but was not handled in user code
repro: UnoAppMystery.zip
Workaround
replace static instances of
DoubleCollection
with local instancesWorks on UWP/WinUI
None
Environment
No response
NuGet package version(s)
Version:
Uno.Sdk": "5.3.108
Affected platforms
Windows (WinAppSDK)
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: