Search Unity

ASM compiling causing unresponsive script warning on Firefox 64bit (version 52)

Discussion in 'Web' started by jonmarxent, Mar 13, 2017.

  1. jonmarxent

    jonmarxent

    Joined:
    Jan 25, 2017
    Posts:
    7
    On recent builds of Windows Firefox 64bit, we started getting unresponsive script warnings during the unity loader process. At first we thought it had to do with the initialization of game objects in our scene, so we started pulling those out. We managed to get the scene being loaded down to nothing but the camera (with no scripts attached), but the unresponsive script warning persisted. Then I started pulling scripts out of the project, and the error went away. We have a very large project (700+ scripts), and so we think that the ASM javascript runtime compilation is causing the unresponsive script warning from inside of javascript. Has anyone experienced anything similar, and is there any way around this?

    Note, i tried compiling our project with Unity versions 5.4.1, 5.4.4, and 5.5. Same results with each.
     
  2. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
    Even if you load an empty scene as your first scene all your code will be read, parsed and compiled at startup.
    So you might just run into the asm limitations in the browser.
     
  3. jonmarxent

    jonmarxent

    Joined:
    Jan 25, 2017
    Posts:
    7
    That is what we figured... but we were hoping someone else had run into this and may have knowledge on how to fix or otherwise get around this?
     
  4. jonmarxent

    jonmarxent

    Joined:
    Jan 25, 2017
    Posts:
    7
    In case anyone else has run into this, there is a known problem with shader compiling that can result in very slow unity startup: https://bugzilla.mozilla.org/show_bug.cgi?id=1347135