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

[Skia.Gtk] TextBox().Text() font size changes on focus/blur #15032

Closed
qhj opened this issue Jan 11, 2024 · 11 comments · Fixed by #15170
Closed

[Skia.Gtk] TextBox().Text() font size changes on focus/blur #15032

qhj opened this issue Jan 11, 2024 · 11 comments · Fixed by #15170
Assignees
Labels
area/skia/text ✏️ area/skia ✏️ Categorizes an issue or PR as relevant to Skia difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/text 🔤 Categorizes an issue or PR as relevant to text (TextBox, PasswordBox, TextBlock, Fonts, …)

Comments

@qhj
Copy link

qhj commented Jan 11, 2024

Current behavior

2024-01-12.23-13-32.mp4

Expected behavior

2024-01-12.23-15-09.mp4

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

clone https://github.com/qhj/UnoApp1 and run the Skia.Gtk head project

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

No response

Affected platforms

Skia (GTK on Linux/macOS/Windows)

IDE

Visual Studio 2022

IDE version

17.8.4

Relevant plugins

No response

Anything else we need to know?

No response

@qhj qhj added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jan 11, 2024
@qhj qhj changed the title [Skia.Gtk] TextBox().PlaceholderText() and blurred TextBox().Text() without setting proper TextBox().FontFamily() render CJK fonts as tofu. TextBox().Text() text size changes on focus/blur [Skia.Gtk] blurred TextBox().Text() without setting proper TextBox().FontFamily() and TextBox().PlaceholderText() render CJK fonts as tofu. TextBox().Text() text size changes on focus/blur Jan 11, 2024
@qhj qhj changed the title [Skia.Gtk] blurred TextBox().Text() without setting proper TextBox().FontFamily() and TextBox().PlaceholderText() render CJK fonts as tofu. TextBox().Text() text size changes on focus/blur [Skia.Gtk] TextBox().PlaceholderText() and blurred TextBox().Text() without setting proper TextBox().FontFamily() render CJK fonts as tofu. TextBox().Text() text size changes on focus/blur Jan 11, 2024
@qhj qhj changed the title [Skia.Gtk] TextBox().PlaceholderText() and blurred TextBox().Text() without setting proper TextBox().FontFamily() render CJK fonts as tofu. TextBox().Text() text size changes on focus/blur [Skia.Gtk] (1) TextBox().PlaceholderText() and blurred TextBox().Text() without setting proper TextBox().FontFamily() render CJK fonts as tofu. (2) TextBox().Text() text size changes on focus/blur Jan 11, 2024
@qhj qhj changed the title [Skia.Gtk] (1) TextBox().PlaceholderText() and blurred TextBox().Text() without setting proper TextBox().FontFamily() render CJK fonts as tofu. (2) TextBox().Text() text size changes on focus/blur [Skia.Gtk] (1) TextBox().PlaceholderText() and blurred TextBox().Text() without setting proper TextBox().FontFamily() render CJK fonts as tofu. (2) TextBox().Text() font size changes on focus/blur Jan 11, 2024
@Youssef1313
Copy link
Member

Thanks for reporting this @qhj

Could you specify the version of Uno you are using? Font-fallback support was added in #14287 (available starting from 5.1.0-dev.937), and it may help with your scenario.

@Youssef1313 Youssef1313 added area/skia ✏️ Categorizes an issue or PR as relevant to Skia project/text 🔤 Categorizes an issue or PR as relevant to text (TextBox, PasswordBox, TextBlock, Fonts, …) area/skia/text ✏️ labels Jan 11, 2024
@qhj
Copy link
Author

qhj commented Jan 12, 2024

@Youssef1313 Thanks for your work! I updated project dependencies, confirm that font fallback support works on prerelease version of uno.

But I cannot test the second problem, TextBox().Text() font size changes on focus/blur. I have now found that the blurred TextBox() does not display text and the program crashes when I input text.

2024-01-12.20-03-11.mp4

While updating dependencies by issuing Update-Package -IncludePrerelease in Package Manager Console, NuGet complained Update-Package : Sequence contains no matching element. NuGet/Home#13069

I don't know if only some of dependencies are updated to prerelease version or if there are bugs in the prereleased packages.

Package Manager Console log
Each package is licensed to you by its owner. NuGet is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.

Package Manager Console Host Version 6.8.0.131

Type 'get-help NuGet' to see all available NuGet commands.

PM> Update-Package -IncludePrerelease
No package updates are available from the current package source for project 'Source\Platforms\UnoApp1.Shared'.
No package updates are available from the current package source for project 'Source\UnoApp1.DataContracts'.
No package updates are available from the current package source for project 'Source\Backend\UnoApp1.Server'.
Restoring packages for D:\source\repos\UnoApp1\UnoApp1\UnoApp1.Tests\UnoApp1.Tests.csproj...
Restoring packages for D:\source\repos\UnoApp1\UnoApp1\UnoApp1.UITests\UnoApp1.UITests.csproj...
  CACHE https://api.nuget.org/v3/vulnerabilities/index.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/vulnerability.base.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/2024.01.11.23.23.19/vulnerability.update.json
  CACHE https://api.nuget.org/v3/vulnerabilities/index.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/vulnerability.base.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/2024.01.11.23.23.19/vulnerability.update.json
Restoring packages for D:\source\repos\UnoApp1\UnoApp1\UnoApp1.Windows\UnoApp1.Windows.csproj...
Restoring packages for D:\source\repos\UnoApp1\UnoApp1\UnoApp1.Skia.Gtk\UnoApp1.Skia.Gtk.csproj...
  GET https://api.nuget.org/v3-flatcontainer/uno.ui.adapter.microsoft.extensions.logging/index.json
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.skia.gtk/index.json
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.devserver/index.json
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.skia.gtk/index.json 1298ms
  OK https://api.nuget.org/v3-flatcontainer/uno.ui.adapter.microsoft.extensions.logging/index.json 1363ms
  CACHE https://api.nuget.org/v3-flatcontainer/uno.ui.adapter.microsoft.extensions.logging/index.json
  GET https://api.nuget.org/v3-flatcontainer/uno.ui.adapter.microsoft.extensions.logging/5.1.0-dev.1354/uno.ui.adapter.microsoft.extensions.logging.5.1.0-dev.1354.nupkg
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.skia.gtk/5.1.0-dev.1354/uno.winui.skia.gtk.5.1.0-dev.1354.nupkg
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.devserver/index.json 1336ms
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.devserver/5.1.0-dev.1354/uno.winui.devserver.5.1.0-dev.1354.nupkg
Restoring packages for D:\source\repos\UnoApp1\UnoApp1\UnoApp1\UnoApp1.csproj...
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.skia.gtk/5.1.0-dev.1354/uno.winui.skia.gtk.5.1.0-dev.1354.nupkg 315ms
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.devserver/5.1.0-dev.1354/uno.winui.devserver.5.1.0-dev.1354.nupkg 348ms
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.runtime.skia.gtk/index.json
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.devserver/index.json
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.lottie/index.json
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.runtime.skia.gtk/index.json 301ms
  OK https://api.nuget.org/v3-flatcontainer/uno.ui.adapter.microsoft.extensions.logging/5.1.0-dev.1354/uno.ui.adapter.microsoft.extensions.logging.5.1.0-dev.1354.nupkg 943ms
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.runtime.skia.gtk/5.1.0-dev.1354/uno.winui.runtime.skia.gtk.5.1.0-dev.1354.nupkg
  CACHE https://api.nuget.org/v3-flatcontainer/uno.ui.adapter.microsoft.extensions.logging/5.1.0-dev.1354/uno.ui.adapter.microsoft.extensions.logging.5.1.0-dev.1354.nupkg
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.runtime.skia.gtk/5.1.0-dev.1354/uno.winui.runtime.skia.gtk.5.1.0-dev.1354.nupkg 204ms
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.lottie/index.json 1132ms
Installed Uno.UI.Adapter.Microsoft.Extensions.Logging 5.1.0-dev.1354 from https://api.nuget.org/v3/index.json with content hash Vy6H5cYzX4tj3GBYpFj5ns8KX7e1FpcmbFx77aBILb+HSrehIZkNwNcTzt5c+XIiTCYIy7MTlrtyi3Qjxv+9gw==.
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.devserver/index.json 1475ms
  CACHE https://api.nuget.org/v3/vulnerabilities/index.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/vulnerability.base.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/2024.01.11.23.23.19/vulnerability.update.json
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.lottie/5.1.0-dev.1354/uno.winui.lottie.5.1.0-dev.1354.nupkg
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.lottie/5.1.0-dev.1354/uno.winui.lottie.5.1.0-dev.1354.nupkg 239ms
  CACHE https://api.nuget.org/v3-flatcontainer/uno.winui.devserver/5.1.0-dev.1354/uno.winui.devserver.5.1.0-dev.1354.nupkg
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.devserver.messaging/index.json
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.devserver.messaging/index.json 621ms
  CACHE https://api.nuget.org/v3-flatcontainer/uno.winui.devserver.messaging/index.json
  GET https://api.nuget.org/v3-flatcontainer/uno.winui.devserver.messaging/5.1.0-dev.1354/uno.winui.devserver.messaging.5.1.0-dev.1354.nupkg
  OK https://api.nuget.org/v3-flatcontainer/uno.winui.devserver.messaging/5.1.0-dev.1354/uno.winui.devserver.messaging.5.1.0-dev.1354.nupkg 257ms
  CACHE https://api.nuget.org/v3-flatcontainer/uno.winui.devserver.messaging/5.1.0-dev.1354/uno.winui.devserver.messaging.5.1.0-dev.1354.nupkg
Installed Uno.WinUI.DevServer.Messaging 5.1.0-dev.1354 from https://api.nuget.org/v3/index.json with content hash trByC3o5XpDJ2Q89qreqa3wCPSTl/MHf6UDITZflfpP/g1I+a01vlYWmIsGb43U1ScyNzeweRTIb/ILjjcwTmA==.
Installed Uno.WinUI.Skia.Gtk 5.1.0-dev.1354 from https://api.nuget.org/v3/index.json with content hash Dc0KqZOI2rk/W5QmqoJGCa144lZT4pHgiddfp6A0i/qE/Z3pTdlO8BQECwtMcLuQNIFm+m5SBi4+B8vweL7IOg==.
Installed Uno.WinUI.Runtime.Skia.Gtk 5.1.0-dev.1354 from https://api.nuget.org/v3/index.json with content hash zjU1y6PMpvMJ7XOZfHo59i6e+jQBRzURISctjGiS/3k0i9EwQ1B/4M+8ZY/Pot/Ri8kYQDiNQQ2OFETgxt9btQ==.
Installed Uno.WinUI.Lottie 5.1.0-dev.1354 from https://api.nuget.org/v3/index.json with content hash ybdnH0VJvJ0iB+jeT74Y+EqxqbK1S8saM+d0Xg07bvwr8REYLyN3yaqS7mfFjruczID6b6oeVJ8PiDTzsqhoAA==.
Installed Uno.WinUI.DevServer 5.1.0-dev.1354 from https://api.nuget.org/v3/index.json with content hash 0XirjvrGmq2DZFRKy1J8hAK/VYPF6eoOUCo/Am1fXVKYomBMHBqtcx9GWvaTr49K7dPCYZOMmo4X/v3BDEoeug==.
  CACHE https://api.nuget.org/v3/vulnerabilities/index.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/vulnerability.base.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/2024.01.11.23.23.19/vulnerability.update.json
  CACHE https://api.nuget.org/v3/vulnerabilities/index.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/vulnerability.base.json
  CACHE https://api.nuget.org/v3-vulnerabilities/2024.01.11.23.23.19/2024.01.11.23.23.19/vulnerability.update.json
Executing nuget actions took 18 ms
Installing NuGet package Microsoft.Windows.SDK.BuildTools 10.0.25936-preview.
Installing NuGet package Uno.Themes.WinUI.Markup 4.1.0-dev.45.
Installing NuGet package Uno.Extensions.Navigation.WinUI.Markup 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Navigation.WinUI 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Reactive.WinUI 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Http 3.1.0-dev.196.
Installing NuGet package Uno.Resizetizer 1.3.0-dev.25.
Installing NuGet package Uno.Extensions.Http.Refit 3.1.0-dev.196.
Installing NuGet package Uno.Material.WinUI 4.1.0-dev.45.
Installing NuGet package Uno.Extensions.Localization.WinUI 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Reactive.WinUI.Markup 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Serialization.Http 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Navigation.Toolkit.WinUI 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Markup.Generators 5.1.0-dev.78.
Installing NuGet package Uno.Material.WinUI.Markup 4.1.0-dev.45.
Installing NuGet package Microsoft.WindowsAppSDK 1.5.231202003-experimental1.
Installing NuGet package Uno.Extensions.Http.WinUI 3.1.0-dev.196.
Installing NuGet package Uno.Dsp.Tasks 1.3.0-dev.2.
Installing NuGet package Uno.WinUI.Markup 5.1.0-dev.78.
Installing NuGet package Uno.WinUI 5.1.0-dev.1354.
Installing NuGet package Uno.Extensions.Serialization.Refit 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Hosting.WinUI 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Core.WinUI 3.1.0-dev.196.
Installing NuGet package Uno.Extensions.Configuration 3.1.0-dev.196.
Installing NuGet package Uno.Toolkit.WinUI.Markup 5.1.0-dev.92.
Installing NuGet package Uno.Toolkit.WinUI.Material 5.1.0-dev.92.
Installing NuGet package Uno.Extensions.Logging.WinUI 3.1.0-dev.196.
Update-Package : Sequence contains no matching element
At line:1 char:1
+ Update-Package -IncludePrerelease
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Update-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand
 
Time Elapsed: 00:00:51.8212550
PM> 
Visual Studio Debug Console log
(UnoApp1.Skia.Gtk:1480): GLib-GIO-WARNING **: 20:02:27.207: Unexpectedly, UWP app `Microsoft.OutlookForWindows_1.2023.1214.201_x64__8wekyb3d8bbwe' (AUMId `Microsoft.OutlookForWindows_8wekyb3d8bbwe!Microsoft.OutlookforWindows') supports 1 extensions but has no verbs
warn: Uno.Extensions.Storage.FileStorage[0]
      ReadPackageFileAsync - File 'appsettings.keyvaluestorageconfiguration.json' does not exist in package
warn: Uno.Extensions.Storage.FileStorage[0]
      ReadPackageFileAsync - File 'appsettings.appconfig.json' does not exist in package
warn: Uno.Extensions.Storage.FileStorage[0]
      ReadPackageFileAsync - File 'appsettings.localizationconfiguration.json' does not exist in package
warn: Uno.Extensions.Storage.FileStorage[0]
      ReadPackageFileAsync - File 'appsettings.localizationsettings.json' does not exist in package
warn: Uno.Extensions.Navigation.Navigators.ContentControlNavigator[0]
      Show - Missing view for navigation path ''
fail: Microsoft.UI.Xaml.Controls.Page[0]
      Setting initial page focus failed: System.TypeLoadException: Method 'add_Paste' in type 'Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.SinglelineTextBoxView' from assembly 'Uno.UI.Runtime.Skia.Gtk, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' does not have an implementation.
         at Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.GtkTextBoxView.Create(TextBox textBox)
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.EnsureTextBoxView(TextBox textBox) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 237
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.StartEntry() in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 47
         at Microsoft.UI.Xaml.Controls.TextBoxView.OnFocusStateChanged(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxView.skia.cs:line 127
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChangedPartial(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.skia.cs:line 271
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChanged(FocusState oldValue, FocusState newValue, Boolean initial) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 900
         at Microsoft.UI.Xaml.Controls.TextBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 894
         at Microsoft.UI.Xaml.Input.FocusManager.UpdateFocus(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 1855
         at Microsoft.UI.Xaml.Input.FocusManager.SetFocusedElement(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 216
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState focusState, Boolean animateIfBringIntoView, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 513
         at Microsoft.UI.Xaml.UIElement.FocusWithDirection(FocusState focusState, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 561
         at Microsoft.UI.Xaml.Input.FocusManager.SetFocusedElementWithDirection(DependencyObject pElement, FocusState focusState, Boolean animateIfBringIntoView, Boolean forceBringIntoView, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.static.cs:line 532
         at Uno.UI.Extensions.DependencyObjectExtensions.SetFocusedElementWithDirection(DependencyObject sourceElement, DependencyObject pFocusedElement, FocusState focusState, Boolean animateIfBringIntoView, FocusNavigationDirection focusNavigationDirection, Boolean forceBringIntoView) in /__w/1/s/src/Uno.UI/Extensions/DependencyObjectExtensions.mux.cs:line 81
         at Uno.UI.Extensions.DependencyObjectExtensions.SetFocusedElement(DependencyObject sourceElement, DependencyObject pElementToFocus, FocusState focusState, Boolean animateIfBringIntoView, Boolean isProcessingTab, Boolean isShiftPressed, Boolean forceBringIntoView) in /__w/1/s/src/Uno.UI/Extensions/DependencyObjectExtensions.mux.cs:line 64
         at Microsoft.UI.Xaml.Controls.Page.TrySetFocusedElement(DependencyObject spFirstFocusableElementDO) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/Page/Page.mux.cs:line 81
fail: Microsoft.UI.Xaml.Controls.ScrollViewer[0]
      Zoom-based content alignment is not implemented on this platform.
fail: Microsoft.UI.Xaml.UIElement[0]
      Failed to raise 'PointerPressedEvent': System.TypeLoadException: Method 'add_Paste' in type 'Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.SinglelineTextBoxView' from assembly 'Uno.UI.Runtime.Skia.Gtk, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' does not have an implementation.
         at Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.GtkTextBoxView.Create(TextBox textBox)
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.EnsureTextBoxView(TextBox textBox) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 237
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.StartEntry() in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 47
         at Microsoft.UI.Xaml.Controls.TextBoxView.OnFocusStateChanged(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxView.skia.cs:line 127
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChangedPartial(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.skia.cs:line 271
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChanged(FocusState oldValue, FocusState newValue, Boolean initial) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 900
         at Microsoft.UI.Xaml.Controls.TextBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 894
         at Microsoft.UI.Xaml.Controls.PasswordBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/PasswordBox/PasswordBox.cs:line 257
         at Microsoft.UI.Xaml.Input.FocusManager.UpdateFocus(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 1855
         at Microsoft.UI.Xaml.Input.FocusManager.SetFocusedElement(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 216
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState focusState, Boolean animateIfBringIntoView, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 513
         at Microsoft.UI.Xaml.UIElement.FocusWithDirection(FocusState focusState, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 561
         at Microsoft.UI.Xaml.UIElement.FocusImpl(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 548
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState value) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.cs:line 445
         at Microsoft.UI.Xaml.Controls.TextBox.OnPointerPressed(PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 972
         at Microsoft.UI.Xaml.Controls.Control.<>c.<.cctor>b__363_9(Object sender, PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/Control/Control.cs:line 1025
         at Microsoft.UI.Xaml.UIElement.InvokeHandler(Object handler, RoutedEventArgs args)
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 697
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaisePointerEvent(RoutedEvent evt, PointerRoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.Pointers.cs:line 1215
fail: Microsoft.UI.Input.GestureRecognizer[0]
      Microsoft.UI.Xaml.Controls.ScrollContentPresenter Inconsistent state, we already have a pending gesture for a pointer that is going down. Abort the previous gesture.
fail: Microsoft.UI.Xaml.UIElement[0]
      Failed to raise 'PointerPressedEvent': System.TypeLoadException: Method 'add_Paste' in type 'Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.SinglelineTextBoxView' from assembly 'Uno.UI.Runtime.Skia.Gtk, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' does not have an implementation.
         at Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.GtkTextBoxView.Create(TextBox textBox)
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.EnsureTextBoxView(TextBox textBox) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 237
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.StartEntry() in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 47
         at Microsoft.UI.Xaml.Controls.TextBoxView.OnFocusStateChanged(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxView.skia.cs:line 127
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChangedPartial(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.skia.cs:line 271
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChanged(FocusState oldValue, FocusState newValue, Boolean initial) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 900
         at Microsoft.UI.Xaml.Controls.TextBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 894
         at Microsoft.UI.Xaml.Input.FocusManager.UpdateFocus(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 1855
         at Microsoft.UI.Xaml.Input.FocusManager.SetFocusedElement(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 216
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState focusState, Boolean animateIfBringIntoView, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 513
         at Microsoft.UI.Xaml.UIElement.FocusWithDirection(FocusState focusState, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 561
         at Microsoft.UI.Xaml.UIElement.FocusImpl(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 548
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState value) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.cs:line 445
         at Microsoft.UI.Xaml.Controls.TextBox.OnPointerPressed(PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 972
         at Microsoft.UI.Xaml.Controls.Control.<>c.<.cctor>b__363_9(Object sender, PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/Control/Control.cs:line 1025
         at Microsoft.UI.Xaml.UIElement.InvokeHandler(Object handler, RoutedEventArgs args)
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 697
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaisePointerEvent(RoutedEvent evt, PointerRoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.Pointers.cs:line 1215
fail: Microsoft.UI.Input.GestureRecognizer[0]
      Microsoft.UI.Xaml.Controls.ScrollContentPresenter Inconsistent state, we already have a pending gesture for a pointer that is going down. Abort the previous gesture.
fail: Microsoft.UI.Xaml.UIElement[0]
      Failed to raise 'PointerPressedEvent': System.TypeLoadException: Method 'add_Paste' in type 'Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.SinglelineTextBoxView' from assembly 'Uno.UI.Runtime.Skia.Gtk, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' does not have an implementation.
         at Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.GtkTextBoxView.Create(TextBox textBox)
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.EnsureTextBoxView(TextBox textBox) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 237
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.StartEntry() in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 47
         at Microsoft.UI.Xaml.Controls.TextBoxView.OnFocusStateChanged(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxView.skia.cs:line 127
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChangedPartial(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.skia.cs:line 271
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChanged(FocusState oldValue, FocusState newValue, Boolean initial) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 900
         at Microsoft.UI.Xaml.Controls.TextBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 894
         at Microsoft.UI.Xaml.Controls.PasswordBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/PasswordBox/PasswordBox.cs:line 257
         at Microsoft.UI.Xaml.Input.FocusManager.UpdateFocus(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 1855
         at Microsoft.UI.Xaml.Input.FocusManager.SetFocusedElement(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 216
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState focusState, Boolean animateIfBringIntoView, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 513
         at Microsoft.UI.Xaml.UIElement.FocusWithDirection(FocusState focusState, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 561
         at Microsoft.UI.Xaml.UIElement.FocusImpl(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 548
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState value) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.cs:line 445
         at Microsoft.UI.Xaml.Controls.TextBox.OnPointerPressed(PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 972
         at Microsoft.UI.Xaml.Controls.Control.<>c.<.cctor>b__363_9(Object sender, PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/Control/Control.cs:line 1025
         at Microsoft.UI.Xaml.UIElement.InvokeHandler(Object handler, RoutedEventArgs args)
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 697
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaisePointerEvent(RoutedEvent evt, PointerRoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.Pointers.cs:line 1215
fail: Microsoft.UI.Input.GestureRecognizer[0]
      Microsoft.UI.Xaml.Controls.ScrollContentPresenter Inconsistent state, we already have a pending gesture for a pointer that is going down. Abort the previous gesture.
fail: Microsoft.UI.Xaml.UIElement[0]
      Failed to raise 'PointerPressedEvent': System.TypeLoadException: Method 'add_Paste' in type 'Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.SinglelineTextBoxView' from assembly 'Uno.UI.Runtime.Skia.Gtk, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' does not have an implementation.
         at Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.GtkTextBoxView.Create(TextBox textBox)
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.EnsureTextBoxView(TextBox textBox) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 237
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.StartEntry() in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 47
         at Microsoft.UI.Xaml.Controls.TextBoxView.OnFocusStateChanged(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxView.skia.cs:line 127
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChangedPartial(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.skia.cs:line 271
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChanged(FocusState oldValue, FocusState newValue, Boolean initial) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 900
         at Microsoft.UI.Xaml.Controls.TextBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 894
         at Microsoft.UI.Xaml.Input.FocusManager.UpdateFocus(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 1855
         at Microsoft.UI.Xaml.Input.FocusManager.SetFocusedElement(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 216
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState focusState, Boolean animateIfBringIntoView, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 513
         at Microsoft.UI.Xaml.UIElement.FocusWithDirection(FocusState focusState, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 561
         at Microsoft.UI.Xaml.UIElement.FocusImpl(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 548
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState value) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.cs:line 445
         at Microsoft.UI.Xaml.Controls.TextBox.OnPointerPressed(PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 972
         at Microsoft.UI.Xaml.Controls.Control.<>c.<.cctor>b__363_9(Object sender, PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/Control/Control.cs:line 1025
         at Microsoft.UI.Xaml.UIElement.InvokeHandler(Object handler, RoutedEventArgs args)
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 697
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaisePointerEvent(RoutedEvent evt, PointerRoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.Pointers.cs:line 1215
fail: Microsoft.UI.Xaml.UIElement[0]
      Failed to raise 'PointerPressedEvent': System.TypeLoadException: Method 'add_Paste' in type 'Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.SinglelineTextBoxView' from assembly 'Uno.UI.Runtime.Skia.Gtk, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' does not have an implementation.
         at Uno.UI.Runtime.Skia.Gtk.UI.Xaml.Controls.GtkTextBoxView.Create(TextBox textBox)
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.EnsureTextBoxView(TextBox textBox) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 237
         at Uno.UI.Xaml.Controls.Extensions.OverlayTextBoxViewExtension.StartEntry() in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/OverlayTextBoxView/OverlayTextBoxViewExtension.skia.cs:line 47
         at Microsoft.UI.Xaml.Controls.TextBoxView.OnFocusStateChanged(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxView.skia.cs:line 127
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChangedPartial(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.skia.cs:line 271
         at Microsoft.UI.Xaml.Controls.TextBox.OnFocusStateChanged(FocusState oldValue, FocusState newValue, Boolean initial) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 900
         at Microsoft.UI.Xaml.Controls.TextBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 894
         at Microsoft.UI.Xaml.Controls.PasswordBox.UpdateFocusState(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/PasswordBox/PasswordBox.cs:line 257
         at Microsoft.UI.Xaml.Input.FocusManager.UpdateFocus(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 1855
         at Microsoft.UI.Xaml.Input.FocusManager.SetFocusedElement(FocusMovement movement) in /__w/1/s/src/Uno.UI/UI/Xaml/Input/FocusManager.mux.cs:line 216
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState focusState, Boolean animateIfBringIntoView, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 513
         at Microsoft.UI.Xaml.UIElement.FocusWithDirection(FocusState focusState, FocusNavigationDirection focusNavigationDirection) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 561
         at Microsoft.UI.Xaml.UIElement.FocusImpl(FocusState focusState) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.mux.cs:line 548
         at Microsoft.UI.Xaml.UIElement.Focus(FocusState value) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.cs:line 445
         at Microsoft.UI.Xaml.Controls.TextBox.OnPointerPressed(PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs:line 972
         at Microsoft.UI.Xaml.Controls.Control.<>c.<.cctor>b__363_9(Object sender, PointerRoutedEventArgs args) in /__w/1/s/src/Uno.UI/UI/Xaml/Controls/Control/Control.cs:line 1025
         at Microsoft.UI.Xaml.UIElement.InvokeHandler(Object handler, RoutedEventArgs args)
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 697
         at Microsoft.UI.Xaml.UIElement.RaiseEvent(RoutedEvent routedEvent, RoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.RoutedEvents.cs:line 763
         at Microsoft.UI.Xaml.UIElement.RaisePointerEvent(RoutedEvent evt, PointerRoutedEventArgs args, BubblingContext ctx) in /__w/1/s/src/Uno.UI/UI/Xaml/UIElement.Pointers.cs:line 1215
GLIB UNHANDLED EXCEPTIONSystem.MissingMethodException: Method not found: 'Void Windows.UI.Core.KeyEventArgs..ctor(System.String, Windows.System.VirtualKey, Windows.System.VirtualKeyModifiers, Windows.UI.Core.CorePhysicalKeyStatus)'.
   at Uno.UI.Runtime.Skia.Gtk.GtkKeyboardInputSource.OnKeyPressEvent(EventKey evt)
   at Uno.UI.Runtime.Skia.Gtk.GtkKeyboardInputSource.OnKeySnoop(Widget grab_widget, EventKey e)
   at GtkSharp.KeySnoopFuncWrapper.NativeCallback(IntPtr grab_widget, IntPtr evnt, IntPtr func_data)

D:\source\repos\UnoApp1\UnoApp1\UnoApp1.Skia.Gtk\bin\Debug\net8.0\UnoApp1.Skia.Gtk.exe (process 1480) exited with code 1.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

@Youssef1313
Copy link
Member

@qhj Could you upload the project? It will help investigating this crash.

@qhj
Copy link
Author

qhj commented Jan 12, 2024

@qhj Could you upload the project? It will help investigating this crash.

https://github.com/qhj/UnoApp1

@Youssef1313
Copy link
Member

That crash is due to mismatching version that happened when NuGet crashed and failed to update all dependencies. This PR fixes that: qhj/UnoApp1#1

@qhj
Copy link
Author

qhj commented Jan 12, 2024

@Youssef1313 Thank you very much!

The problem that TextBox().Text() font size changes on focus/blur seems to haven't been fixed yet. I will modify description of this issue.

@MartinZikmund MartinZikmund added difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jan 12, 2024
@qhj qhj changed the title [Skia.Gtk] (1) TextBox().PlaceholderText() and blurred TextBox().Text() without setting proper TextBox().FontFamily() render CJK fonts as tofu. (2) TextBox().Text() font size changes on focus/blur [Skia.Gtk] TextBox().Text() font size changes on focus/blur Jan 12, 2024
@jeromelaban
Copy link
Member

@qhj does it repro if you use the fluent theme instead?

@qhj
Copy link
Author

qhj commented Jan 15, 2024

@jeromelaban Yes.

screen record 1
2024-01-15.23-11-19.mp4

Found a new problem that placeholder text and input text are not vertically centered on WinUI (fluent theme). As shown below.

screen record 2
2024-01-15.23-13-28.mp4

Created a new repo, https://github.com/qhj/unoApp2

@ramezgerges ramezgerges self-assigned this Jan 16, 2024
@jeromelaban
Copy link
Member

@qhj Thanks for the update. It's best to attach a zip of the sample, as the repository is not public at this time, but you may also remove it in the future. Thanks!

@qhj
Copy link
Author

qhj commented Jan 16, 2024

@jeromelaban Sorry, I forgot to make the repo pubilic, it's public now. And here is the zip file of this repo.

UnoApp2-master.zip

@ramezgerges
Copy link
Contributor

The problem with vertical alignment is tracked in #14705 and should be fixed with #13810. As for the size changing: For a regular TextBox, it seems to be working fine and the size isn't changing, but there are differences in FontWeight between focused and unfocused states. It's mostly a limitation with SkiaSharp and/or Gtk and is being partially tracked in #13725. As for PasswordBox, the size change turned out not be a size change, but a glyph change. We were mistakenly using • in the unfocused passwordbox, and ● in the focused passwordbox (provided by GTK) instead of ● in both.

@mergify mergify bot closed this as completed in #15170 Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/skia/text ✏️ area/skia ✏️ Categorizes an issue or PR as relevant to Skia difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/text 🔤 Categorizes an issue or PR as relevant to text (TextBox, PasswordBox, TextBlock, Fonts, …)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants