Regarding the bug where nodes inexplicably follow the player

Reproducible version
AGMaker 1.0.13
Problem description
While attempting to implement item pickup functionality, I encountered an interesting bug. When I linked three actions (idle state → print message → self-destruct) in sequence, the item would start following the player upon contact. Subsequently, the game would freeze and crash.
Reproduction steps

  1. Download the attachment, unzip it, import the project, and press F5 to run.
  2. Move left and right with A and D, and touch the item.

Attachment
背包系统研究.zip (3.0 MB)

「いいね!」 1

According to the written steps, I can make the item follow the player, but the game does not freeze or crash. Can you reproduce this issue 100% of the time?

Well… I can’t reproduce the game crash 100%. It’s an occasional phenomenon in my project, so I’m not sure if it’s related to performance.

Can you trigger it with a high probability? Are there any techniques or tricks in operation?

I found that adding operations on the user database during the handling of items, such as making it equal to a variable of another object, would increase the probability of a crash.

So, do you mean if there is a database operation at the same time as a destroy the object operation it increases the chance of a crash?

Or just database checks between 2 different objects increases crash chance?

I think so. Actually, there are mainly two issues:

  1. I didn’t set the nodes to move along with the players, but this effect is triggered for unknown reasons. However, the problem will be resolved by canceling the self-disappearing action of the corresponding object in the project file.
  2. Regarding the issue that user database operations can cause the game to crash: originally, I used three actions to write to the user database to simulate the action of items being put into the backpack. But during the test, when touching the items, I found that the entire interface, including the editor, couldn’t be clicked. Later, as I gradually deleted these actions, the probability of crashing decreased.

Sorry for the slow replay. We’re looking into the report, and will let you know if we have any more questions.