Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

[Bug 1.2.4] [WebGL] Addressable Tasks never complete

Discussion in 'Addressables' started by MaskedMouse, Oct 2, 2019.

  1. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    388
    We've updated addressables from 0.6.8 to 1.2.4 to make use of the .Task property. But to our surprise tasks never finish. I've made a simple setup to demonstrate this in a bug report.
    The await update works
    The normal .completed event handling finishes normally
    but awaiting any addressables API makes it wait indefinitely. When the page is refreshed it will even throw a dependency error. Probably because the task is still awaiting to finish.

    Bug Case: 1188428
     
    Last edited: Oct 2, 2019
  2. unity_bill

    unity_bill

    Unity Technologies

    Joined:
    Apr 11, 2017
    Posts:
    954
    Thanks for the post, we'll look into it.
     
  3. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    388
    I’ve been setting debug logs everywhere in the
    .Task
    property of addressables. But after starting a Task it seems to not debug anything on WebGL. It does in the editor but not on WebGL.
    So I did a sanity check -> started a Task using the
    Task.Factory.StartNew
    api but it fails doing anything as well.
    Then added a regular await with the same task method and that executes just fine.

    So for some reason using the factory method StartNew on webgl doesn’t work?
    I hope this additional information helps a bit

    using Unity 2019.2.8
     
    Last edited: Oct 9, 2019
  4. unity_bill

    unity_bill

    Unity Technologies

    Joined:
    Apr 11, 2017
    Posts:
    954
    yeah, it feels very helpful. We have this on our current sprint to attack (which means, if we can figure it out, release in 3-4 weeks).

    This added info will be helpful.