-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse right-click in TextBox crashes the application #4804
Comments
Having devs do all the unit testing results in problems like the one above. Developers are too well behaved and scoped when evaluating their own work. |
Is this another first chance exception that can be continued through? Doesn't seem to reproduce in XCG without a debugger attached, which makes me think that it is handled somewhere else in the stack. |
@StephenLPeters , despite some of these exceptions being benign (you can continue), they are a performance drain and need to be stomped out. They also contribute to a negative developer experience. |
I agree. I'm just trying to get information that might be useful for the team. I suspect that a lot of these types of issues have similar root causes. |
@StephenLPeters , hopefully the next WinUI release will calm things down a little. I've got a dozen other bugs I'll report when the next release is out. It's best not to distract too much at this point. Most of the bugs have existed in UWP for years. I'm hoping both UWP and WinUI can get sorted out simultaneously. These are all UI related. |
I debugged this, and the caught exception comes from AcrylicBrush. |
@codendone , thank you for the clarification. Before you put out the next release, I suggest you run through these samples (release build, without VS attached): /~https://github.com/Noemata/RosettaNavigation UWP runs most of these indefinitely. So should WinUI. Presently, all except the WebView test end in a crash within a couple hours of runtime on a system with 16GB of ram. |
Hi @Herdubreid, you should see a fix for this bug in the upcoming WinUI 3/Project Reunion 0.8 Preview, which you can expect soon. Thanks for filing this! |
This is still happening for me in the current release of the Windows App SDK (Nuget Package Microsoft.WindowsAppSDK 1.0.0) Right clicking a text box (regardless of whether there is text in it causes a crash).
This gets written to the output window:
|
Same issue with RichTextBlock. Any news? |
I am also experiencing this issue with the latest SDKs. As a beginner WinUI developer, experiences like this make us believe we've done something wrong when we haven't, which is quite frustrating. @anawishnoff Is there any way to re-open this issue? |
Also seeing this issue with latest SDKs. |
This must be re-opened. The issue is still present in |
This is a noisy exception. F5 in the debugger will continue, or the debugger could be changed to not always break in on C++/WInRT exceptions. The noisy exception is coming from CommandBarFlyoutCommandBar::UpdateVisualState(), which is calling ApplicationView::GetForCurrentView(). Some other places guard against causing an exception by only making this call "if (winrt::CoreWindow::GetForCurrentThread())" passes. |
@ranjeshj FYI |
@llongley FYI |
Still happening in win app sdk 1.0 |
Can confirm, still happening in SDK 1.0.0 |
I had the TextBox/right click problem. "Magically" the problem disappeared when I did a repair of VS2022 due to another reason (an Extension update breaking it.) |
Maybe when it repairs, it also installed a newer version of SDK. Could you confirm your SDK version? |
Name : Microsoft.WindowsAppRuntime.1.0 Name : Microsoft.WindowsAppRuntime.1.0 |
The exception is not thrown when a context menu is provided. As a workaround it can be defined and immediately closed when opening.
|
this issue is fixed in wasdk 1.1.0 stable |
Confirmed, I am no longer seeing this. |
I am having this issue in wasdk 1.1.1 stable |
I'm still having this issue as of Sunday, July 17, 2022 (7/17/2022) in |
Fixed internally... again. |
🎉 |
Describe the bug
Mouse right-click in TextBox crashes the application.
Steps to reproduce the bug
Expected behavior
Application doesn't crash.
Screenshots
Version Info
NuGet package version:
WinUI 3 - Project Reunion 0.5: 0.5.0
Windows app type:
Additional context
The text was updated successfully, but these errors were encountered: