iOS app crashes on device when pasting into Entry
See original GitHub issueDescription
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
-
NET Maui App
-
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”
-
Connect device to computer
-
Deploy app to device
-
Copy a URL from Safari
-
Paste the URL into the Entry
-
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:
- Created a year ago
- Comments:7 (3 by maintainers)

Top Related StackOverflow Question
This issue must be fixed in the latest release.
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!