Open NicusorN5 opened 2 months ago
got the same issue here:
SharpDX.SharpDXException
HResult=0x80070005
Mensaje = HRESULT: [0x80070005], Module: [General], ApiCode: [E_ACCESSDENIED/General access denied error], Message: Acceso denegado.
Origen = SharpDX
Seguimiento de la pila:
en SharpDX.Result.CheckError() en C:\projects\sharpdx\Source\SharpDX\Result.cs: línea 195
en SharpDX.DXGI.Factory.CreateSwapChain(IUnknown deviceRef, SwapChainDescription& descRef, SwapChain swapChainOut) en C:\projects\sharpdx\Source\SharpDX.DXGI\Generated\REFERENCE\Interfaces.cs: línea 1519
en SharpDX.DXGI.SwapChain..ctor(Factory factory, ComObject device, SwapChainDescription description) en C:\projects\sharpdx\Source\SharpDX.DXGI\SwapChain.cs: línea 43
en Stride.Graphics.SwapChainGraphicsPresenter.CreateSwapChainForDesktop(IntPtr handle)
en Stride.Graphics.SwapChainGraphicsPresenter.CreateSwapChainForWindows()
en Stride.Graphics.SwapChainGraphicsPresenter.CreateSwapChain()
en Stride.Graphics.SwapChainGraphicsPresenter.OnRecreated()
en Stride.Graphics.ResumeManager.OnRecreate()
en Stride.Games.GameBase.GraphicsDeviceService_DeviceReset(Object sender, EventArgs e)
en Stride.Games.GraphicsDeviceManager.OnDeviceReset(Object sender, EventArgs args)
en Stride.Games.GraphicsDeviceManager.CreateDevice(GraphicsDeviceInformation newInfo)
en Stride.Games.GraphicsDeviceManager.ChangeOrCreateDevice(Boolean forceCreate)
en Stride.Games.GraphicsDeviceManager.ApplyChanges()
en Stride.Games.GraphicsDeviceManager.Window_FullscreenChanged(Object sender, EventArgs eventArgs)
en Stride.Games.GameWindow.set_IsFullscreen(Boolean value)
en Stride.Games.GameWindow.OnDisableFullScreen(Object source, EventArgs e)
en Stride.Games.GameForm.OnDisableFullScreen(EventArgs e)
en Stride.Games.GameForm.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
en Stride.Games.Win32Native.CallWindowProc(IntPtr wndProc, IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
en Stride.Input.InputSourceWinforms.WndProc(IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
Stride 4.2.0.2232 Graphics api: d3d 11.1 Windows 10 build 19045.4894
Release Type: Github + Official
Version: Github latest commit + Latest 4.2.0.2188
Platform(s): Windows, DX11 Level 11_1
Describe the bug When enabling fullscreen, a
DXGI_ERROR_INVALID_CALL/InvalidCall
error is thrown, otherwise (very rarely) a black screen is being presented.Can't seem to reproduce using a empty project. :(
To Reproduce Steps to reproduce the behavior:
Use this function and call it inside a
Start()
method of aStartupScript
Expected behavior Crash bad.
Log and callstacks
Workaround Use borderless fullscreen, like so: