microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.06k stars 656 forks source link

CPP TeachingTip Crash。 #9599

Open FF69B3 opened 2 weeks ago

FF69B3 commented 2 weeks ago

Describe the bug

When running in debugging mode in VS, a crash occurs with the following crash message:

0x00007FF94962543C (KernelBase.dll)处(位于 MyGameApp.exe 中)引发的异常: WinRT originate error - 0x80073D54 : '该进程没有程序包标识符。'。

0x00007FF94962543C (KernelBase.dll)处(位于 MyGameApp.exe 中)引发的异常: WinRT originate error - 0x80073D54 : 'The process does not have a package identifier。'。

But after running the build program, it can work.

Crash only in VS.

Steps to reproduce the bug

xaml:

<Button Content="Show TeachingTip" Click="TestButtonClick1" />

<TeachingTip x:Name="ToggleThemeTeachingTip1"
    Target="{x:Bind ThemeButton}"
    Title="Change themes without hassle"
    Subtitle="It's easier than ever to see control samples in both light and dark theme!">
    <TeachingTip.IconSource>
        <SymbolIconSource Symbol="Refresh" />
    </TeachingTip.IconSource>
</TeachingTip>

Cpp Code:

ButtonClick: ToggleThemeTeachingTip1().IsOpen(true); -> Crash

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.5.2: 1.5.240404000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

github-actions[bot] commented 2 weeks ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.