【BUG】Crash occurs when a bone object with child objects disappears after exporting the game

复现方法:

导出游戏后骨骼对象消失后游戏崩溃bug.rar (658.1 KB)

1.导出游戏
2.打开.console.exe
3.按Z键生成骨骼对象
4.等待3秒
5.注意左侧控制台报告

bug描述:

1.骨骼对象的节点上面带有着一个对象(例png图片)

51234

2.预先放置在场景内的骨骼对象会正常消失(例gif)
3.在agm编辑器里面是正常的
4.导出游戏后如果其他对象生成这个骨骼对象
5.骨骼对象执行消失动作后就会报 ‘[26] <couldn’t map PC to fn name>’
6.然后游戏崩溃

///

EN:

Steps to reproduce:

  1. Export the game.

  2. Run .console.exe.

  3. Press Z to spawn the bone object.

  4. Wait 3 seconds.

  5. Observe the console output on the left.

Bug description:

  1. The bone object has another object attached to its node (e.g., a PNG image).

  2. Bone objects placed in the scene beforehand disappear normally (e.g., GIF).

  3. Everything works correctly in the AGM editor.

  4. After exporting the game, if another object spawns this bone object…

  5. …when the bone object plays its “disappear” animation, it throws the error: [26] <couldn't map PC to fn name>.

  6. The game then crashes.

///

再現手順:

  1. ゲームをエクスポートします。

  2. .console.exe を実行します。

  3. Z キーを押してボーンオブジェクトを生成します。

  4. 3 秒待ちます。

  5. 左側のコンソール出力を確認します。

バグの説明:

  1. ボーンオブジェクトのノードに別のオブジェクトがアタッチされています(例:PNG 画像)。

  2. 事前にシーンに配置されたボーンオブジェクトは正常に消えます(例:GIF)。

  3. AGM エディタ内では問題なく動作します。

  4. ゲームをエクスポート後、他のオブジェクトがこのボーンオブジェクトを生成した場合…

  5. … ボーンオブジェクトが「消える」アニメーションを再生すると、次のエラーが発生します:[26] <couldn't map PC to fn name>

  6. その後ゲームがクラッシュします。

1 Like

在1.1.14中可以确认此崩溃存在。