Search Issue Tracker
Won't Fix
Votes
0
Found in
4.0.1f1
Issue ID
513658
Regression
No
Sorting empty List causes range exception
1) What happened
If 'list' is a List<Foo>, and list is empty, then list.Sort() will be fine in Unity Editor or WebPlayer (it's effectively a no-op) but export that to Flash and it will RangeError.
2) How can we reproduce it using the example you attached
Repro project attached.
Run in the Editor, observe the expected log.
Export and run in Flash, observer the RangeError in flashlog.txt
NOTE: I'm using an unrelease version of Unity with DXT5 support, but I do not think it's related. Try it in any Unity release.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Add comment