Search Unity

Burst 1.2.3 exceptions crash in build

Discussion in 'Burst' started by snacktime, Feb 16, 2020.

  1. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    Not sure if it's exceptions generally, but a bad call to ComponentDataFromEntity with an invalid entity raises an ArgumentException, which in built player with mono runtime causes a crash. Editor doesn't crash.

    Player log just showed GetLastError as Attempt to access invalid address.
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
    From my experience with most versions of burst (1.2 in particular because it was what we were on the for longest though I have since upgraded), exception will randomly crash release builds in burst jobs (this only dawned on me after sending a build to a publisher >_>).

    While exceptions are meant to be supported by burst, I'd highly recommend against throwing for the time being in burst jobs at least in release builds.
     
    Last edited: Feb 16, 2020