Open XDelta opened 2 months ago
By chance are you aware if "Edit Mode" and specifically "Developer Mode" in the DevTool were ever enabled in the affected world, @XDelta?
That is the only possible reproduction step I can think of off of the top of my head that could lead to the generation of so many gizmos.
Having reproduction steps would help tremendously here to better understand this issue.
Double-checked, and if DevMode has been enabled, there will be a DevMode
slot in the root with a DevModeController
on it- so that would be a good tell for that, if it's related.
For a quick sanity check- could you also check the root of the world after inspecting any slot- rather than going through the rigamarole of attaching a light component, etc?
I've noticed if I manually delete all of the Gizmos in a world while DevMode is still enabled (DevModeEnabled
is true on the DevModeController
) even just selecting a slot / creating gizmos will cause all of the other gizmos to be restored as-expected.
DevMode was not active at the time. Selection of the object creating many gizmos was only occurring on objects that had the Light
component on it and were trying to make the a Light gizmo for some reason, in the video and when poking around each gizmo created would make 3 gizmos, the normal one, a MeshRenderer one and a LightGizmo one, all separated. Selecting any other object in the world made a normal gizmo as expected.
When selecting the box, these 3 gizmo slots are made. Noticed that selecting in the world won't trigger the gizmos to be repeatedly created, just the 3. Selecting the slot from an inspector creates a bunch of them. Normal gizmo MeshRendererGizmo LightGizmo (Starts disabled and can't be re-enabled.)
Describe the bug?
Assisting a user with an odd occurrence posted about in discord https://discord.com/channels/1040316820650991766/1277922399916130377 where selecting an object with a
Light
component was creating many broken gizmos rapidly. Deselecting the object would delete some of the gizmos but several remnants remained of partial gizmos. Digging into it some showed an error being logged repeatedlySystem.Exception: An incompatible component is stored under the key LightGizmo_Icosphere
To Reproduce
Not super sure how to intentionally reproduce the world state, requested a copy of the world with this occurring from memtx,
I'll add it on this post when received.In an affected world: Create a new slot, in the video a box was used. Attach a light Unselect the slot Reselect the slot Observe multiple additional Gizmos being created
Reproduction world:
resrec:///U-1To7mTuhbpA/R-f45f1465-f828-4429-82d9-c4419ec46fae
Expected behavior
Gizmos to be created normally and possibly corrupted keys to be repaired/replaced
Screenshots
https://github.com/user-attachments/assets/c175dedb-8a87-42b3-858d-c4654ae01ad5
Resonite Version Number
Beta 2024.8.5.1341
What Platforms does this occur on?
Windows
Log Files
Additional Context
Similar 'world corruption' state as https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/1329 and similar exception to https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/1073
Reporters
_deltawolf, memtx