Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.32f1
2022.3.13f1
2023.1.20f1
2023.2.0b18
2023.3.0a13
Issue ID
UUM-55526
Regression
No
Crash on VFXRenderer_Render when both Visual Effect and Outline Components are added to a GameObject
Reproduction steps:
1. Open the attached "crash_IN-59284.zip" project
2. Open the "\Assets\Scenes\SampleScene.unity"
3. Enter the Play Mode
4. Observe the crash
Reproduced with: 2021.3.32f1, 2022.3.13f1, 2023.1.20f1, 2023.2.0b18, 2023.3.0a13
Reproduced on: Windows 10 (22H2)
Not reproduced on: No other environments tested
Note: Reproducible in Player
First few lines of stack trace:
0x00007FFBCC9412A6 (Unity) VFXRenderer_Render
0x00007FFBCB93D667 (Unity) BatchRenderer::RenderBatch
0x00007FFBCB933EE8 (Unity) BatchRenderer::Add
0x00007FFBCBB0048D (Unity) ScriptableRenderLoopDraw
0x00007FFBCBB0141E (Unity) ScriptableRenderLoopJob
Comments (1)
-
toddw
Feb 28, 2024 19:22
How hard is it for Unity to protect devs like me from spending days trying to isolate the cause of this crash since there is literally no useful information logged when this happens?
Is this hard?
public Material[] sharedMaterials
{
get { return ... }
set
{
if (this.GetType() != typeof(VFXRenderer))
{
... = value;
}
}
}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
The issue come from the user script changing the material list of the VisualEffect renderer.
This is not supported in VFX graph, and it can be avoided by checking the renderer type on the user script before modifying the materials list