o3de / o3de-atom-sampleviewer

Atom sample viewer project for the Open 3D Engine
https://o3de.org
Other
31 stars 35 forks source link

Assert making the AtomSampleViewer.GameLauncher unresponsive occurs in different RPI Samples on Windows using Vulkan RHI #605

Closed LB-KacperKapusta closed 1 year ago

LB-KacperKapusta commented 1 year ago

Describe the bug An assert Vulkan.h(96) occurs in AtomSampleViewer.GameLauncher making it unresponsive (restart of the GameLauncer is required) in different scenarios while specific RPI samples are open. The issue does not occur on Windows using dx12 RHI and Linux.

Affected RPI Samples - scenarios:

Please note that the issue has also occurred randomly while switching between available RPIs (e.g. switching SponzaBenchmark to CullingAndLod) but often could not be reproduced.

Please refer to the attached screenshot and log for more information.

Note that the issue should be considered Critical priority.

Assert information: File: D:\workspace\o3de\Gems\Atom\RHI\Vulkan\Code\Source\RHI/Vulkan.h Condition:

(628) 'void __cdecl AZ::Vulkan::AssertSuccess(enum VkResult)'
(System) - ASSERT: Vulkan API method failed: Device lost

Line: 96

Prerequisites

Steps to reproduce

  1. Launch the AtomSampleViewer.GameLauncher.exe with "-rhi=Vulkan" parameter.
  2. Go to Samples > RPI.
  3. Open any of the samples mentioned in the description under "Affected RPI Samples - scenarios:" and perform the described operation.

Expected behavior All samples work without issues.

Actual behavior An assert making the GameLauncher unresponsive occurs in multiple RPI Samples.

Screenshots/Video

https://user-images.githubusercontent.com/86953659/229114105-6629aaa7-6b3c-4c68-9293-6a7a6c84565d.mp4

Found in Branch O3DE Installer - Stabilization/2305 AtomSampleViewer - Stabilization/2305 (cee84fa)

Desktop/Device:

Additional context: Game.log

LB-KacperKapusta commented 1 year ago

The issue has been confirmed as only partially fixed using the latest Stabilization/2305 Installer (https://o3debinaries.org/stabilization-2305/Latest/Windows/o3de_installer.exe). The MultiRenderPipeline - enabling "Add/Remove IBL" option scenario mentioned in the description still causes the Assert and the GameLauncher's unresponsiveness.

https://user-images.githubusercontent.com/86953659/233615626-be050876-6643-40ee-949b-404174ecd566.mp4

The issue could not be reproduced for any of the remaining scenarios.

Please note that reopening the issue on our side is impossible due to lack of permissions in o3de-sample-viewer repository.

Game.log