Search Unity

Unity 5.0.1f1 web player crashes/locks OSX

Discussion in 'Editor & General Support' started by Casiotone, Apr 21, 2015.

  1. Casiotone

    Casiotone

    Joined:
    Apr 2, 2013
    Posts:
    4
    I'm stuck and I need some help.

    Firefox and Safari both load the web player, show my title screen, and fully crash both Mavericks and Yosemite to the point of requiring a hard reset.

    It occurs after the title screen's Start button is clicked and the game tries to transition to the next scene. My guess is that it's happening in LevelController.cs when trying to load the next scene, though I haven't been able to discern why.

    Specifically, line 19 in this chunk of code that handles a fade in/fade out between scenes:

    Code (CSharp):
    1.  
    2. void OnGUI(){
    3.     if(isTransitioning){
    4.         // next alpha value
    5.         alpha += fadeDir * fadeSpeed * Time.deltaTime;
    6.         alpha = Mathf.Clamp01(alpha);
    7.  
    8.         // Can't change GUI.color values directly, so create temp color
    9.         Color color = GUI.color;
    10.         color.a = alpha;
    11.         GUI.color = color;
    12.  
    13.         GUI.depth = drawDepth;
    14.         GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), fadeOutTexture);
    15.  
    16.         // When increasing alpha, and at a reasonable cap, load the next scene
    17.         //   defined in the inspector. We only fade out when changing scenes.
    18.         if (fadeDir > 0 && alpha >= 0.99f) {
    19.             Application.LoadLevel(nextSceneName);
    20.         } else if (alpha < 0.01f){
    21.             isTransitioning = false;
    22.         }
    23.     }
    24. }
    25.  
    26.  
    There's something I'm missing here. Where do I start?

    Web player here: (you've been warned!)
    http://sayhiben.com/beacon/webplayer.html

    Full source is here:
    https://github.com/sayhiben/beacon-ludum-dare-32

    Built with Unity 5.0.1f1
     
    Last edited: Apr 22, 2015
  2. Casiotone

    Casiotone

    Joined:
    Apr 2, 2013
    Posts:
    4
    Is it okay to bump this? It was posted pretty late, and I'd still like to get our Ludum Dare entry running in the webplayer.
     
  3. Casiotone

    Casiotone

    Joined:
    Apr 2, 2013
    Posts:
    4
  4. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Hmm. That is a strange one. Just rebooted my machine. :-(
     
  5. Graham-Dunnett

    Graham-Dunnett

    Administrator

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    When I use Chrome, I get:

    Receiving unhandled NULL exception
    Exit with error code: 2

    ========== OUTPUTING STACK TRACE ==================

    0 libsystem_c.dylib 0x000000008f71b29e thread_stack_pcs + 11
    1 UnityPlayer 0x000000001b54fa61 0x0 + 458553953
    2 UnityPlayer 0x000000001b54f3c4 0x0 + 458552260
    3 UnityPlayer 0x000000001b54f162 0x0 + 458551650
    4 UnityPlayer 0x000000001b4c421c 0x0 + 457982492
    5 Mono 0x000000001e9cbc92 mono_chain_signal + 71
    6 Mono 0x000000001e9192f7 mono_sigsegv_signal_handler + 213
    7 libsystem_platform.dylib 0x000000009519d5aa _sigtramp + 26
    8 ??? 0x0000000000000000 0x0 + 0
    9 GeForceGLDriver 0x00000000402e2e58 gldReadTextureData + 858245
    10 GeForceGLDriver 0x00000000402dd35f gldReadTextureData + 834956
    11 GeForceGLDriver 0x00000000402f5017 gldUpdateDispatch + 2362
    12 GLEngine 0x00000000900cc115 gleUnbindTextureObject + 59
    13 GLEngine 0x00000000900cc146 gleUnbindAndFreeTextureObject + 18
    14 GLEngine 0x000000008ffe38ec glFramebufferTexture2DEXT_Exec + 493
    15 UnityPlayer 0x000000001b8c3c58 UnityBundleShouldHideCursor + 215481
    16 UnityPlayer 0x000000001b8bdc45 UnityBundleShouldHideCursor + 190886
    17 UnityPlayer 0x000000001b8cef12 UnityBundleShouldHideCursor + 261235
    18 UnityPlayer 0x000000001b3f9d41 0x0 + 457153857
    19 UnityPlayer 0x000000001b3f9c58 0x0 + 457153624
    20 UnityPlayer 0x000000001b30bd35 0x0 + 456178997
    21 UnityPlayer 0x000000001b30ba8c 0x0 + 456178316
    22 UnityPlayer 0x000000001b30e27b 0x0 + 456188539
    23 UnityPlayer 0x000000001b34007c 0x0 + 456392828
    24 UnityPlayer 0x000000001b46ebca 0x0 + 457632714
    25 UnityPlayer 0x000000001b46f653 0x0 + 457635411
    26 UnityPlayer 0x000000001b88edf3 UnityBundleCARenderFrame + 407
    27 Unity Web Player 0x0000000014377dfb _Z35GetProgressLayerInstallManuallyRectP19ProgressLayerOpaqueP6CGRect + 548
    28 Unity Web Player 0x0000000014377fc1 _Z35GetProgressLayerInstallManuallyRectP19ProgressLayerOpaqueP6CGRect + 1002
    29 QuartzCore 0x000000008c8cb286 _ZL17CAOpenGLLayerDrawP13CAOpenGLLayerdPK11CVTimeStampj + 733
    30 QuartzCore 0x000000008c8cae25 -[CAOpenGLLayer _display] + 395
    31 QuartzCore 0x000000008c87e162 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 590
    32 QuartzCore 0x000000008c87d8b1 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 35
    33 QuartzCore 0x000000008c87d33c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 236
    34 QuartzCore 0x000000008c87cfd6 _ZN2CA11Transaction6commitEv + 388
    35 QuartzCore 0x000000008c88d761 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 71
    36 CoreFoundation 0x000000008bec0d67 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    37 CoreFoundation 0x000000008bec0cd7 __CFRunLoopDoObservers + 391
    38 CoreFoundation 0x000000008beb2493 __CFRunLoopRun + 995
    39 CoreFoundation 0x000000008beb1e75 CFRunLoopRunSpecific + 309
    40 HIToolbox 0x00000000984bda0d RunCurrentEventLoopInMode + 226
    41 HIToolbox 0x00000000984bd7b7 ReceiveNextEventCommon + 479
    42 HIToolbox 0x00000000984bd5bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
    43 AppKit 0x00000000960be24e _DPSNextEvent + 1434
    44 AppKit 0x00000000960bd89b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    45 AppKit 0x00000000960b199c -[NSApplication run] + 553
    46 Google Chrome Framework 0x0000000009ff759e ChromeMain + 6968350
    47 Google Chrome Framework 0x0000000009ff6dbc ChromeMain + 6966332
    48 Google Chrome Framework 0x000000000a0355d3 ChromeMain + 7222355
    49 Google Chrome Framework 0x000000000a021bfd ChromeMain + 7142013
    50 Google Chrome Framework 0x000000000d5a6db2 ChromeMain + 63261746
    51 Google Chrome Framework 0x0000000009fa2704 ChromeMain + 6620548
    52 Google Chrome Framework 0x0000000009fa1e46 ChromeMain + 6618310
    53 Google Chrome Framework 0x00000000099521c2 ChromeMain + 66
    54 Google Chrome Helper EH 0x0000000009948f39 main + 9
    55 Google Chrome Helper EH 0x0000000009948f24 0x0 + 160730916
    56 ??? 0x0000000000000005 0x0 + 5

    ========== END OF STACKTRACE ===========

    I assume FF and Safari crash in the same way, but don't handle the exception as well. I can't explain what is happening, :-(.
     
  6. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,073
    Can you report a bug please with the project attached and your setup details?
    I tried it on my 10.10 and it loaded fine. Which plugin version are you using?

    If you submit a bug please ping me the number here.
     
  7. Casiotone

    Casiotone

    Joined:
    Apr 2, 2013
    Posts:
    4
    Here you are: 692061

    It's loading fine for me too but locks the system after clicking Start.

    Edit: Nice goggles.
     
    Last edited: Apr 24, 2015
  8. gecko

    gecko

    Joined:
    Aug 10, 2006
    Posts:
    2,241
    We suddenly started having this problem when upgrading a project to 5.3.1. Was there any resolution?
     
    Last edited: Jan 12, 2016