o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.83k stars 2.21k forks source link

Linux: Editor does not render the Viewport on a specific hardware on the Snap 23.05 installer #16047

Open LB-ArturZieba opened 1 year ago

LB-ArturZieba commented 1 year ago

Describe the bug Viewport in the Editor does not render on a specific PC (hardinfo file can be found in the Video and PC hardinfo file section for details).

It should be noted that https://o3debinaries.org/2.1.0/Linux/o3de_2.1.0_amd64.snap installer on the same PC ran without issues, and https://github.com/o3de/o3de/issues/15856 was encountered on the https://o3debinaries.org/2.0.0/Linux/o3de_2.0.0_amd64.snap installer.

It also should be noted that another specific PC issue was noted on this machine and could be related: https://github.com/o3de/o3de-multiplayersample/issues/412.

Steps to reproduce

  1. Download https://o3debinaries.org/23.05.0/Linux/o3de_23.05.0_amd64.snap.
  2. Install the downloaded .snap following instructions on: https://www.o3de.org/docs/welcome-guide/setup/installing-linux/#installing-o3de-from-a-snap-package.
  3. Launch the Project Manager.
  4. Create a Default Template project and build it.
  5. Launch the Editor and wait for assets to process.
  6. Create a new level.

Expected behavior Viewport is rendering properly.

Actual behavior Viewport does not render.

Video and PC hardinfo file

https://github.com/o3de/o3de/assets/86952082/75fe8a1c-a02f-4df3-a054-fe71cd5dd0b2

GPC-800_hardinfo_report.txt

Found in Branch https://o3debinaries.org/23.05.0/Linux/o3de_23.05.0_amd64.snap installer downloaded 5/31/2023 around 9AM GMT+2

Desktop

moudgils commented 1 year ago

@LB-ArturZieba Are you able to attach Editor.log to this ticket so we can glean as to possible reasons for this issue? Thanks

LB-ArturZieba commented 1 year ago

@moudgils Hi, here is the Editor.log from today's .snap 23.05 installer (6/1/2023 downloaded ~8:30AM GMT+2): Editor.log

moudgils commented 1 year ago

Hmm. It is trying to run Null RHI and crashing. Two issues here

  1. It should not crash (even with a null rhi). So that will need to be addressed.
  2. We should also track down why it is trying to run null rhi instead of vk rhi. Usually this happens if either we are passing null rhi as CL param or the machine does not meet the requirements to run Vulkan RHI.

Tagging @spham-amzn for visibility as he has had experience running Linux via snap container.

LB-ArturZieba commented 1 year ago

While checking 2.1.0 .snap installer today (downloaded 6/2/2023 8:20AM GMT+2) I have also encountered this issue. Looking at the Console log, there was Registering null RHI line.

LB-ArturZieba commented 1 year ago

This issue did not occur on .snap installer today (https://o3debinaries.org/23.10.0/Linux/o3de_23.10.0_amd64.snap - downloaded 9/21/2023 8:17AM GMT+2), however the meshes were not rendered in the Viewport on any of the project configurations (Default Template, Minimal or all Gems enabled), as can be seen in this video:

https://github.com/o3de/o3de/assets/86952082/f23d0a5b-c223-4cb4-9345-9e7333a98288

However, all of the missing meshes failed processing in the Asset Processor as described in https://github.com/o3de/o3de/issues/16194.

I'm attaching hardinfo files of two machines that were testing .snap installers today, comparing them:

BenjaminYde commented 7 months ago

I have the same issue in when using o3de 23.10 it in docker ubuntu 22.04.

(RHI) - ****************************************************************
(RHI) -                     Registering null RHI
(RHI) - ****************************************************************

image

See log here: Log.txt