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

Failed to switch resolution

Discussion in 'Windows' started by npruehs, Apr 14, 2014.

  1. npruehs

    npruehs

    Joined:
    Jul 20, 2012
    Posts:
    67
    Hi everybody,

    we're experiencing the following errors when switching scenes in a Windows Store app:

    Code (csharp):
    1. ResizeBuffers failed with error 0x887a0005
    2. (Filename:  Line: 340)
    3.  
    4. Failed to switch resolution to 1600 x 900
    5. (Filename:  Line: 38)
    6.  
    7. s_SwapChain->GetBuffer failed with error 0x887a0001
    8. (Filename:  Line: 345)
    9.  
    10. Failed to switch resolution to 1600 x 900
    11. (Filename:  Line: 38)
    12.  
    13. s_SwapChain->GetBuffer failed with error 0x887a0001
    14. (Filename:  Line: 345)
    15.  
    16. Failed to switch resolution to 1600 x 900
    17. (Filename:  Line: 38)
    Changing the scene is done by starting the following co-routine:

    Code (csharp):
    1.  
    2.         private IEnumerator ChangeSceneWithLoadingScreen(string scene)
    3.         {
    4.             GameObject loadingScreen = null;
    5.  
    6.             if (this.LoadingScreenPrefab != null)
    7.             {
    8.                 // Show loading screen.
    9.                 loadingScreen = (GameObject)Instantiate(this.LoadingScreenPrefab);
    10.                 yield return new WaitForEndOfFrame();
    11.             }
    12.             else
    13.             {
    14.                 Debug.LogWarning("No loading screen set, user might experience non-reactive UI.");
    15.             }
    16.  
    17.             // Load level.
    18.             Application.LoadLevel(scene);
    19.  
    20.             if (loadingScreen != null)
    21.             {
    22.                 // Hide loading screen.
    23.                 Destroy(loadingScreen);
    24.             }
    25.         }
    26.  
    Everything runs fine from within the editor. However, building the Windows Store player, opening the generated solution in Visual Studio, deploying the app (Master/x86) and starting the app causes the following symptoms:

    1. Loading screen is properly being shown.
    2. Loading screen is hidden after scene is loaded.
    3. Log indicates that the scene has been successfully loaded (e.g. enemies are spawned, health values are properly initialized etc.)
    4. The screen remains black after the scene is loaded.

    We are running Unity 4.3.2f1, as more recent Unity versions showed errors when building the player due to missing methods in the updated Metro dlls.

    Dxdiag attached. Does anyone experience similar issues?
     

    Attached Files:

  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    Looks like a bug. Before reporting it, acouple things to check:

    Do you have independent input source of low latency presentation API enabled? Tried disabling them?

    Can you be more specific on this? I don't remember anything being removed after 4.3.2.
     
  3. npruehs

    npruehs

    Joined:
    Jul 20, 2012
    Posts:
    67
    Unfortunately, that didn't resolve the issue.

    Unity has introduced new implementations for some .NET classes in Unity 4.3.3, in the course breaking some of the existing reflections functionality:

    http://unity3d.com/unity/whats-new/unity-4.3.3
    http://forum.unity3d.com/threads/223065-Unity-4-3-3-Type-GetMembers(BindingFlags)-crash

    Concerning the original problem: We're suspecting some newly introduced shaders (which are working fine on Android). I'll keep you posted.
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
  5. npruehs

    npruehs

    Joined:
    Jul 20, 2012
    Posts:
    67
    Actually, no. That bug's affecting Windows Store as well. But that's not the original point.

    We finally isolated the issue and tracked it down to a single

    Code (csharp):
    1. Screen.fullScreen = true;
    I filed at bug report at http://fogbugz.unity3d.com/default.asp?602651_6irgadrg5356jm6d
     
  6. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    Changing resolution to full screen is not supported in 4.3. It will be supported in 4.5.