Search Issue Tracker
Won't Fix
Won't Fix in 5.6.X, 2017.1.X, 2017.2.X, 2017.3.X
Votes
1
Found in
5.6.3p3
Issue ID
952512
Regression
No
[iOS][Android] Constructing System.Globalization.CultureInfo objects can throw an Exception
When constructing System.Globalization.CultureInfo objects, they can throw exception:
ArgumentException: Culture ID 0 (0x0000) is not a supported culture.
However, after inserting logs into the file, the exception is no longer thrown.
Reproduced on both iOS and Android, on both IL2CPP and Mono.
Steps:
1. Build and Run attached project ("Unity5-iOSCultureExceptionRepro.zip") on Andoird or iOS device
2. Press 'Without Logs' button
Result: ArgumentException occurs. On iOS build crashes.
Reproduced with: 2017.3.0b1, 2017.1.1p3, 5.6.3p3.
Tested with: iPod 6th gen (iOS10.2.1), Nexus 6 (Android 6.0.1).
Note: Interestingly, pressing the 'With Logs' button FIRST, and then pressing 'Without Logs' will NOT cause the exception to occur.
WORKAROUND: Workarounds include using a later version of the .NET Libraries (because the culturecode is quite different and this doesn't happen) or making a call to `System.Globalization.CultureInfo.CurrentCulture` first and this will set the BootstrapCultureID.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Active Targets section text in Graph Inspector is truncated despite available space
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
Add comment