Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game crashes when switching display mode in DirectX #5712

Closed
peppy opened this issue Mar 28, 2023 Discussed in #5708 · 2 comments
Closed

Game crashes when switching display mode in DirectX #5712

peppy opened this issue Mar 28, 2023 Discussed in #5708 · 2 comments

Comments

@peppy
Copy link
Member

peppy commented Mar 28, 2023

Excerpt from the log, looks like a problem with AllowTearing in the renderer.

2023-03-27 01:24:52 [error]: An unhandled error has occurred.
2023-03-27 01:24:52 [error]: SharpGen.Runtime.SharpGenException: HRESULT: [0x80070005], Module: [General], ApiCode: [E_ACCESSDENIED/General access denied error], Message: [Access is denied.
2023-03-27 01:24:52 [error]: ]
2023-03-27 01:24:52 [error]: at SharpGen.Runtime.Result.ThrowFailureException()
2023-03-27 01:24:52 [error]: at Vortice.DXGI.IDXGIFactory.CreateSwapChain(IUnknown device, SwapChainDescription desc)
2023-03-27 01:24:52 [error]: at Veldrid.D3D11.D3D11Swapchain.recreateSwapchain()
2023-03-27 01:24:52 [error]: at osu.Framework.Graphics.Veldrid.VeldridRenderer.set_AllowTearing(Boolean value) in E:\osu!source\osu-framework\osu.Framework\Graphics\Veldrid\VeldridRenderer.cs:line 41
2023-03-27 01:24:52 [error]: at osu.Framework.Graphics.Rendering.Renderer.osu.Framework.Graphics.Rendering.IRenderer.set_AllowTearing(Boolean value) in E:\osu!source\osu-framework\osu.Framework\Graphics\Rendering\Renderer.cs:line 1098
2023-03-27 01:24:52 [error]: at osu.Framework.Platform.GameHost.DrawFrame() in E:\osu!source\osu-framework\osu.Framework\Platform\GameHost.cs:line 484
2023-03-27 01:24:52 [error]: at osu.Framework.Threading.GameThread.processFrame() in E:\osu!source\osu-framework\osu.Framework\Threading\GameThread.cs:line 451

Discussed in #5708

Originally posted by BlueZenithAm March 27, 2023
I found that the game will crash when switching display mode between boardless fullscreen/windowed and exclusive fullscreen. It only happens in DirectX mode, other surfaces work properly.

2023-03-27.01-00-39.mp4

logs:
runtime.log
input.log
performance.log

@smoogipoo
Copy link
Contributor

I believe this is fixed now with ppy/veldrid@0ec05ac ?

@frenzibyte
Copy link
Member

According to relevant discord discussion, that looks like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants