Search Unity

Question Does this look like a VFX Graph-related error/crash? $WriteLineVertex@...

Discussion in 'Visual Effect Graph' started by dgoyette, Sep 7, 2020.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,196
    I've been getting crash reports that crash on the following statement:

    $WriteLineVertex@$0A@@@YAXAEAPEAEAEBUfloat4x4@math@@AEBU_float3@1@AEBVColorRGBA32@@AEBU_float1@1@MAEBU_float2@1@@Z

    I tend to assume it's VFX Graph related, since I use a Trails system in one of my graphs, and I can't think of any other features in the game that are related to "BuildParticleLineSegment" that I see in this stack trace.

    Here's the part of the stack trace showing the crash. Does this look like something I need to report to Unity to fix, realizing this is a very intermittent issue? Or is this possibly related to how I'm approaching things, and I just need to change my graph?

    Code (CSharp):
    1. Thread 9 (crashed)
    2. 0   ntdll                              0x00007ffab387cbc4 ZwWaitForMultipleObjects
    3. 1   KERNELBASE                         0x00007ffab15e7fb7 WaitForMultipleObjectsEx
    4. 2   KERNELBASE                         0x00007ffab15e7e9e WaitForMultipleObjects
    5. 3   UnityPlayer                        0x00007ffa40cdfc9d ?HandleCrash@ExternalCrashHandler@winutils@@AEAAXKKPEBDPEAU_CONTEXT@@PEAU_EXCEPTION_RECORD@@_N@Z
    6. 4   UnityPlayer                        0x00007ffa40cdfd42 ?HandleCrash@ExternalCrashHandler@winutils@@QEAA_NKKPEAU_EXCEPTION_POINTERS@@@Z
    7. 5   UnityPlayer                        0x00007ffa40cef988 ?ProcessInternalCrash@winutils@@YAHPEAU_EXCEPTION_POINTERS@@_N@Z
    8. 6   KERNELBASE                         0x00007ffab168f5ea UnhandledExceptionFilter
    9. 7   ntdll                              0x00007ffab3884ab2 RtlUserThreadStart$filt$0
    10. 8   ntdll                              0x00007ffab386c656 _C_specific_handler
    11. 9   ntdll                              0x00007ffab38811cf RtlpExecuteHandlerForException
    12. 10  ntdll                              0x00007ffab384a209 RtlDispatchException
    13. 11  ntdll                              0x00007ffab387fe3e KiUserExceptionDispatch
    14. 12  UnityPlayer                        0x00007ffa411ab1a1 ??$WriteLineVertex@$0A@@@YAXAEAPEAEAEBUfloat4x4@math@@AEBU_float3@1@AEBVColorRGBA32@@AEBU_float1@1@MAEBU_float2@1@@Z
    15. 13  UnityPlayer                        0x00007ffa41ed33d4 BuildParticleLineSegment<0>
    16. 14  UnityPlayer                        0x00007ffa41ed2f98 BuildParticleLine<0>
    17. 15  UnityPlayer                        0x00007ffa41f133c7 ?RenderJobCommon@ParticleSystemTrailGeometryJob@@CAXAEAV1@PEAXI@Z
    18. 16  UnityPlayer                        0x00007ffa41f12200 ?RenderJob@ParticleSystemTrailGeometryJob@@CAXPEAUSharedGeometryJobData@@I@Z
    19. 17  UnityPlayer                        0x00007ffa4132bd55 ?Exec@JobQueue@@AEAAHPEAUJobInfo@@_JH@Z
    20. 18  UnityPlayer                        0x00007ffa41331e9c ?Steal@JobQueue@@AEAAHPEAVJobGroup@@PEAUJobInfo@@_JH_N@Z
    21. 19  UnityPlayer                        0x00007ffa4132c407 ?ExecuteJobFromQueue@JobQueue@@AEAA_NXZ
    22. 20  UnityPlayer                        0x00007ffa4132dfbf ?ProcessJobs@JobQueue@@AEAAXPEAUThreadInfo@1@PEAX@Z
    23. 21  UnityPlayer                        0x00007ffa41332ddc ?WorkLoop@JobQueue@@CAPEAXPEAX@Z
    24. 22  UnityPlayer                        0x00007ffa4167c2ad ?RunThreadWrapper@Thread@@CAKPEAX@Z
    25. 23  KERNEL32                           0x00007ffab1d57bd4 BaseThreadInitThunk
    26. 24  ntdll                              0x00007ffab384ce51 RtlUserThreadStart
    27. 25  ntdll                              0x00007ffab384ce51 RtlUserThreadStart
     
  2. PaulDemeulenaere

    PaulDemeulenaere

    Unity Technologies

    Joined:
    Sep 29, 2016
    Posts:
    154
    Hello !

    Is there any trail module from Shuriken in your scene ? The callstack refers to the built-in Particles System.
    Most of the Visual Effect system functions are prefixed with "VFX".

    Even if it's a very intermittent issue, it is still really valuable for us that you report the issue. Even simply sending the crash report, we are gathering data which can help in bug resolution.
     
    richardkettlewell likes this.
  3. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,196
    Thanks for clarifying that this is Shuriken-related. That's helpful to know. And yes, I do have a few Shuriken particle systems that have Trails enabled. This is very intermittent, so I don't have any way to reproduce the issue locally. The crashes I've received came through Unity Cloud Diagnostics.

    Usually if I upload a bug report with a way to reproduce it, it just gets closed immediately by QA. But I'll upload a bug report and include the crash info that Cloud Diagnostics has.
     
  4. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,196
    I've submitted a bug report on this, ID #1275952, just in case you wanted to know. I expect to hear back from QA shortly telling me it has been closed. :)
     
  5. pixilestudios

    pixilestudios

    Joined:
    Apr 5, 2014
    Posts:
    10
    I am also seeing this native crash with a few users... using IL2CPP and Unity 2018.4.27, Windows 64bit build.
    Code (CSharp):
    1.  
    2. Thread 7 (crashed)
    3. 0   ntdll                              0x00007ffdfe63cbc4 ZwWaitForMultipleObjects
    4. 1   KERNELBASE                         0x00007ffdfbec2ae7 WaitForMultipleObjectsEx
    5. 2   KERNELBASE                         0x00007ffdfbec29ce WaitForMultipleObjects
    6. 3   UnityPlayer                        0x00007ffd50dc4362 ?HandleCrash@CrashHandlerInternal@winutils@@QEAAXKKPEBDPEAU_CONTEXT@@PEAU_EXCEPTION_RECORD@@_N@Z
    7. 4   UnityPlayer                        0x00007ffd50dc43fe ?HandleCrash@ExternalCrashHandler@winutils@@YAXKKPEAU_EXCEPTION_POINTERS@@@Z
    8. 5   UnityPlayer                        0x00007ffd50dd36d8 ?ProcessInternalCrash@winutils@@YAHPEAU_EXCEPTION_POINTERS@@_N@Z
    9. 6   KERNELBASE                         0x00007ffdfbf708aa UnhandledExceptionFilter
    10. 7   ntdll                              0x00007ffdfe644ab2 RtlUserThreadStart$filt$0
    11. 8   ntdll                              0x00007ffdfe62c656 _C_specific_handler
    12. 9   ntdll                              0x00007ffdfe6411cf RtlpExecuteHandlerForException
    13. 10  ntdll                              0x00007ffdfe60a209 RtlDispatchException
    14. 11  ntdll                              0x00007ffdfe63fe3e KiUserExceptionDispatch
    15. 12  UnityPlayer                        0x00007ffd50f1d846 ?StoreLineData@@YAXPEAULineBuilderData@@AEBU_float1@math@@AEBUfloat4x4@3@PEBUfloat3_storage@3@M@Z
    16. 13  UnityPlayer                        0x00007ffd512e2158 BuildParticleLine<0>
    17. 14  UnityPlayer                        0x00007ffd5131dc8c ?RenderJobCommon@ParticleSystemTrailGeometryJob@@CAXAEAV1@PEAXI@Z
    18. 15  UnityPlayer                        0x00007ffd5131cb90 ?RenderJob@ParticleSystemTrailGeometryJob@@CAXPEAUSharedGeometryJobData@@I@Z
    19. 16  UnityPlayer                        0x00007ffd50fd1a49 ?Exec@JobQueue@@AEAAHPEAUJobInfo@@_JH@Z
    20. 17  UnityPlayer                        0x00007ffd50fd2adc ?Steal@JobQueue@@AEAAHPEAVJobGroup@@PEAUJobInfo@@_JH_N@Z
    21. 18  UnityPlayer                        0x00007ffd50fd1b67 ?ExecuteJobFromQueue@JobQueue@@AEAA_NXZ
    22. 19  UnityPlayer                        0x00007ffd50fd1dcb ?ProcessJobs@JobQueue@@AEAAXPEAX@Z
    23. 20  UnityPlayer                        0x00007ffd50fd2feb ?WorkLoop@JobQueue@@CAPEAXPEAX@Z
    24. 21  UnityPlayer                        0x00007ffd510750c1 ?RunThreadWrapper@Thread@@CAKPEAX@Z
    25. 22  KERNEL32                           0x00007ffdfde97bd4 BaseThreadInitThunk
    26. 23  ntdll                              0x00007ffdfe60ce51 RtlUserThreadStart
    27. 24  ntdll                              0x00007ffdfe60ce51 RtlUserThreadStart
    28.  
    We definitely use a lot of particle systems and some have trails...
     
  6. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    326
    This crash is not related to Visual Effect Graph but to the built-in particle system. you should ask in the dedicated session of the forum.

    EDIT: I forwarded to particle system team
     
    Last edited: Oct 1, 2020