godotengine / godotengine/godot

MultiMesh3D throws errors and can corrupt scenes, Condition "instance_count > 0" is true.

Open
#87,166 3 comments 5 reactions 0 assignees View on GitHub
bug topic:3d topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

4.2.1 bot standard and mono

### System information

Windows 11 - Vulkan - Nvidia RTX 4070 - intel i5 13600KF

### Issue description

For some reason MultiMesh3D now throws an error like this:

![image](https://github.com/godotengine/godot/assets/33526847/650e5dc4-5ed4-4b87-8a80-96f1e5a3b582)
(screenshot is from mono version but same error happens in the standard godot version)

and it can also lead to scene corruption - I don't know the conditions for that, sometimes my scenes just get corrupted when I add the multimesh, I have no idea why, it's not any particular mesh itself I tried built-in ones too.

### Steps to reproduce

With MRP:
Open the project if you don't see the error on the first try (no .godot folder yet so it doesn't show) then close the project and open it again, you should see it now or after opening the scene with the MultiMesh3D (called planet.tscn) - you might need to have both scenes open when you close the project so they reopen.
(sometimes under no idea what circumstances you can get a corrupted scene error and the scene will no longer open though I have no idea why or how to reproduce this)

Without MRP:
1. Make a scene with MultiMesh3D and populate a surface with some MeshInstance3D (for testing I used the Cylinder mesh) and save it as a scene.
2. Instantiate that scene into your main scene.
3. Run your project.
4. Close the project and open it again
5. You should see the error now or after opening the scene with the MultiMesh3D.

### Minimal reproduction project (MRP)

[MultiMeshMRP.zip](https://github.com/godotengine/godot/files/13930789/MultiMeshMRP.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached MultiMeshMRP.zip and follow the listed steps for MultiMesh3D, including closing and reopening the project and opening planet.tscn. Compare the error and any scene corruption across the standard and mono versions; done means the reported condition no longer appears and the scene remains openable after restarting.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, godot
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.