terminal icon indicating copy to clipboard operation
terminal copied to clipboard

WinUI text context menu not showing up (Was: Crash when right clicking text)

Open apkipa opened this issue 10 months ago • 3 comments

Windows Terminal version

1.23.10353.0

Windows build number

10.0.19045.5487

Other Software

No response

Steps to reproduce

  • Open the About dialog.
  • Select the version text, right click and select Copy.
  • Close the dialog.
  • Drag the tab, so that the window disappears and reappears.
  • Open the About dialog again, then right click the version text.

Expected Behavior

No response

Actual Behavior

Crash

apkipa avatar Feb 20 '25 00:02 apkipa

Thanks for filing! Looks like this is related to XAML Islands. Specifically, if the first XAML island is deleted/closed.

This is pretty severe. We should make sure we fix it before Preview goes to Stable.

carlos-zamora avatar Feb 26 '25 22:02 carlos-zamora

I'm unassigning myself as the crash was fixed. The remaining issue is that the repro steps now cause the context menu to not show up at all anymore. From what I can tell, this is a WinUI 2 bug.

lhecker avatar Apr 17 '25 22:04 lhecker

I'm experiencing this bug as well. Besides the About dialog, app also crashes when right-clicking any text box on the settings page. Avoiding multiple ContentDialog instances isn't a real fix.

Blinue avatar Apr 21 '25 05:04 Blinue