Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] Error with hiding soft keyboard #15757

Open
AWT-CCreech opened this issue Jun 1, 2023 · 0 comments
Open

[Bug] Error with hiding soft keyboard #15757

AWT-CCreech opened this issue Jun 1, 2023 · 0 comments
Labels
a/keyboard s/unverified New report that has yet to be verified t/bug 🐛

Comments

@AWT-CCreech
Copy link

Description

App appears to be crashing when attempting to scan data to entry. I have a custom renderer to hide the soft keyboard on focus of entry. Receive the below logs when consistently scanning serial numbers. Seems like data is attempting to be passed to entry but the entry is out of focus.

[InputMethodManager] Ignoring onBind: cur seq=13728, given seq=13727
[IInputConnectionWrapper] commitText on inactive InputConnection
[IInputConnectionWrapper] sendKeyEvent on inactive InputConnection
[IInputConnectionWrapper] sendKeyEvent on inactive InputConnection

Steps to Reproduce

Refer to attached txt file, this is my code for the "keyboardless" entry renderer.
MyEntryRenderer.txt

Expected Behavior

Data scanned to "keyboardless" entry and then select all entry text so each new scan overwrites each subsequent scan.

Actual Behavior

Able to scan couple of serial numbers before app crashes without error or log of what caused the crash.

Basic Information

  • Version with issue: Xamarin.Forms(5.0.0.2515)
  • Last known good version: Xamarin.Forms(5.0.0.2515)
  • Platform Target Frameworks:
    • iOS: N/A
    • Android: 13.0 (API Level 33)
    • UWP: N/A
  • Android Support Library / AndroidX Version:
  • NuGet Packages: DevExpressData, Newtonsoft.json, sqlite-net-pcl, System.ServiceModel.Duplex, System.ServiceModel.Http, System.ServiceModel.NetTcp, System.ServiceModel.Security, Xam.Plugin.SimpleAudioPlayer, XamarinEssentials, Xamarin.Forms
  • Affected Devices: Zebra TC72

Environment

Show/Hide Visual Studio info
Microsoft Visual Studio Community 2022
Version 17.5.4
VisualStudio.17.Release/17.5.4+33530.505
Microsoft .NET Framework
Version 4.8.04161

Installed Version: Community

Visual C++ 2022   00476-80000-00000-AA453
Microsoft Visual C++ 2022

ASP.NET and Web Tools   17.5.318.41597
ASP.NET and Web Tools

Azure App Service Tools v3.0.0   17.5.318.41597
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools   17.5.318.41597
Azure Functions and Web Jobs Tools

C# Tools   4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Extensibility Message Bus   1.4.3 (main@2a4517a)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio   17.5.9 (11975e6)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   6.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Razor (ASP.NET Core)   17.5.2.2316603+9f1b6856460af1e592d387ebef416eadddac453f
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools   17.2.40120.0
Microsoft SQL Server Data Tools

TypeScript Tools   17.0.20105.2003
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual C++ for Cross Platform Mobile Development (Android)   17.0.33312.129
Visual C++ for Cross Platform Mobile Development (Android)

Visual F# Tools   17.5.0-beta.23053.5+794b7c259d9646a7eb685dad865aa27da7940a21
Microsoft Visual F# Tools

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

VisualStudio.DeviceLog   1.0
Information about my package

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

VSPackage Extension   1.0
VSPackage Visual Studio Extension Detailed Info

Xamarin   17.5.0.173 (d17-5@33e727c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   17.5.3.46 (remotes/origin/d17-5@e4dd80b2bb)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   17.5.41 (ba80d05)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   13.2.0.0 (d17-5/797e2e1)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: 6dd9def
    Java.Interop: xamarin/java.interop/main@149d70fe
    SQLite: xamarin/sqlite/3.40.0@fdc1e34
    Xamarin.Android Tools: xamarin/xamarin-android-tools/main@9f02d77


Xamarin.iOS and Xamarin.Mac SDK   16.2.0.5 (7738c90c9)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Build Logs

Screenshots

Reproduction

Implement the renderer referenced in the MyEntryRenderer.txt file as well as this snippet below for focus of entry, and begin scanning data to the entry.

private void entry_Focused(object sender, FocusEventArgs e)
{
Dispatcher.BeginInvokeOnMainThread(delegate
{
var entry = (Entry)sender;
entry.CursorPosition = 0;
entry.SelectionLength = entry.Text != null ? entry.Text.Length : 0;
});
}

Workaround

No workaround discovered as of yet. App was fine and stable up until yesterday morning.

@AWT-CCreech AWT-CCreech added s/unverified New report that has yet to be verified t/bug 🐛 labels Jun 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/keyboard s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

3 participants
@jsuarezruiz @AWT-CCreech and others