WindowsCommunityToolkit
WindowsCommunityToolkit copied to clipboard
`MarkdownTextBlock`'s links will cause app freeze if background acrylic is applied to `Page`
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:
- Set a
Page
withBackground="{ThemeResource AcrylicBackgroundFillColorDefaultBrush}"
- Set a
MarkdownTextBlock
with markdown text with links (like[This is a link](https://www.microsoft.com/)
) - Build and run the app.
- Hover on the link and wait for tooltip of the link appears.
- 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
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 🙌
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.
@lee011
- Do you by chance have the Visual Studio Designer open (such as, for MainPage.xaml) in the IDE while this is happening?
- 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>
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).
@lee011
- Do you by chance have the Visual Studio Designer open (such as, for MainPage.xaml) in the IDE while this is happening?
- 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>
- This happens regardless of whether Visual Studio Designer is opened or not.
- I have tried to modify App.xaml as above, but still have problem.
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.
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.
I'm also unable to reproduce this bug with the provided sample / repro steps.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
I am unable to reproduce the bug with the provided sample. It would be helpful if you could provide more info on this issue
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.
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.