Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
An IndexOutOfRangeException occurs when the code tries to access an element with an index that is outside the bounds of an array.
My view distance for objects and terrain was set high. I never received an error code when generating maps with these settings on planets like Mars and Europa, but the error code occurred when loading in Loulan as a new planet.
The crash seems to be tied to object generation in a new world - too big of a view distance can in turn cause too big of a load on the engine, and will crash it. At least this is what I suspect. It's possible for you to replicate it ; boot up the game, set your view distance for "things" higher on the scale, select New World and play Loulan. Likely the crash will occur.
It just happened to me. problem happened at:
Assets.Scripts.Voxel.VoxelGrid.GetVoxel (System.Int32 x, System.Int32 y, System.Int32 z) [0x00000] in C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Voxel\VoxelGrid.cs:111
I just finished the tutorial for crafting new items using autolathe. Then I started the tutorial about creating a breathable atmosphere. The loadscreen stuck with the "Loading chunk 536 of 536", the music kept playing and the small crash alert popped. Here are the logs nearby the Exception:
Server Started
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Assets.Scripts.Networking.SteamServer:StartSteamServer(Boolean, Boolean) (at C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Steam\Matchmaking\SteamServer.cs:837)
Assets.Scripts.Networking.SteamServer:SetupGameServer(Boolean, Boolean) (at C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Steam\Matchmaking\SteamServer.cs:663)
Assets.Scripts.Serialization.<LoadWorld>d__206:MoveNext() (at C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Serialization\XmlSaveLoad.cs:2685)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at C:\buildslave\unity\build\Runtime\Export\Scripting\Coroutines.cs:17)
(Filename: C:/Jenkins/jobs/Game_Client/workspace/Assets/Scripts/Steam/Matchmaking/SteamServer.cs Line: 837)
Unloading 0 Unused Serialized files (Serialized files now loaded: 1)
IndexOutOfRangeException: Index was outside the bounds of the array.
at (wrapper managed-to-managed) System.Object.ElementAddr_2(object,int,int,int)
at Assets.Scripts.Voxel.VoxelGrid.GetVoxel (System.Int32 x, System.Int32 y, System.Int32 z) [0x00000] in C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Voxel\VoxelGrid.cs:111
at Assets.Scripts.Voxel.ChunkObject.GetVoxelWithNeighbor (System.Int32 x, System.Int32 y, System.Int32 z) [0x000fb] in C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Voxel\ChunkObject.cs:707
at Assets.Scripts.Voxel.ChunkObject.IsVoxelAboveMinDensity (System.Int32 x, System.Int32 y, System.Int32 z) [0x00001] in C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Voxel\ChunkObject.cs:722
at Assets.Scripts.Voxel.ChunkObject.GetNumberOfNeighbours (UnityEngine.Vector3 worldPos) [0x00024] in C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Voxel\ChunkObject.cs:740
at Assets.Scripts.Voxel.Mineables.get_IsOpen () [0x00000] in C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Voxel\Asteroid.cs:106
at Assets.Scripts.Voxel.Asteroid.CalculateOpenMineables () [0x00033] in C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Voxel\Asteroid.cs:310
at Assets.Scripts.Serialization.XmlSaveLoad+<LoadWorld>d__206.MoveNext () [0x009d6] in C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Serialization\XmlSaveLoad.cs:2923
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00028] in C:\buildslave\unity\build\Runtime\Export\Scripting\Coroutines.cs:17
(Filename: C:/Jenkins/jobs/Game_Client/workspace/Assets/Scripts/Voxel/VoxelGrid.cs Line: 111)
Added Connection Host : True
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Assets.Scripts.Networking.<WaitingPlayerLoadingWorld>d__32:MoveNext() (at C:\Jenkins\jobs\Game_Client\workspace\Assets\Scripts\Networking\NetworkManagerOverride.cs:1275)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) (at C:\buildslave\unity\build\Runtime\Export\Scripting\Coroutines.cs:17)
(Filename: C:/Jenkins/jobs/Game_Client/workspace/Assets/Scripts/Networking/NetworkManagerOverride.cs Line: 1275)
Edit: The error seems to go away during generation if you play with the lava level a bit in the customisation menu, just place it at -10 or lower