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
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
- Unity Perforce Integration: VCS Connection Active State Fails via CLI with Valid Inputs
- Joint Gizmos for anchor and connectedAnchor do not respect their defined bodies when Swap Bodies is enabled
- Project Settings window opens up with a blank details pane when the "Configure" button is clicked in the Package Manager after installing the Cloud Diagnostics package
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
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.