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

Linux Desktop v9 crashes when using prime-run #1278

Open
5 tasks done
errornonamer opened this issue Mar 29, 2024 · 2 comments
Open
5 tasks done

Linux Desktop v9 crashes when using prime-run #1278

errornonamer opened this issue Mar 29, 2024 · 2 comments
Labels
bug Something is not working properly

Comments

@errornonamer
Copy link

Checklist

  • I've checked both open and recently closed issues to ensure this issue is not already reported.
  • I am using the newest version of TETR.IO.
  • I am using a supported browser or the Desktop Client.
  • I am not using anything that modifies game code (e.g. TETR.IO PLUS).
  • I am certain this is a bug, not a feature request.

OS and Version

Artix Linux, rolling

Browser and version

Desktop v9

Describe the bug/issue

Desktop client crashes when launched with prime-run to offload rendering to nvidia dgpu. No issue on amd igpu

When forced to use wayland backend with --enable-features=UseOzonePlatform --ozone-platform=wayland launch parameter it stops crashing, but runs with unplayable framerate as it's run on what I assume is the software renderer

Reproducing

  1. Run the client with /opt/TETR.IO/TETR.IO commandline, works as expected on igpu
  2. Run the client with prime-run /opt/TETR.IO/TETR.IO commandline, crashes after rendering 2 or 3 frames of splash screen
  3. Run the client with prime-run /opt/TETR.IO/TETR.IO --enable-features=UseOzonePlatform --ozone-platform=wayland commandline, stops crashing but get <10 fps and f8 stats indicates it's running on SwiftShader Device (which I assume is the software renderer)

Expected behavior

Game runs on dgpu without crashing when launched with prime-run /opt/TETR.IO/TETR.IO commandline

Screenshots

No response

Console logs

$ prime-run /opt/TETR.IO/TETR.IO
Gtk-Message: 22:28:42.788: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 22:28:42.788: Failed to load module "colorreload-gtk-module"
[7735:0329/222843.145959:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[7735:0329/222843.458428:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[7735:0329/222843.793664:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[7832:0329/222844.025349:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[7735:0329/222844.042483:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[7735:0329/222844.370414:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[8016:0329/222844.678698:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[7735:0329/222844.679619:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[7735:0329/222844.825509:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[7735:0329/222844.974542:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[7735:0329/222845.143105:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=5
[7735:0329/222845.143125:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
/usr/bin/prime-run: line 2:  7735 Trace/breakpoint trap   __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"
$ prime-run /opt/TETR.IO/TETR.IO --enable-features=UseOzonePlatform --ozone-platform=wayland
[9588:0329/223045.416145:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=8704
[9588:0329/223045.630834:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=8704
[9588:0329/223045.837839:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=8704
[9691:0329/223046.038456:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

Additional context

$ pacman -Q nvidia-dkms nvidia-utils nvidia-prime tetrio-desktop
nvidia-dkms 550.67-1
nvidia-utils 550.67-1
nvidia-prime 1.0-4
tetrio-desktop 9.0.0-1
$ nvidia-smi
Fri Mar 29 22:39:50 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.67                 Driver Version: 550.67         CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   42C    P8             14W /   60W |       6MiB /   6144MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A     18480      G   Hyprland                                        2MiB |
+-----------------------------------------------------------------------------------------+
$ lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
02:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
03:00.0 Non-Volatile memory controller: SK hynix Gold P31/BC711/PC711 NVMe Solid State Drive
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
$ uname -a
Linux artix-linux 6.8.1-artix1-1 #1 SMP PREEMPT_DYNAMIC Sun, 17 Mar 2024 04:02:54 +0000 x86_64 GNU/Linux
@errornonamer errornonamer added the bug Something is not working properly label Mar 29, 2024
@ZaptorZap
Copy link
Member

If you press F8 while ingame you can verify whether or not it's using an IGPU by reading the 3rd line, by the end of the row of text. If it's hardware acceleration, you should see the name of your graphics card. If it's not, that text will read something along the lines of "llvmpipe…"

Unfortunately I don't have much else to offer here. TETR.IO desktop runs fine here on X11 with my NVIDIA card, and I haven't really heard of prime-run before lol

@hexahigh
Copy link

Having the same problem. Im not using prime-run but i run all my apps on the gpu.
Full log:

 simon    ~   5ms⠀   /opt/TETR.IO/TETR.IO
[39377:0415/191119.648628:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39377:0415/191119.950661:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39461:0415/191120.270902:ERROR:command_buffer_proxy_impl.cc(323)] GPU state invalid after WaitForGetOffsetInRange.
[39553:0415/191120.271385:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[39377:0415/191120.275514:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39377:0415/191120.569136:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39377:0415/191120.799979:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39553:0415/191121.018824:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[39377:0415/191121.019104:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39377:0415/191121.158501:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39377:0415/191121.359271:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39377:0415/191121.525321:ERROR:gpu_process_host.cc(989)] GPU process exited unexpectedly: exit_code=133
[39377:0415/191121.525343:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
Trace/breakpoint trap (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working properly
Projects
None yet
Development

No branches or pull requests

3 participants