Skip to content
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

[WinUI] pressing enter when focused on TextBox with CommandExtensions.Command attached crash the app #444

Closed
2 of 10 tasks
takla21 opened this issue Jan 12, 2023 · 4 comments
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@takla21
Copy link

takla21 commented Jan 12, 2023

Current behavior

image

Error thrown

Exception {"Element not found. (0x80070490)"}

Callstack

CommandExtensionsCrash.Windows.dll!CommandExtensionsCrash.App.InitializeComponent.AnonymousMethod__7_1(object sender = {CommandExtensionsCrash.App}, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e = {Microsoft.UI.Xaml.UnhandledExceptionEventArgs}) Line 68
	at C:\p\CommandExtensionsCrash\CommandExtensionsCrash.Windows\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.g.i.cs(68)
Microsoft.WinUI.dll!WinRT._EventSource_global__Microsoft_UI_Xaml_UnhandledExceptionEventHandler.EventState.GetEventInvoke.AnonymousMethod__1_0(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.UnhandledExceptionEventHandler.Do_Abi_Invoke(System.IntPtr thisPtr, System.IntPtr sender, System.IntPtr e)
[Native to Managed Transition]
[Managed to Native Transition]
Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.Start(WinRT.IObjectReference _obj, Microsoft.UI.Xaml.ApplicationInitializationCallback callback)
Microsoft.WinUI.dll!Microsoft.UI.Xaml.Application.Start(Microsoft.UI.Xaml.ApplicationInitializationCallback callback)
CommandExtensionsCrash.Windows.dll!CommandExtensionsCrash.Program.Main(string[] args = {string[0]}) Line 31
	at C:\p\CommandExtensionsCrash\CommandExtensionsCrash.Windows\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.g.i.cs(31)

Expected behavior

The command should be executed without crashing the app.

expected

How to reproduce it (as minimally and precisely as possible)

Environment

Nuget Package: Uno.Toolkit.WinUI

Package Version(s): 2.5.0-dev.8

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renders for Xamarin.Forms
  • Windows
  • Build tasks

Visual Studio:

  • 2022 (version: 17.4.3)
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

@takla21 takla21 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Jan 12, 2023
@Xiaoy312
Copy link
Contributor

fixed in #440 already

@jeromelaban
Copy link
Member

@Xiaoy312 do we need to backport #440 ?

@takla21
Copy link
Author

takla21 commented Jan 12, 2023

Hum the weird part is that I tested with the latest version available 2.5.0-dev.8. Although, the PR seems to have been merged yesterday. Maybe there are no build available with this fix yet.

@takla21
Copy link
Author

takla21 commented Jan 13, 2023

The bug is indeed fix in 2.5.0-dev.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

3 participants