Search Issue Tracker

Fixed in Entities 0.5.0-preview.17

Votes

0

Found in [Package]

Entities 0.3.0-preview.4

Issue ID

1203652

Regression

No

Serializing System.String[] of only one element causes exception: Index has to be >= lower bound and <= upper bound of the array

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the attached SerializationIssue.zip project
2. Open the Sample Scene from the Project window
3. Go to the Hierarchy window-> select GameObject scene
4. Go to the Inspector window-> Sub Scene (script) -> Press Edit and then Close button
5. Inspect the error in the Console window

Actual: The error is thrown:
"Error when processing 'AsyncLoadSceneJob(VirtualArtifacts/Extra/e0/e0eb776b2e6d8add6bf5bd08e0d0b515.0.entities)': System.IndexOutOfRangeException: Index has to be >= lower bound and <= upper bound of the array.
at System.Array.SetValue (System.Object value, System.Int32 index) [0x00034] in <437ba245d8404784b9fbab9b439ac908>:0"

Reproducible with: 20219.3.0f2, 2020.1.0a16

Note: Could not test with earlier versions because of the thrown errors

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.