Skip to content

[Vulkan] Race condition when resizing the window on Linux (latest master) #3207

@ferafiks

Description

@ferafiks

Release Type: Github

Version: latest

Platform(s): Linux

Describe the bug
When resizing the window on Linux there is a high chance that the game will crash. Tested on KDE Plasma and Hyprland (where the crash also often happens when starting due to hyprland tiling and resizing the window).

To Reproduce
Steps to reproduce the behavior:

  1. Open any project
  2. Make the window resizable
  3. Start rapidly changing the window size with the mouse
  4. Crash

Log and callstacks

Exception has occurred: CLR/System.InvalidOperationException
An exception of type 'System.InvalidOperationException' occurred in Stride.Graphics.dll but was not handled in user code: 'Vulkan call presentResult returned SuboptimalKHR'
   at Stride.Graphics.GraphicsDevice.CheckResult(VkResult vkResult, String call)
   at Stride.Graphics.SwapChainGraphicsPresenter.Present()
   at Stride.Games.GraphicsDeviceManager.Stride.Games.IGraphicsDeviceManager.EndDraw(Boolean present)
   at Stride.Games.GameBase.EndDraw(Boolean present)
   at Stride.Engine.Game.EndDraw(Boolean present) in G:\VS\stride\sources\engine\Stride.Engine\Engine\Game.cs:line 453
   at Stride.Games.GameBase.RawTick(TimeSpan elapsedTimePerUpdate, Int32 updateCount, Single drawInterpolationFactor, Boolean drawFrame)
   at Stride.Games.GameBase.RawTick(TimeSpan elapsedTimePerUpdate, Int32 updateCount, Single drawInterpolationFactor, Boolean drawFrame)
   at Stride.Games.GameBase.RawTickProducer()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions