question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS app crashes on device when pasting into Entry

See original GitHub issue

Description

I have an app that includes an Entry control so user can enter or paste a URL. If I paste any text in Entry control ### while the app is running on the iPhone, the app crashes.

You can view a demo of the issue here: https://youtube.com/shorts/6Yz3rHwkZag?feature=share

Specs:

  • Dev Environment:
    • Visual Studio 2022 Community 17.3.8 (Build 5) on Mac M1 Mac OS X 12.6.0
    • Xcode 14
    • Xamarin.iOS Version: 16.0.0.72
    • .NET 6.0
  • Device: iPhone 13 ProMax with iOS 16

Steps to Reproduce

  1. NET Maui App

  2. Add Entry Control on top the Image with the following specs: Entry x:Name=“txtUrl” WidthRequest=“300” HeightRequest=“50” Placeholder=“Input / Paster URL here” Keyboard=“Url” ClearButtonVisibility=“WhileEditing” BackgroundColor=“White”

  3. Connect device to computer

  4. Deploy app to device

  5. Copy a URL from Safari

  6. Paste the URL into the Entry

  7. Observe the app crashing

Link to public reproduction project repository

https://github.com/fady-intelligencex/MauiEntryBug

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16

Did you find any workaround?

Using the Editor works, but eat editor does not have a “Clear Text” option

Relevant log output

Visual Studio for Mac Specs

Visual Studio Community 2022 for Mac
Version 17.3.8 (build 5)
Installation UUID: 5cb7457e-f2c9-4fa6-a4ba-7b8f99221b81

Runtime
.NET 6.0.5 (64-bit)
Architecture: Arm64

Roslyn (Language Service)
4.3.0-3.22312.2+52adfb8b2dc71ed4278debcf13960f2116868608

NuGet
Version: 6.2.2.1

.NET SDK (Arm64)
SDK: /usr/local/share/dotnet/sdk/6.0.402/Sdks
SDK Versions:
	7.0.100-rc.2.22477.23
	6.0.402
MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks

.NET SDK (x64)
SDK Version: 3.1.424

.NET Runtime (Arm64)
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	7.0.0-rc.2.22472.3
	6.0.10

.NET Runtime (x64)
Runtime: /usr/local/share/dotnet/x64/dotnet
Runtime Version: 3.1.30

Xamarin.Profiler
Version: 1.8.0.19
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater
Version: 11

Apple Developer Tools
Xcode 14.0 (21335)
Build 14A309

Xamarin.Mac
Version: 8.12.0.2 (Visual Studio Community)
Hash: 87f98a75e
Branch: d17-3
Build date: 2022-07-25 20:18:54-0400

Xamarin.iOS
Version: 16.0.0.72 (Visual Studio Community)
Hash: 6756a1146
Branch: release/6.0.4xx-xcode14
Build date: 2022-09-21 08:51:06-0400

Xamarin Designer
Version: 17.3.0.208
Hash: 0de472ea0
Branch: remotes/origin/d17-3
Build date: 2022-10-13 22:08:53 UTC

Xamarin.Android
Version: 13.0.0.0 (Visual Studio Community)
Commit: xamarin-android/d17-3/030cd63
Android SDK: /Users/fadyel-rukby/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		12.0 (API level 31)
		11.0 (API level 30)
		13.0 (API level 33)

SDK Command-line Tools Version: 7.0
SDK Platform Tools Version: 33.0.2
SDK Build Tools Version: 33.0.0

Build Information: 
Mono: dffa5ab
Java.Interop: xamarin/java.interop/d17-3@7716ae53
SQLite: xamarin/sqlite/3.38.5@df4deab
Xamarin.Android Tools: xamarin/xamarin-android-tools/main@14076a6

Microsoft Build of OpenJDK
Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk
11.0.12
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Eclipse Temurin JDK
Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk
1.8.0.302
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Android SDK Manager
Version: 17.3.0.23
Hash: 965bf40
Branch: remotes/origin/d17-3
Build date: 2022-10-13 22:08:57 UTC

Android Device Manager
Version: 0.0.0.1169
Hash: fafb1d5
Branch: fafb1d5
Build date: 2022-10-13 22:08:57 UTC

Build Information
Release ID: 1703080005
Git revision: 6a0d8af1de04f96af57762154da284796414cdd2
Build date: 2022-10-13 22:06:30+00
Build branch: release-17.3
Build lane: release-17.3

Operating System
Mac OS X 12.6.0
Darwin 21.6.0 Darwin Kernel Version 21.6.0
    Mon Aug 22 20:20:05 PDT 2022
    root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 arm64

Enabled user installed extensions
NuGet Package Explorer 0.10
.NET Core Extensions 0.5
NuGet Package Management Extensions 0.32

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jsuarezruizcommented, Oct 24, 2022

This issue must be fixed in the latest release.

0reactions
msftbot[bot]commented, Dec 14, 2022

Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes when trying to copy text on iPhone - ios
1 Answer 1 · The app doesn't crash at this point. It only crashes when I press the "Copy" button in the AlertController...
Read more >
iOS 15 crash when text fields are
Above is the crash log. It only happens on a few devices. It happens only with iOS 15. It happens when users tap...
Read more >
the default Notes app crashes immediately when opened ...
the default Notes app crashes immediately when opened after pasting some text to a note, here's how I fixed it. · 1- open...
Read more >
Pasting into a new text field crashes the app
Pasting into a new text field crashes the app · 1) Open TapForms on iPad · 2) Select a database · 3) Choose...
Read more >
App crash on iOS devices after clicking on (non-empty ...
Launch the project on an iOS device; Click on the Editable Text and type some letter. Click “OK” button to confirm your input;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found