View Issue Details

IDProjectCategoryView StatusLast Update
0000573Gameplay + OpenGL[All Projects] Bugpublic2017-04-15 06:21
ReporterRaveYard 
Assigned To 
PrioritynormalSeverityminorReproducibilityrandom
Status resolvedResolutionfixed 
Summary0000573: ZScript - Dynamic Array Elements Turning Null
DescriptionAnother 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 ReproduceLaunch 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 InformationExample log:

Loaded new 00000000062DFDA0, into array where it is stored as: 00000000062DFDA0
content: 00000000062DFDA0

Loaded new 00000000062DF440, into array where it is stored as: 00000000062DF440
content: 0000000000000000

Loaded new 00000000066AB890, into array where it is stored as: 00000000066AB890
content: 0000000000000000
content: 00000000066AB890
TagsNo tags attached.

Relationships

Activities

RaveYard

RaveYard

2017-04-12 12:04

reporter  

Glitch.pk3 (115,371 bytes)

Issue History

Date Modified Username Field Change
2017-04-12 12:04 RaveYard New Issue
2017-04-12 12:04 RaveYard File Added: Glitch.pk3
2017-04-15 06:21 Graf Zahl Status new => resolved
2017-04-15 06:21 Graf Zahl Resolution open => fixed