Search Issue Tracker

In Progress

Fix In Review for 2022.3.X

Votes

0

Found in

2022.3.23f1

Issue ID

UUM-68607

Regression

Yes

[Android] Android build fails with an error "System.FormatException: Input string was not in a correct format." when Aspect Ratio Mode is set to other than "Native Aspect Ratio" and Windows language is set to French (France)

--

-

How to reproduce:
1. Change Windows language to France (I used French (France))
2. Create a new Unity project
3. In the project go to Project Settings → Resolution and Presentation
4. Change Aspect Ratio Mode from “Native Aspect Ratio“ to “Custom“ or other
5. In the Build Settings press Build

Expected result: Project builds successfully
Actual result: Build fails with an error “System.FormatException: Input string was not in a correct format.“

Reproducible with: 2022.2.0a16, 2022.3.23f1, 2023.1.0b12
Not reproducible with: 2021.3.37f1, 2022.2.0a15, 2023.2.17f1, 6000.0.0b14
Fixed in: 2023.1.0b13

Reproducible on: Windows 10 Pro
Not reproducible on: No other environment tested

Notes:
- Reproducible with “Legacy Wide Screen (1.86) and “Custom” Aspect Ratio Mode
- Not reproducible when building Windows Standalone build (no such Aspect Ratio Mode option)

Full error:

{noformat}Building Library\Bee\artifacts\Android\Manifest\LauncherManifestDiag.txt failed with output:
System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at System.Single.Parse(String s)
at AndroidPlayerBuildProgram.Actions.GenerateManifests.PatchLibraryManifest(Manifest manifest, ManifestDiagnostics diagnostics)
at AndroidPlayerBuildProgram.Actions.GenerateManifests..ctor(Arguments arguments)
at AndroidPlayerBuildProgram.Actions.GenerateManifests.Run(CSharpActionContext context, Arguments arguments)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&){noformat}

  1. Resolution Note (fix version 2022.3):

    [Android] Fixed float parsing and serializing for maxAspectRatio attribute by using InvariantCulture to avoid build failure on 2022.3 when system language is French and Aspect Ratio Mode is not Native.

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.