Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug VFX consistently crashing Editor in Unity 2021.3.23f1

Discussion in 'Visual Effect Graph' started by EpicFlan, Mar 30, 2024.

  1. EpicFlan


    Jan 31, 2020
    I have some different VFX in my game, and I seem to be getting crashes a lot when using the effects. I can't seem to really narrow down where the issue is though, because it's not one single VFX which is crashing. The ones which crash are all built in different ways. The only consistent thing seems to be the effects which only use a single particle don't crash. But if I spawn multiple particles, even a small amount like 32, I get crashes around 20% of the time I play the effect in-game.

    I don't really understand what the crash log is telling me either:

    Code (CSharp):
    1. =================================================================
    2.     Native Crash Reporting
    3. =================================================================
    4. Got a UNKNOWN while executing native code. This usually indicates
    5. a fatal error in the mono runtime or one of the native libraries
    6. used by your application.
    7. =================================================================
    9. =================================================================
    10.     Managed Stacktrace:
    11. =================================================================
    12.       at <unknown> <0xffffffff>
    13.       at UnityEditor.Handles:Internal_DrawCameraWithGrid <0x000a7>
    14.       at UnityEditor.Handles:DrawCameraImpl <0x00532>
    15.       at UnityEditor.Handles:DrawCameraStep1 <0x000b2>
    16.       at UnityEditor.SceneView:DoDrawCamera <0x00b92>
    17.       at UnityEditor.SceneView:DoOnGUI <0x00cfa>
    18.       at UnityEditor.SceneView:OnSceneGUI <0x0001a>
    19.       at UnityEngine.UIElements.IMGUIContainer:DoOnGUI <0x00926>
    20.       at UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent <0x0040a>
    21.       at UnityEngine.UIElements.IMGUIContainer:DoIMGUIRepaint <0x00532>
    22.       at UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh <0x00523>
    23.       at UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain <0x01692>
    24.       at UnityEngine.UIElements.UIR.RenderChain:Render <0x006e2>
    25.       at UnityEngine.UIElements.UIRRepaintUpdater:Update <0x00252>
    26.       at UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase <0x000d5>
    27.       at UnityEngine.UIElements.Panel:UpdateForRepaint <0x000aa>
    28.       at UnityEngine.UIElements.Panel:Repaint <0x00272>
    29.       at UnityEngine.UIElements.UIElementsUtility:DoDispatch <0x0010e>
    30.       at UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent <0x000f2>
    31.       at UnityEngine.UIElements.UIEventRegistration:ProcessEvent <0x0008e>
    32.       at <>c:<.cctor>b__1_2 <0x0002a>
    33.       at UnityEngine.GUIUtility:ProcessEvent <0x0005c>
    34.       at <Module>:runtime_invoke_void_int_intptr_intptr& <0x00095>
    35. =================================================================
    36. Received signal SIGSEGV
    37. Obtained 2 stack frames
    38. RtlLookupFunctionEntry returned NULL function. Aborting stack walk.
    39. <Missing stacktrace information>
    Unity: 2021.3.23f1
    VFX Graph: 12.1.11

    Does anyone have any suggestions as to why this is happening?