Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by crevelop · Apr 22, 2020 at 05:44 PM · ioscrashinputfieldtouchscreenkeyboard

iOS crash while selecting text within an InputFied

Hello everyone.

Just having a consistent crash in iOS (iPhone) built with Unity 2019.3.9f1

Repro steps:

  • Tap on an InputField (Touchkeyboard shows up)

  • Type something

  • Try selecting the entire text or just a letter by touching/holding/dragging over the InputField

This is the crash message:

 ArgumentOutOfRangeException: Selection is out of range.
 Parameter name: selection
  at UnityEngine.TouchScreenKeyboard.set_selection (UnityEngine.RangeInt value) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.UI.InputField.LateUpdate () [0x00000] in <00000000000000000000000000000000>:0 
 UnityEngine.UnhandledExceptionHandler:PrintException(String, Exception)
 UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs)
 System.UnhandledExceptionEventHandler:Invoke(Object, UnhandledExceptionEventArgs)
  
 (Filename: currently not available on il2cpp Line: -1)

I read about a similar crash while using TMP here:

https://issuetracker.unity3d.com/issues/textmeshpro-inputfield-throws-argumentoutofrangeexception-when-emptied-with-hide-mobile-input-enabled

But I'm using UnityEngine.UI.InputField and not TMP.

I am using the InputField property Hide Mobile Input = true

The crash only happens in an iOS device, not in the Editor

Any help would be useful, thanks!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sailendu · May 04, 2020 at 06:49 AM 0
Share

I am also getting a lot of this crash in Unity Analytics, I am also using UnityEngine.UI.InputField and not T$$anonymous$$P, in Unity 2019.3.11f1. But all my crashes are on Android. Did you find any solution? Please let me know.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Sailendu · May 04, 2020 at 12:18 PM

I found a temporary solution after posting the comment earlier. The crash does not happen if the "Hide Mobile Input" property is set to false in the InputField's inspector. An additional native input text shows up above the keyboard when this is set to false, but at least the crash does not happen. I tested it in Android, have not tested in iOS yet. I am settings all my input field's Hide Mobile Input to false until the bug is fixed. Hope this helps.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

166 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

[tvOS] UI.InputField doesn't show touchscreenKeyboard automatically 1 Answer

How to disable TouchScreenKeyboard for InputField? 0 Answers

IL2CPP Crash on Instantiate(gameObject) 2 Answers

How to detect "Cancel" vs. "Enter" on iOS Inputfield 1 Answer

iOS crashing on Texture2D LoadImage 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges