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

Crash on resize: Nvidia RTX 4090 + Vulkan + Linux #3227

Open
thinkimlazy opened this issue Dec 20, 2023 · 3 comments
Open

Crash on resize: Nvidia RTX 4090 + Vulkan + Linux #3227

thinkimlazy opened this issue Dec 20, 2023 · 3 comments
Labels

Comments

@thinkimlazy
Copy link

thinkimlazy commented Dec 20, 2023

Describe the bug
My App and exampleDebug\exampleRelease crashes after few seconds of resizing

  • Linux
  • Vulkan
  • Nvidia RTX 4090
  • x11 (i3)
 nvidia-smi                                                                                                                                                                                                         (base) 
Tue Dec 19 20:10:25 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06              Driver Version: 545.29.06    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| 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 4090        Off | 00000000:01:00.0  On |                  Off |
|  0%   37C    P8              11W / 450W |   1483MiB / 24564MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+

exampleDebug --gl works fine.

To Reproduce
Steps to reproduce the behavior:

  1. Make debug/release linux
  2. open exampleDebug
  3. Start resizing window

Expected behavior
Resize without crashing

Additional context
Debug log
log.log

@bkaradzic bkaradzic added the bug label Dec 20, 2023
@thinkimlazy
Copy link
Author

On same machine everything works just fine on Vulkan + Integrated AMD Ryzen.

Vulkan standard mentions that logical device lose might be implementation detail. Should we provide a way to recreate logical device?
Looks like nvidia driver implementation for linux loses logical device for some resizes.
(maybe it's noob idea, I am not proficient with graphics)

It seems this problem is old one, I found few mentions of Nvidia + Vulkan and VK_ERROR_DEVICE_LOST error
in discord.
maybe this is relatable mpv-player/mpv#8360

@thinkimlazy
Copy link
Author

thinkimlazy commented Dec 20, 2023

example 22-windows also crashes after 2 windows for Nvidia.
AMD integrated works fine.

@bkaradzic
Copy link
Owner

It's most likely nVidia driver bug... But I can fix bgfx/VK renderer to handle lost device properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants