Hi everyone,
I’m facing a persistent crash in my project related to linked objects and runtime deletion/recreation.
The crash message is:
TypeError: Cannot read properties of null (reading position)
It happens during a “reroll” action in my game (similar to a shop refresh):
I delete a set of TokenCat, TxtHP, TxtATK, TxtLVL, etc., all linked to Carta_Blanca objects through the Linked Objects extension, and then immediately recreate and re-link new ones.
What works
If I manually disable my two “over/hover” groups (which move or resize those linked texts on mouse over/out), everything works fine — no crash.
When those groups are active, the crash happens randomly (but always right after the reroll).
I tried:
- Setting a scene variable is_refreshing = 1 during reroll and using that condition in the hover groups.
- Adding Wait(0.1) between delete and create.
- Checking object counts (SceneInstancesCount > 0).
- Moving all logic into Repeat / ForEach events carefully.
But the crash persists unless I disable those two event groups manually in the editor.
The main problem
GDevelop currently has no action to enable or disable an event group at runtime, and that would actually solve this easily.
If we had actions like:
EnableEventGroup(“GroupName”)
DisableEventGroup(“GroupName”)
…we could temporarily turn off hover/update groups during reroll and turn them back on after everything is recreated.
What I suspect
It looks like some “LinkedObjects::PickObjectsLinkedTo” actions from the hover groups are still running in the same frame that the texts are being deleted, so Pixi tries to update the position of a text that no longer exists.
Basically, it’s a race condition between deletion and picking linked instances.
Question
- Is there any current way (via action, JavaScript event, or workaround) to disable/enable event groups at runtime?
- If not, could this be considered as a feature request? It would really help prevent crashes when refreshing dynamic UI linked to objects.
Example project snippet
I can share the JSON structure if needed — it’s a simplified reroll event that deletes all linked texts, recreates them, and links them again to 5 cards.
It works perfectly when the hover groups are disabled, so it’s definitely related to them still running while the objects are being refreshed.
Thanks in advance! ![]()
Luis







