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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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