Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

load level while WWW is loading gives error

Discussion in 'WebGL' started by Stranger-Games, Jul 20, 2015.

  1. Stranger-Games

    Stranger-Games

    Joined:
    May 10, 2014
    Posts:
    392
    Hi,

    I am doing loading of images inside a screen, but the user can always navigate to another level even if the image is still loading.
    The monobehaviour initiate the loading of the image and have another coroutine with a yield (www loading routine) statement and displays the image after it's loaded, and this flow works correctly.
    When navigating to another level that monobehaviour just call StopAllCoroutines in OnDestroy, but the crash always happen even if I remove the OnDestroy.
    This doesn't cause problems in the editor or other platforms, but it almost always gives me the following error in webgl in both firefox and chrome.

    I am using unity 5.1.1p3

    Any help is greatly appreciated.
     
    Last edited: Jul 20, 2015
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Could you try to grab the callstack again, this time using a Development build ?
     
  3. Stranger-Games

    Stranger-Games

    Joined:
    May 10, 2014
    Posts:
    392
    Hi

    Thank you @Marco Trivellato
    I got this from chome using development build.

     

    Attached Files:

  4. MatthewW

    MatthewW

    Joined:
    Nov 30, 2006
    Posts:
    1,356
    Pretty sure this bug exists even as of 5.2f2--loading a new level with a pending WWW causes a crash.

    Will isolate into a repro when I get a sec...
     
  5. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    I have been investigating a crash with a similar callstack. In that case, the http request onload callback is called after the WWW object has been Disposed.

    Do you have a project i can look at ?