Search Issue Tracker
Fixed
Fixed in 2022.3.28f1
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}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Resolution Note (fix version 2022.3.28f1):
[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.