Closed heraldofgargos closed 4 years ago
Thanks for reporting this issue. Looks like a bug to me, although potentially from the "not handling valid error cases" realm. I'm flagging this as a good match for new contributors, since this can probably be solved by a reasonable try-catch and fallback code at the right spot within the callstack:
Fullscreen
--> FullWindow
--> Window
@alexfonseka One thing that strikes me as quite odd is the graphics mode that was selected on your system: Failed to change resolution to {X=0,Y=0,Width=1920,Height=1080}x32@25Hz.
Why would there be a 25Hz mode, and why would that be selected as the default graphics mode? Can you do a debug step through QueryGraphicsModes and post a list of the gathered / available modes?
Here's the list of available graphics mode.
◢ | AvailableGraphicsModes | Count = 6 | System.Collections.Generic.IEnumerable<OpenTK.Graphics.GraphicsMode> {System.Collections.Generic.HashSet<OpenTK.Graphics.GraphicsMode>}
| ▶ [0] | {Index: , Color: 32 (8888), Depth: 24, Stencil: 0, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False} | OpenTK.Graphics.GraphicsMode
| ▶ [1] | {Index: , Color: 32 (8888), Depth: 24, Stencil: 0, Samples: 2, Accum: 0 (0000), Buffers: 2, Stereo: False} | OpenTK.Graphics.GraphicsMode
| ▶ [2] | {Index: , Color: 32 (8888), Depth: 24, Stencil: 0, Samples: 4, Accum: 0 (0000), Buffers: 2, Stereo: False} | OpenTK.Graphics.GraphicsMode
| ▶ [3] | {Index: , Color: 32 (8888), Depth: 24, Stencil: 0, Samples: 6, Accum: 0 (0000), Buffers: 2, Stereo: False} | OpenTK.Graphics.GraphicsMode
| ▶ [4] | {Index: , Color: 32 (8888), Depth: 24, Stencil: 0, Samples: 8, Accum: 0 (0000), Buffers: 2, Stereo: False} | OpenTK.Graphics.GraphicsMode
| ▶ [5] | {Index: , Color: 32 (8888), Depth: 24, Stencil: 0, Samples: 16, Accum: 0 (0000), Buffers: 2, Stereo: False} | OpenTK.Graphics.GraphicsMode
Not sure how to interpret most of these fields though.
Hm, nothing out of the ordinary there. Can you upload and link a full Logfile.txt
?
It seems the issue is local to my PC. It's not present on my laptop ¯_(ツ)_/¯
@alexfonseka so this bug only happened on your PC? Did you manage to figure out how to reproduce it on a different system?
Hey @Barsonax, I wasn't able to reproduce it again. I suspect it's probably a GPU driver related issue.
Closing, since it's not relevant to the project anymore...
Summary
The application crashes when trying to run a game with the WindowMode property set to Fullscreen in DualityUserData.
How to reproduce
Workaround
Changing from Fullscreen to FullWindow (borderless, I'd presume?) fixes it.
Attachments
Logfile