Search Issue Tracker

Fixed in 2017.1.X

Votes

0

Found in

2017.1.0b1

Issue ID

901270

Regression

Yes

Standalone player sometimes crashes on display activation when color space in player settings is set to Linear

Graphics - General

-

Reproduction steps:
1. Open project attached (MultiDisplayLinearFail.zip).
2. Open scene "Test".
3. Build for Standalone player.
4. Open it. (This might take up to 10 times, for me the chance is about 1/5)

Expected result: Game start on 2 (or 3) displays.
Actual result: Game crashes.

Note: It might be also be caused by switching from fullscreen to windowed mode or vice versa, but it is not confirmed.

Reproduced on: 5.6.0f1, 5.6.0p1, 2017.1.0b1.
Works fine in: 5.5.3p1.
Regression introduced in 5.6.

Stack trace:
0x00007FF94EF32035 (d3d11) CreateDirect3D11SurfaceFromDXGISurface
...
0x0000000005783AAE (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Display:ActivateDisplayImpl (intptr,int,int,int)
0x00000000057839FF (Mono JIT Code) UnityEngine.Display:Activate ()
0x000000000577F7A0 (Mono JIT Code) StandardMultidisplay:Start ()
0x000000000577F27B (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FF91EE35713 (mono) mono_set_defaults
0x00007FF91ED88435 (mono) mono_runtime_invoke
....

Comments (1)

  1. TheDeaf

    Jan 03, 2018 08:17

    I have same crash.

    Reproduction steps:
    1.add scripts to object:
    if (Display.displays.Length > 1)
    Display.displays[1].Activate();// crashed at hear
    2. set color space to linear
    3.build exe
    4、run exe

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.