godotengine / godotengine/godot
USER ERROR: FATAL: Index p_index = 4294967294 is out of bounds (count = 32772). at: operator[] (./core/templates/local_vector.h:161)
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
- Reproducable, though I'm sure this is a rare instance lol.
Godot 4.2.2, Forward+
### System information
Godot v4.2.2.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XT (Advanced Micro Devices, Inc.; 31.0.24002.92) - 13th Gen Intel(R) Core(TM) i5-13600K (20 Threads)
### Issue description
I'm creating a minecraft like game using cubes, See this video : https://www.youtube.com/watch?v=iQS3WelK7pU
And find the source code : https://pastebin.com/dtgJ8na8
I reliably get this error when I up the render_distance to around 18 - 24. The queue does not grow beyond 100, but the game crashes, and the only error supplied is:
USER ERROR: FATAL: Index p_index = 4294967294 is out of bounds (count = 32772). at: operator[] (./core/templates/local_vector.h:161)
I have no idea whats causing it. Any help is appreciated.
### Steps to reproduce
Up the chunks to beyond 18, crashes randomly.
### Minimal reproduction project (MRP)
Honestly I'm not sure what causes this. Sorry.
Contributor guide
Assessment
This issue has not been assessed yet.