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

Exclusive Mode - DX11 - Crash on Application.Quit

Discussion in 'Editor & General Support' started by DecoyStudios, Dec 12, 2016.

  1. DecoyStudios

    DecoyStudios

    Joined:
    Dec 12, 2016
    Posts:
    2
    Hi Unity Community,

    Setting the fullscreen mode to Exclusive Mode for DX11 will cause the build to crash when Application.Quit is used.

    I'm using the latest unity (5.5) from the download page.
    I've tested it in multiple projects and on 2 different machines.

    I have attached an empty project with just a UI button that calls Application.Quit, whenever i run this in DX11 it will cause the game to crash.

    I have also attached a rar with the error log created.

    Is anyone else experiencing the same problem or am i at fault here?

    Thanks,
    Thomas
     

    Attached Files:

    Shindoh and erikvanlennep like this.
  2. erikvanlennep

    erikvanlennep

    Joined:
    Oct 27, 2016
    Posts:
    1
    I have the same problem when i run your code!

    Erik
     
  3. SamMeyer

    SamMeyer

    Joined:
    Dec 13, 2016
    Posts:
    1
    Hi Thomas,

    I am experiencing the same problem. A quick workaround is to use:
    Code (CSharp):
    1. if (!Application.isEditor) {
    2.      System.Diagnostics.Process.GetCurrentProcess().Kill();
    3. }
    But a fix for this problem would be nice from Unity :)

    Good luck,
    Sam
     
    Last edited: Dec 13, 2016
    Mark-Davis and Shindoh like this.
  4. Mark-Davis

    Mark-Davis

    Joined:
    Jun 21, 2011
    Posts:
    156
    I ran into this issue as well with Unity 5.5.0f3. As stated above, the problem is specific to quitting the application while in DX11 fullscreen exclusive mode. I was using the native resolution, 1080p. Killing the process seems to be a viable workaround. Thanks to Sam for mentioning that. Here's some DXDiag info in case it helps:

    Time of this report: 12/21/2016, 14:59:20
    Operating System: Windows 10 Pro 64-bit (10.0, Build 14393)
    Language: English (Regional Setting: English)
    Processor: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz (12 CPUs), ~2.9GHz
    Memory: 16384MB RAM
    DirectX Version: DirectX 12
    Card name: NVIDIA GeForce GTX 980
    Display Memory: 12203 MB
    Dedicated Memory: 4060 MB
    Shared Memory: 8142 MB
    Current Mode: 1920 x 1080 (32 bit) (60Hz)
    Native Mode: 1920 x 1080(p) (60.000Hz)
    Output Type: HDMI
    Driver File Version: 21.21.0013.7609 (English)
    Driver Version: 21.21.13.7609
    DDI Version: 12
    Feature Levels: 12_1,12_0,11_1,11_0,10_1,10_0,9_3,9_2,9_1
    Driver Model: WDDM 2.1
    Graphics Preemption: DMA
    Compute Preemption: DMA
    Miracast: Not Supported by Graphics driver
    Hybrid Graphics GPU: Not Supported
    Power P-states: Not Supported
    Driver Attributes: Final Retail
    Driver Date/Size: 11/23/2016 4:00:00 PM, 17590064 bytes​