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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment