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. Dismiss Notice

WWW in Editor causes Hard Lock

Discussion in 'Editor & General Support' started by Ntero, Sep 24, 2010.

  1. Ntero

    Ntero

    Joined:
    Apr 29, 2010
    Posts:
    1,436
    I'm getting an issue every couple of hours.

    If I'm in the Editor and I press play, approximately 1% of the time (maybe less, it's very rare) I get an infinite loop freeze.

    There errors reported are:

    pthread_getschedparam(thread, &policy, &param)
    UnityEngine.WWW:.ctor(String)

    and

    m_DefaultPriority == 0
    UnityEngine.WWW:.ctor

    I am loading a number of textures using coroutines in parralel. I can't seem to find an instigator, as it happens on player start(within the first couple frames of intialization) on random occasions.

    I catch errors in the WWW class, however it does not reach those.

    I'm curious if this is a bug or if I could be doing something incorrect with the WWW class. I can't see the internals and I can't really debug what those errors could mean the issue is (I don't touch threadPriority).

    Curious if anyone at Unity could give me a push in the right direction.
     
  2. Ntero

    Ntero

    Joined:
    Apr 29, 2010
    Posts:
    1,436
    Update: It seems to be more prone to crashing when stopped and started quickly.
     
  3. bigSky

    bigSky

    Joined:
    Jan 31, 2011
    Posts:
    114
    Apologies for necrothreading, but I have almost the same effect, for almost the same reasons in unity 4.5 on a mac. It seems like the www class is to blame, but I can't catch any errors, it seems very random.
    For me, it is coupled with:

    !m_Running && "Thread shouldn't be running anymore"