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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Add comment