microsoft-ui-xaml
microsoft-ui-xaml copied to clipboard
Custom panel crashes during hot reload
Describe the bug
winui3 cpp
I customized a panel. When I run it, I modify the properties of my panel. It is normal and as expected, but when I delete an attribute, it crashes.
This is my layout and my custom panel(yoga:FlexLayout),When I modify the value of Wrap it is normal,But when I remove this Wrap, it crashes
Layout after deletion:
0000000000000000() unknow
LeveldbManager.exe!winrt::LeveldbManager::implementation::XamlUserType::ActivateInstance() Line 452 C++
LeveldbManager.exe!winrt::impl::produce<winrt::LeveldbManager::implementation::XamlUserType,winrt::Microsoft::UI::Xaml::Markup::IXamlType>::ActivateInstance(void * * result) Line 1004 C++
[external code]
> LeveldbManager.exe!winrt::impl::consume_Microsoft_UI_Xaml_IApplicationStatics<winrt::Microsoft::UI::Xaml::IApplicationStatics>::Start(const winrt::Microsoft::UI::Xaml::ApplicationInitializationCallback & callback) Line 174 C++
LeveldbManager.exe!winrt::Microsoft::UI::Xaml::Application::Start::__l2::<lambda_1>::operator()(const winrt::Microsoft::UI::Xaml::IApplicationStatics & f) Line 12357 C++
LeveldbManager.exe!winrt::impl::factory_cache_entry<winrt::Microsoft::UI::Xaml::Application,winrt::Microsoft::UI::Xaml::IApplicationStatics>::call<`winrt::Microsoft::UI::Xaml::Application::Start'::`2'::<lambda_1> &>(winrt::Microsoft::UI::Xaml::Application::Start::__l2::<lambda_1> & callback) Line 6476 C++
LeveldbManager.exe!winrt::impl::call_factory<winrt::Microsoft::UI::Xaml::Application,winrt::Microsoft::UI::Xaml::IApplicationStatics,`winrt::Microsoft::UI::Xaml::Application::Start'::`2'::<lambda_1>>(winrt::Microsoft::UI::Xaml::Application::Start::__l2::<lambda_1> && callback) Line 6499 C++
LeveldbManager.exe!winrt::Microsoft::UI::Xaml::Application::Start(const winrt::Microsoft::UI::Xaml::ApplicationInitializationCallback & callback) Line 12358 C++
[external code]
This all happens in hot reload when xaml is modified
Steps to reproduce the bug
Customize the panel, and then delete some of the added attributes after starting it.
Expected behavior
No response
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
No response