WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

`MarkdownTextBlock`'s links will cause app freeze if background acrylic is applied to `Page`

Open lee011 opened this issue 2 years ago • 23 comments

Describe the bug

When hovering on a link in MarkdownTextBlock of a Page with background acrylic for some time, the app will freeze.

  • [ ] Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work: I don't know.

Steps to Reproduce

  • [ ] Can this be reproduced in the Sample App? (Either in a sample as-is or with new XAML pasted in the editor.) If so, please provide custom XAML or steps to reproduce. If not, let us know why it can't be reproduced (e.g. more complex setup, environment, dependencies, etc...) Unable to reproduce in Sample App.

Steps to reproduce the behavior:

  1. Set a Page with Background="{ThemeResource AcrylicBackgroundFillColorDefaultBrush}"
  2. Set a MarkdownTextBlock with markdown text with links (like [This is a link](https://www.microsoft.com/))
  3. Build and run the app.
  4. Hover on the link and wait for tooltip of the link appears.
  5. The app freezes.

An app to reproduce this issue: App1.zip

Expected behavior

The app should not freeze when hovering on a link.

Screenshots

https://user-images.githubusercontent.com/11925743/142405683-300572dc-5580-48ab-a1dc-30c02ba8b950.mp4

Environment

NuGet Package(s): Microsoft.Toolkit.Uwp.UI.Controls

Package Version(s): 7.1.1

Windows 11 Build Number:

  • [x] 22000

App min and target version:

  • [ ] Fall Creators Update (16299)
  • [ ] April 2018 Update (17134)
  • [ ] October 2018 Update (17763)
  • [ ] May 2019 Update (18362)
  • [ ] May 2020 Update (19041)
  • [x] Windows 11 (22000)
  • [ ] Insider Build ({build_number})

Device form factor:

  • [x] Desktop
  • [ ] Xbox
  • [ ] Surface Hub
  • [ ] IoT

Visual Studio version:

  • [ ] 2017 (15.{minor_version})
  • [ ] 2019 (16.{minor_version})
  • [x] 2022 (17.0.0)

Additional context

lee011 avatar Nov 18 '21 11:11 lee011

Hello lee011, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost avatar Nov 18 '21 11:11 ghost

I wasn't able to repro the app freeze, but when interacting with this project's files within Visual Studio 2022 (like trying to expand MainPage.xaml within the Solution Explorer window) caused VS22 to close unexpectedly and without warning four separate times.

XAML-Knight avatar Nov 22 '21 22:11 XAML-Knight

@lee011

  1. Do you by chance have the Visual Studio Designer open (such as, for MainPage.xaml) in the IDE while this is happening?
  2. Could you update your App.xaml to this newer style for XAML controls, and see if the app still crashes?: <Application x:Class="App1.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:Microsoft.UI.Xaml.Controls" xmlns:local="using:App1"> <Application.Resources> <controls:XamlControlsResources> <controls:XamlControlsResources.MergedDictionaries> <!--Other app resources here--> </controls:XamlControlsResources.MergedDictionaries> </controls:XamlControlsResources> </Application.Resources> </Application>

XAML-Knight avatar Nov 22 '21 23:11 XAML-Knight

I wasn't able to repro the app freeze, but when interacting with this project's files within Visual Studio 2022 (like trying to expand MainPage.xaml within the Solution Explorer window) caused VS22 to close unexpectedly and without warning four separate times.

Confirmed that VS appears stable as long as I don't have the VS Designer open (see ref #4279 and #4310).

XAML-Knight avatar Nov 22 '21 23:11 XAML-Knight

@lee011

  1. Do you by chance have the Visual Studio Designer open (such as, for MainPage.xaml) in the IDE while this is happening?
  2. Could you update your App.xaml to this newer style for XAML controls, and see if the app still crashes?: <Application x:Class="App1.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:Microsoft.UI.Xaml.Controls" xmlns:local="using:App1"> <Application.Resources> <controls:XamlControlsResources> <controls:XamlControlsResources.MergedDictionaries> <!--Other app resources here--> </controls:XamlControlsResources.MergedDictionaries> </controls:XamlControlsResources> </Application.Resources> </Application>
  1. This happens regardless of whether Visual Studio Designer is opened or not.
  2. I have tried to modify App.xaml as above, but still have problem.

lee011 avatar Nov 23 '21 02:11 lee011

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Dec 08 '21 04:12 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Dec 23 '21 04:12 ghost

I'm also unable to reproduce this bug with the provided sample / repro steps.

Arlodotexe avatar Dec 28 '21 21:12 Arlodotexe

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Jan 12 '22 22:01 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Jan 28 '22 01:01 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Feb 12 '22 04:02 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Feb 27 '22 04:02 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Mar 14 '22 07:03 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Mar 29 '22 10:03 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Apr 13 '22 10:04 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Apr 28 '22 13:04 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar May 13 '22 16:05 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar May 28 '22 19:05 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Jun 12 '22 19:06 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Jun 27 '22 19:06 ghost

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

ghost avatar Jul 12 '22 22:07 ghost

I am unable to reproduce the bug with the provided sample. It would be helpful if you could provide more info on this issue

LalithaNadimpalli avatar Jul 22 '22 21:07 LalithaNadimpalli

lee011 This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 30 days of this comment.

ghost avatar Aug 06 '22 22:08 ghost

lee011 This issue has been automatically closed because it was marked as requiring author feedback but has not had any activity for over 45 days.

ghost avatar Sep 05 '22 22:09 ghost