# 【1.2.0BUG】菜单的ObjectMountTarget节点生成对象后关闭菜单闪退bug// Crash bug when closing menu after spawning object via ObjectMountTarget node//ObjectMountTarget ノードでオブジェクト生成後、メニューを閉じるとクラッシュするバグ

**URL:** <https://guild.rpgmakerofficial.com/t/topic/1155>\
**Category:** バグ報告\
**Tags:** 日本語, english, 中文\
**Created:** [2026 年 2 月 9 日午後 1:53 UTC](https://guild.rpgmakerofficial.com/t/topic/1155 "2026-02-09T13:53:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigcake](https://avatars.discourse-cdn.com/v4/letter/b/ebca7d/32.png) [@bigcake](https://guild.rpgmakerofficial.com/u/bigcake)\
**Post date:** [2026 年 2 月 9 日午後 1:53 UTC](https://guild.rpgmakerofficial.com/t/topic/1155/1 "2026-02-09T13:53:43Z")

</div>

再現方法：

[1.2.0メニュー生成オブジェクト後閉じてクラッシュするバグ.rar|添付ファイル](https://guild.rpgmakerofficial.com/uploads/short-url/97cqPnqwlcKWV0slHuXf0CI9JqO.rar) (726.7 KB)

1. テストを起動する
2. Zキーを押す
3. メニューが表示された後、オブジェクトが生成されます。再度Zキーでメニューを閉じ、さらにZキーを押してメニューを開くとクラッシュします

問題説明：  
今回、メニュー内にオブジェクトがある場合、開閉は正常に動作します。しかし、 **ObjectMountTarget** ノードを含む状態でオブジェクトを生成した後、メニューを閉じると下部のコンソールにエラーが出力されます。再度メニューを開くとクラッシュします。

⚠：以前と同様、メニューを閉じる前に **ObjectMountTarget** ノードで生成したオブジェクトを消去してから閉じるとクラッシュしません。しかし、メニュー上にオブジェクトが残ったまま閉じると、下部にエラーが出力されます。

![1770644572250](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/2X/8/882ac5acb82acd39b41d6c7287d7ce1af974fdff.gif)

![エラー情報](https://us1.discourse-cdn.com/flex002/uploads/rpgmaker_community/original/2X/3/3ea5e4db4c2a63eaf00f0a20a541b35f528a1d13.png)

///

EN:

### Reproduction steps:

1. Launch the test scene.

2. Press the Z key.

3. After the menu appears, it will spawn an object. Press Z again to close the menu; pressing Z once more to reopen the menu will cause a crash.

### Issue description:

When the menu contains an object, opening and closing normally works fine.

However, when using the **ObjectMountTarget** node to spawn an object, closing the menu afterward will output an error in the console.

Reopening the menu will result in an immediate crash.

⚠ Warning:

As before, if you **despawn the object created by the ObjectMountTarget node before closing the menu** , the crash does not occur.

But if the menu still has an attached object when closed, console errors will still appear.

///

### 再現手順:

1. テストを起動する

2. Z キーを押す

3. メニューが表示されるとオブジェクトが自動生成されます。再度 Z キーでメニューを閉じた後、もう一度 Z キーでメニューを開くとクラッシュします。

### 不具合の説明:

通常、メニュー内にオブジェクトが存在する状態での開閉は正常に動作します。

しかし、 **ObjectMountTarget ノード** を使用してオブジェクトを生成した状態でメニューを閉じると、下部コンソールにエラーが出力されます。

その後、再度メニューを開くとクラッシュします。

⚠ 注意:

以前と同様、 **メニューを閉じる前に ObjectMountTarget ノードで生成したオブジェクトを消去してから閉じると、クラッシュは発生しません** 。

ただし、オブジェクトが付いた状態のままメニューを閉じると、コンソールエラーは依然として出力されます。

---

<div class="post-metadata">

**Author:** ![Justus](https://sea2.discourse-cdn.com/flex002/user_avatar/guild.rpgmakerofficial.com/justus/32/55_2.png) [@Justus](https://guild.rpgmakerofficial.com/u/Justus)\
**Post date:** [2026 年 2 月 10 日午前 5:00 UTC](https://guild.rpgmakerofficial.com/t/topic/1155/2 "2026-02-10T05:00:18Z")

</div>

実験の結果、このクラッシュは1.2.0で再現可能であることが確認されました。
