Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2019.4.X, 2020.3.X, 2021.1.X, 2021.2.X

Votes

8

Found in

Issue ID

1360514

Regression

Yes

[UWP] HoloLens TouchScreenKeyboard closes ~4 seconds after focusing TMP input field

When selecting an input field in HoloLens2, the Keyboard will open but then automatically closes after ~4 seconds.

Steps:
1. Open attached project
2. Build for UWP and run on HoloLens2 (or HL2 emulator)
3. Use the on-screen keyboard to enter text into the input field
4. Close the Keyboard
5. Select the input field again to re-open the keyboard
6. Wait about 5 seconds

Expected: Keyboard remains open
Actual: Keyboard automatically closes after ~4 seconds

This bug is related to this issue: https://issuetracker.unity3d.com/issues/uwp-xbox-onscreenkeyboard-is-immediately-closed-when-selecting-inputfield. The fix (workaround WinRT bug with InputField::Show()) introduced a race-condition that's now causing this problem.

It's also related this this other issue: https://issuetracker.unity3d.com/issues/hololens-2-set-selection-throws-argumentoutofrangeexception. The unhanded exception is a factor in triggering this bug, but the root issue is a race-condition.

  1. Response avatar

    Resolution Note (fix version 2022.1):

    The fix for TMP ArgumentOutOrRange exception: https://issuetracker.unity3d.com/issues/hololens-2-set-selection-throws-argumentoutofrangeexception will also address this issue. The unhanded exception is one of factors leading to this problem. However, a separate fix for the root problem (race condition) is also being made.

Comments (6)

  1. D36bef79279b64bad2ebbe749118f68a?d=mm

    Spoon92

    Sep 15, 2021 08:34

    Into which version of 2020.3.X will this fix be shipped?
    And thanks for the quick fixing of the issue. :ThumbsUp:

  2. Ac4a791f174633223f87bad9cec37f91?d=mm

    AvatarJoe

    Sep 14, 2021 21:14

    I'm extremely appreciative of the quick turn around, thank you for addressing this.

  3. B8b80be8161a00cf42ed2c78090b3bae?d=mm

    timke

    Sep 07, 2021 22:59

    I working to backport the fix to 2019 LTS as quickly as possible.

  4. D36bef79279b64bad2ebbe749118f68a?d=mm

    Spoon92

    Aug 30, 2021 18:16

    We witness a similar issue in Unity 2020.3.16f1

  5. Ac4a791f174633223f87bad9cec37f91?d=mm

    AvatarJoe

    Aug 25, 2021 18:47

    Hey guys, if possible can we get this fixed in Unity 2019.4 first? Most of the people experiencing this issue will be working with the HoloLens 2 and relying on Legacy XR which is in 2019.4. Much appreciated.

  6. 2aca587d9aca443517f3a3b9009411fb?d=mm

    stevenkelly619

    Aug 25, 2021 17:17

    Thanks for this tutorial... i'd give it a trial and give you a feedback

    https://github.com/naijaloadedmee

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.