Search Unity

2019.3 Assertion failed on expression: 'task.rasterData.vertexBuffer == NULL'

Discussion in 'Editor & General Support' started by Aksirpg, Jan 29, 2020.

  1. MKark

    MKark

    Joined:
    Jun 26, 2013
    Posts:
    7
    Happens in 2018.4.19f1 with ParticleSystems using procedural mesh as emitter shape.
     
  2. itwasnever

    itwasnever

    Joined:
    Mar 29, 2020
    Posts:
    2
    Try resetting the line rendered to its default material, the line rendered requires a specific material which I forgot what it was.
     
  3. itwasnever

    itwasnever

    Joined:
    Mar 29, 2020
    Posts:
    2
  4. It_Happens

    It_Happens

    Joined:
    Mar 26, 2020
    Posts:
    1
    it happens to me as well when I use Lines. dunno what causes it and after repeatedly starting the game for a few times it just doesn't show up any more
     
  5. MrPaparoz

    MrPaparoz

    Joined:
    Apr 14, 2018
    Posts:
    157
    2019.3.6-7-8 here.
    Error appeared after starting to use particle system. Nothing special on particleSystem, Material is URP/Particles/Unlit and a texture on it.
     
  6. Firlefanz73

    Firlefanz73

    Joined:
    Apr 2, 2015
    Posts:
    1,316
    same 2019.3.8 with my trail renderer.
     
  7. icanfly342

    icanfly342

    Joined:
    Jan 20, 2017
    Posts:
    1
    Seems to be ParticleSystem with Shadows and LineRenderer/TrailRenderer in the same scene
    I can reproduce this bug in all the 2019.3.x versions that I have:
    Create New Project
    - Add a ParticleSystem, goto Renderer-Tab and turn on "Cast Shadows"
    - Add a LineRenderer to the scene
    - Both Particle System and LineRenderer must be visible in either Game or Scene window!
    - Press Play, wait a few seconds...
     
    MadMojo likes this.
  8. skaughtx0r

    skaughtx0r

    Joined:
    Mar 9, 2014
    Posts:
    74
    I just updated from 2018.4.10f1 to 2018.4.20f1 and started getting these errors.

    I have Mesh particle emitters and Line Renderers, but nothing is receiving or casting shadows.
     
  9. djgriff

    djgriff

    Joined:
    May 29, 2014
    Posts:
    279
    Yep started getting this today on 2019.3.7.f1
     
  10. nsxdavid

    nsxdavid

    Joined:
    Apr 6, 2009
    Posts:
    476
    Assert is still present in 2019.3.9f1
     
  11. suleymanbucuk

    suleymanbucuk

    Joined:
    Mar 13, 2019
    Posts:
    11
    2019.3.3 having this problem when particle system is activated during gameplay. And trail renderer is active when this error is thrown.
     
  12. braur

    braur

    Joined:
    Jan 7, 2018
    Posts:
    7
    Unity 2018.4.20 and the same thing. Could be line renderers, could be some particle systems.
     
  13. skaughtx0r

    skaughtx0r

    Joined:
    Mar 9, 2014
    Posts:
    74
    Ah, yes, this seems to be happening with Particle Systems on my Prefab GameObjects that I instantiate at runtime. I have a main menu scene that has the same particle emitters already instantiated and it doesn't error.
     
  14. Bip901

    Bip901

    Joined:
    May 18, 2017
    Posts:
    71
  15. skaughtx0r

    skaughtx0r

    Joined:
    Mar 9, 2014
    Posts:
    74
    I upvoted that, I also mentioned the issue in a Crash report I sent to Unity...
     
  16. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Last edited: Apr 17, 2020
  17. hatomune

    hatomune

    Joined:
    Aug 7, 2018
    Posts:
    1
    Same probrem 2018.4.21f1
     
  18. malkere

    malkere

    Joined:
    Dec 6, 2013
    Posts:
    1,212
    Updated from 2018.4.16 to 2018.4.21, now this spams repeatedly. Runtime instantiated torches using particle systems with billboard renderers are causing it. Turning them on/off starts/stops the errors.
     
    Last edited: Apr 20, 2020
  19. JanusAnderson

    JanusAnderson

    Joined:
    Apr 30, 2013
    Posts:
    27
    Still happening in 2019.3.10f1. I think it's crashing my graphics driver occasionally too.
     
  20. chriscode

    chriscode

    Joined:
    Mar 2, 2015
    Posts:
    49
    For me, seems like it happens especially if I pause the game.
     
  21. Cookieg82

    Cookieg82

    Joined:
    Mar 28, 2017
    Posts:
    73
    Hate to add to the mix, I am also getting this 2019.3.1f1
     
  22. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Hey all. I bring good news.

    This bug is actually a duplicate of one we fixed a couple of weeks ago.
    This means that not only is it fixed already in our latest code, but also that it is already in the process of being backported to our live releases.

    The fix is currently in:
    2020.2.0a8
    2020.1.0b8

    The fix is planned for, but not yet in:
    2019.3
    2018.4

    So.. still not in a build most of you care about, but, a lot closer than if this wasn't a duplicate of an already fixed bug.
    I've also escalated the backport requests, to make sure they happen ASAP.
     
  23. funkyCoty

    funkyCoty

    Joined:
    May 22, 2018
    Posts:
    727
    Hey, can you verify that this is fixed in my repro scene as well? I think the difference is I'm using a custom mesh in the particle, so the stack trace ends up slightly different than what is supposedly about to be fixed. Case #1240718 - need to add a trail or line as well, added while in play mode and forgot to re-add outside of play mode before submitting bug. The stack trace here is the same as the one that crashes our game (releasing very soon!) but I couldn't manage to get the repro to crash as reliably.

    edit: also! It seems that in our game, this error does not crash our game when Dynamic Batching is disabled! This is unacceptable to disable in our game for performance reasons, of course, but worth noting to help you guys track it down.
     
    richardkettlewell likes this.
  24. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Hey, I asked QA to check if it's the same issue, and it looks like they verified that it is.
    The backports for 2019.3 and 2018.4 are in progress at the moment.

    To reiterate to people reading this, it's definitely fixed in:
    2020.2.0a8
    2020.1.0b8


    And the fix is not yet in:
    2019.3
    2018.4


    I've checked the release schedules, and for the forthcoming fixes, we are hopefully looking at:
    2019.3.13f1 (out approx 6th May)
    2018.4.23f1 (out approx 20th May)

    But to be super clear - these versions/dates are not yet guaranteed. It's just my best guess.
     
  25. SaeedPrez

    SaeedPrez

    Joined:
    May 10, 2017
    Posts:
    6
    Hi, where can I get 2020.1.0b8? Unity Hub shows latest 2020.1.x version as 2020.1.0b6 and I'm using it already and still getting the errors with line renderer. I didn't want to use alpha but I will try it to see if it fixes this issue.

    upload_2020-4-26_2-43-37.png
     
  26. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    b8 has not been released yet, they're at b6 at the moment. It seems they release a new beta every week (link).

    Assuming they continue the weekly release, knowing b6 was released April 24th (Friday) and considering their announcement to release on Wednesday rather than Friday (link), we should expect to see b8 either on May 6th or May 13th.
     
    richardkettlewell likes this.
  27. SaeedPrez

    SaeedPrez

    Joined:
    May 10, 2017
    Posts:
    6
    The problem seems to have been solved in Unity 2020.2.0a8.
     
    richardkettlewell likes this.
  28. MaXi_JP

    MaXi_JP

    Joined:
    Nov 27, 2013
    Posts:
    5
    Still on 2019.3.11f1
     
  29. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    richardkettlewell likes this.
  30. IlisanVlad

    IlisanVlad

    Joined:
    Dec 3, 2017
    Posts:
    30
    2019.3.11f1 happening when Particle System and Line Renderer are in the same scene.
     
  31. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Hey all,

    It seems the fix has missed the next 2019.3 patch, which I can only apologise for. Our slow processes take too long :(

    Here is the latest info I have:

    Fixed in:
    2020.2.0a8
    2020.1.0b8


    And the fix is not yet in:
    2019.3
    2018.4


    **Predicted** fix versions:
    2019.3.14f1 (out approx 13th May)
    2018.4.23f1 (out approx 20th May)

    To be super clear - these versions/dates are not yet guaranteed. It's just my best guess.

    Also, if possible, please try to refrain from replying to this thread with "me too in version X", "still happening on version Y", and "happens with particles in version Z" unless it's a version where I'm claiming it's already fixed in. Otherwise, all that happens is you make it much harder for everyone to see my post here with the info about where the fix will land, because it gets lost in the noise. Many thanks for your understanding :)
     
    Peter77 and glenneroo like this.
  32. connorgbrush

    connorgbrush

    Joined:
    Apr 5, 2020
    Posts:
    2
    same issue in 2019.3.11f1.
    Added a particle system that activates on my shots and now my console is spammed with this notification when I shoot enemies.
    Does this effect my final build? Does the error actually mean anything or is it just a weird error that shows an error message?
     
  33. Alfrey_Cruz8133

    Alfrey_Cruz8133

    Joined:
    Jul 1, 2017
    Posts:
    1
    I tried to build my small game that also shows this error.. builds did succeed and I didnt find any bugs on it.. maybe there are for other people but mine didnt have any
     
  34. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Hey all,

    I now have all the confirmed versions for the fix:

    Fixed in:
    2020.2.0a8 (already available)
    2020.1.0b8 (already available)


    Fix is going to be in:
    2019.3.14f1 (available approx 13th May)
    2018.4.23f1 (available approx 20th May)


    As before, try to avoid replying unless you have something valuable to say, so that all users can see this message easily without losing it in the noise of "Still happens for me" and "Me too".

    At this point, no-one wants to read about you telling us it's happening to you in some version if it's before the versions I'm saying it's fixed in ;)

    Thanks again for your patience.
     
    Last edited: May 6, 2020
  35. malkere

    malkere

    Joined:
    Dec 6, 2013
    Posts:
    1,212
    Can I ask the unkind question as to why things this debilitating make it into 2018.4 LTS versions?
    I had recently gotten over my extreme fear of upgrading Unity, and now it is back in full force.
     
  36. Lance_JZ

    Lance_JZ

    Joined:
    Jun 10, 2015
    Posts:
    11
    Worked for me too.
     
  37. Galder_6

    Galder_6

    Joined:
    Mar 18, 2020
    Posts:
    4
    same here: Assertion failed on expression: 'task.rasterData.vertexBuffer == NULL'
     
  38. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Hey, another update for visibility. The 2019.3.14 patch has been delayed by a few days.

    Here are the latest predicted dates that I have:

    Fixed in:
    2020.2.0a8 (already available)
    2020.1.0b8 (already available)


    Fix is going to be in:
    2019.3.14f1 (available approx 19th May)
    2018.4.23f1 (available approx 20th May)


    Please avoid replying unless you have something valuable to say, so that all users can see this message easily without losing it in the noise of "Same here", "Still happens for me" and "Me too". (based on recent replies, i kinda assume this request is too hard to follow for some, but hey, still gotta try) :)
     
    TheQuad, Waladuz, akareactor and 3 others like this.
  39. Lynxed

    Lynxed

    Joined:
    Dec 9, 2012
    Posts:
    121
    I don't know if it's "valuable" or not, but If this error is the reason why unity randomly crashes when i try to render particles via commandBuffer, this error cost me and 3 other people with families their jobs.
     
  40. kayke

    kayke

    Joined:
    Oct 21, 2015
    Posts:
    42
    Hoping for 2019.3.14 soon!
    We are getting this error with the editor and game crashes some what frequently over the last 3~4 weeks.
    We have a bug submitted (Case:1247954)

    Is the crash part and flickering line renders of this issue going to be resolved in 3.14 or are these separate issues?

    We get these errors but not 100% sure they are linked to the crashes. For any one else experiencing crashes do you see these in your crashes?

    [Editor]
    CreateDirect3D11SurfaceFromDXGISurface
    ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF62620A8EE)
    0x00007FF62620A8EE (Unity) (function-name not available)

    [Standalone Windows]

    Stack Trace of Crashed Thread 12484:
    0x00007FFDBD60A924 (d3d11) D3D11CoreCreateDevice
    0x00007FFDBD6093D2 (d3d11) D3D11CoreCreateDevice
    0x00007FFDBD60C1F3 (d3d11) D3D11CoreCreateDevice
    0x00007FFDBD60CBCF (d3d11) D3D11CoreCreateDevice
    0x00007FFDBD60D3C0 (d3d11) D3D11CoreCreateDevice
    0x00007FFDBD6026AA (d3d11) D3D11CoreCreateDevice
    0x00007FFDBD625FD2 (d3d11) D3D11CoreGetLayeredDeviceSize
    0x00007FFDBD625F92 (d3d11) D3D11CoreGetLayeredDeviceSize
    0x00007FFD5CED5B09 (UnityPlayer) CreateDefaultSRV
    0x00007FFD5CED8D77 (UnityPlayer) TexturesD3D11Base::RegisterNativeTexture
    0x00007FFD5CECF753 (UnityPlayer) GfxDeviceD3D11Base::RegisterNativeTexture
    0x00007FFD5CF94BD3 (UnityPlayer) GfxDeviceWorker::RunCommand
    0x00007FFD5CF9C6AD (UnityPlayer) GfxDeviceWorker::RunExt
    0x00007FFD5CF9C7A5 (UnityPlayer) GfxDeviceWorker::RunGfxDeviceWorker
    0x00007FFD5D932C5D (UnityPlayer) Thread::RunThreadWrapper
    0x00007FFDC41F7974 (KERNEL32) BaseThreadInitThunk
    0x00007FFDC433A271 (ntdll) RtlUserThreadStart
     
  41. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Can you please make a new thread in the relevant forum? This doesn't seem to be related to the thread in any way.
     
    richardkettlewell likes this.
  42. kayke

    kayke

    Joined:
    Oct 21, 2015
    Posts:
    42
    Yeah I can make a new thread with my specific details.

    Quite a few people, in this thread have mentioned related crashes with this issue. We see this error in the logs before a majority of our recent crashes.

    I am just trying to clarify what is "fixed" ?

    From an end user perspective, does that just mean the error won't appear in the console or are there other known issues caused by this?

    For future readers it's worth to clarify what should be expected from this fix and what issues are not related.
     
  43. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Hey, I've had a look at your bug report, and, despite it seeming unrelated based on the error message you posted, it actually does look like the same issue that will be resolved in 2019.3.14.
     
  44. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    2019.3.14 is out at last: https://unity3d.com/unity/whats-new/2019.3.14

    For reasons unbeknown to me, the bugfix is listed as a known issue instead of a fixed issue (insert facepalm emoji).
    This is a mistake - the build contains the fix and I will get the known issues entry fixed :)
     
    glenneroo likes this.
  45. rmon222

    rmon222

    Joined:
    Oct 24, 2018
    Posts:
    77
    Just for closure, I encountered a similar crash w/ particles using 2019.3.9f1. This is what customer QA said:
    "Thank you for reporting this issue. After a further search, I found this issue internally fixed for Legacy XR in 2019.3.15f1 which should be released sometime in the future (current version is 2019.3.14f1). Also, this issue is fixed in XR SDK which you can enable in Project Settings."
     
  46. kayke

    kayke

    Joined:
    Oct 21, 2015
    Posts:
    42
    We downloaded Unity 2019.3.14f1 and are still getting our crash and the same assertion error. Sent the updated logs and dmp to case 1247954.

    Is anyone seeing the issue resolved on 14?

    Assertion failed on expression: 'task.rasterData.indexBuffer == NULL'
    (Filename: C:\buildslave\unity\build\Runtime/GfxDevice/GeometryJob.cpp Line: 199)

    Crash!!!
    SymInit: Symbol-SearchPath: 'C:/Program Files/Unity/Hub/Editor/2019.3.14f1/Editor/Data/Mono;.;C:\Users\rich\Documents\GitBoxVR;C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor;C:\WINDOWS;C:\WINDOWS\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 534, UserName: 'rich'
    OS-Version: 10.0.0
    C:\Program Files\Unity\Hub\Editor\2019.3.14f1\Editor\Unity.exe:Unity.exe (00007FF61FA80000), size: 136282112 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2019.3.14.13067
    Assertion failed on expression: 'task.rasterData.vertexBuffer == NULL'
    UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal_Injected(RenderTexture, Int32, Vector2&, Boolean, Boolean)
    UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal(RenderTexture, Int32, Vector2, Boolean, Boolean)
    UnityEditor.PlayModeView:RenderView(Vector2, Boolean)
    UnityEditor.GameView:OnGUI()
    System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
    System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
    System.Reflection.MethodBase:Invoke(Object, Object[])
    UnityEditor.HostView:Invoke(String, Object)
    UnityEditor.HostView:Invoke(String)
    UnityEditor.HostView:InvokeOnGUI(Rect, Rect)
    UnityEditor.DockArea:DrawView(Rect, Rect)
    UnityEditor.DockArea:OldOnGUI()
    UnityEngine.UIElements.IMGUIContainer:DoOnGUI(Event, Matrix4x4, Rect, Boolean, Rect, Action, Boolean)
    UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent(Event, Matrix4x4, Rect, Action, Boolean)
    UnityEngine.UIElements.IMGUIContainer:DoIMGUIRepaint()
    UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh(DrawParams, Boolean, Single, Exception&)
    UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain(RenderChainCommand, Rect, Matrix4x4, PanelClearFlags, Texture, Texture, Texture, Single, NativeArray`1, NativeArray`1, Exception&)
    UnityEngine.UIElements.UIR.UIRenderDevice:DrawChain(RenderChainCommand, Rect, Matrix4x4, PanelClearFlags, Texture, Texture, Texture, Single, NativeArray`1, NativeArray`1, Exception&)
    UnityEngine.UIElements.UIR.RenderChain:Render(Rect, Matrix4x4, PanelClearFlags)
    UnityEngine.UIElements.UIRRepaintUpdater:DrawChain(Rect, Matrix4x4)
    UnityEngine.UIElements.UIRRepaintUpdater:Update()
    UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase(VisualTreeUpdatePhase)
    UnityEngine.UIElements.Panel:UpdateForRepaint()
    UnityEngine.UIElements.Panel:Repaint(Event)
    UnityEngine.UIElements.UIElementsUtility:DoDispatch(BaseVisualElementPanel)
    UnityEngine.UIElements.UIElementsUtility:processEvent(Int32, IntPtr)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  47. Unityraptor81

    Unityraptor81

    Joined:
    Nov 28, 2016
    Posts:
    29
    Hello,

    Maybe the reason it was listed as Known Issue because it's not corrected. we are still having the same issue on 2019.3.14...
    This is a real handicap for indep VR dev, causing games to crash randomly.

    Is it possible to reopen the issue: https://issuetracker.unity3d.com/is...23.1884356547.1589916837-307983131.1586452505
     
  48. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Hey all. All the patches are now live with the fix:

    2020.2.0a8
    2020.1.0b8

    2019.3.14f1
    2018.4.23f1


    So far I've had 2 reports (@Unityraptor81, @kayke) that it is not fixed. I am as certain as I can be that https://issuetracker.unity3d.com/is...uals-null-errors-when-using-a-particle-system is fixed, and we won't reopen it unless the problem reproduces with the example project attached to that bug.

    Both reports of it still being broken are in VR projects. This leads me to believe that there is a related issue, perhaps specific to VR, causing this same error message to pop. I appreciate having waited so long for a fix and then to find out it doesn't fix your use case is frustrating, (I really want to put this issue fully to rest, too). However, we are going to need an example of the issue that still exists, to be able to move forwards with this.

    If you already reported a bug that you believe isn't fixed in the above versions, please reopen it by sending a message to QA from your bug email conversation. Otherwise, please submit a new bug report, and mention me/this thread in the report.

    Reply here with the case number and I'll make sure it is my priority.
     
    Cookieg82 and glenneroo like this.
  49. Unityraptor81

    Unityraptor81

    Joined:
    Nov 28, 2016
    Posts:
    29
    For sure it's frustrating because we (VR devs) already had the same error you followed 1 year ago. It's back and blocking releases.
    https://issuetracker.unity3d.com/issues/vr-particle-systems-cause-task-dot-rasterdata-dot-indexbuffer-equals-equals-null-error-and-lead-to-graphical-glitches?_ga=2.210732053.1884356547.1589916837-307983131.1586452505
     
  50. funkyCoty

    funkyCoty

    Joined:
    May 22, 2018
    Posts:
    727
    I've submitted a new case, Case 1249092 - which links to case 1248799 - which has my project on Google Drive for you guys to access. I cannot make a small repro project, but this issue could be blocking our very fast approaching Stadia release.
     
    richardkettlewell likes this.