View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000573 | Gameplay + OpenGL | [All Projects] Bug | public | 2017-04-12 12:04 | 2017-04-15 06:21 |
Reporter | RaveYard | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | random |
Status | resolved | Resolution | fixed | ||
Summary | 0000573: ZScript - Dynamic Array Elements Turning Null | ||||
Description | Another issue related to dynamic arrays. While messing around with my project, I found out that at some arbitrary moments my pointer stored in array would get nulled. First, I create new class Chunk, which then spawns 16x16x16 cube of blocks (with random empty spaces). Then this class gets stored in an array. The next tick, I retrieve the class from the array and then remove the spawned actors and I delete it from the array. And this goes on forever, but during garbage collection the pointer turns null. | ||||
Steps To Reproduce | Launch Glitch.pk3 and enter MAP01. After few moments null pointers will start to accumulate in the array. Be warned that it will start to eat memory, because once the class pointer gets lost, there is nothing removing the spawned actors Dc_Block1 to Dc_Block4. | ||||
Additional Information | Example log:
| ||||
Tags | No tags attached. | ||||