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
- Tile Palette grid is moved after entering Play Mode
- Tile Palette Edit mode turns off in Play Mode
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Font Import Settings documentation page is missing when the documentation button is pressed in the Inspector window
Add comment