Search Issue Tracker

By Design

Votes

0

Found in

2021.3.28f1

2022.3.5f1

2023.1.4f1

Issue ID

UUM-42705

Regression

No

[Mobile] The Player is throwing "FormatException: Inputstring was not in a correct format" errors when the device system language isn't set to English or Chinese

-

How to reproduce:
1. On a connected device go to “Settings” → “Search” and type “Language”
2. In the “Language” screen click “Add language“ and select “France”
3. Apply the newly added French language
4. Open the attached “IN-28783“ project
5. In the “File” click “Build And Run”
6. When the Player loads observe the text

Expected result: Numbers are displayed on the screen
Actual result: A custom error message is displayed on the screen

Reproducible with: 2021.3.28f1, 2022.3.5f1, 2023.1.4f1
Could not test with: 2023.2.0a23 - the project couldn’t load due to Package Manager errors

Testing environment: macOS 13.4.1 (M1)

Reproducible with devices:
VLNQA00520 - Galaxy S22 USA (SM-S901U), CPU: Snapdragon 8 Gen 1 (SM8450), GPU: Adreno 730, OS: 12
VLNQA00277 - Asus ROG Phone (ASUS_Z01QD), CPU: Snapdragon 845 SDM845, GPU: Adreno 630, OS: 8.1.0
VLNQA00521 - Galaxy S22 Ultra USA (SM-S908U), CPU: Snapdragon 8 Gen 1 (SM8450), GPU: Adreno 730, OS: 12
VLNQA00523 - Galaxy S23 (SM-S911U), CPU: Snapdragon 8 Gen 2 (SM8550), GPU: Adreno 740, OS: 13
VLNQA00530 - Sony Xperia 5 III (XQ-BQ52), CPU: Snapdragon 888, GPU: Adreno 660, OS: 11
VLNQA00494 - iPhone 14 Pro Max, 16.3.1 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS

Note: The issue could be reproduced with another system language, for example, Portuguese. Not reproducible on a Standalone Player

  1. Resolution Note:

    float.Parse() uses current locale and expects numbers to be formatted according it. You should use invariant culture to parse English-like formatted numbers.

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.