#[Solved] Lambda capture at index 0 was freed.

5 messages · Page 1 of 1 (latest)

bronze flower
#

found a bug: call: Lambda capture at index 0 was freed. Passed "null" instead.

Hi all, I just encountered this bug in my game. It didn't crash the project run but it does concerns me because it doesn't really give me where it was wrong.

I suspect it happened because I was "queue.free()"-ing the node when it was still processing the lambda function. Does anyone ever encounter this problem before?

I was using Godot ver 4.2.1. Thanks in advance

bronze flower
#

[Solved] Lambda capture at index 0 was freed.

#

[Partially Solved] I've created a 0.1 s timer before the queue.free function was called.

trim wing
#

would deferring it fix it ?

#

call_deferred("queue_free")