Search Issue Tracker

Active

Under Consideration for 6000.6.X

Votes

0

Found in

6000.5.0a8

6000.6.0a1

Issue ID

UUM-136309

Regression

Yes

Crash on ClearPerMaterialCustomProperties when undoing the addition of Visual Effects Component to the GameObject for a few times

Visual Effects

-

How to reproduce:
1. Create a new Unity project and install the VFX package
2. In the Project window, right-click -> Create -> Visual Effects -> Visual Effect Graph -> Any VFX Graph 
3. In the Hierarchy, create an Empty GameObject
4. Drag the created VGX Graph from the Assets to the created GameObject Inspector to add the Component
5. Press "Ctrl + Z"/"Command + Z" to undo the action
6. Repeat the 4-5 steps for a few times and observe the results

Expected results: The Editor doesn't crash
Actual results: Editor crashes

Reproducible with: 6000.5.0a5, 6000.5.0a8
Not reproducible with: 6000.0.69f1, 6000.3.10f1, 6000.4.0b11, 6000.5.0a4

Reproducible on: Ubuntu 24, macOS Tahoe 26
Not reproducible on: No other environment tested

Notes:
- Sometimes the crash happens after one "undo" action but it consistently crashes after repeating the steps 4-5 at least 3-5 times
- After the crash, the Editor can't be closed even via Activity Monitor despite the fact that it is not displayed as opened

First lines of stacktrace:
#0  0x00000103186560 in Renderer::ClearPerMaterialCustomProperties(int)
#1  0x00000102723418 in VisualEffect::DestroyBatchInstance()
#2  0x00000102722890 in VisualEffect::DestroyData(bool, bool)
#3  0x00000102f1d084 in delete_object_internal_step1(Object*)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.