Blender doesn't run with --gpu-backend vulkan flag on linux (ubuntu) #114385

Open
opened 2023-11-02 01:24:30 +01:00 by Dmitry-Goryachev · 6 comments

System Information
Operating system: Linux-6.2.0-32-generic-x86_64-with-glibc2.37 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.86.05

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-10-31 18:59, hash: fdd11aba68f7
Worked: the same version, start blender without blender --factory-startup --gpu-backend vulkan

Short description of error
Blender doesn't run with --gpu-backend vulkan flag on linux (ubuntu 23.04). The outline of the program window appears and nothing happens. There is no program interface. By clicking on the cross in the corner, the window cannot be closed, but it closes if you close the terminal window in which the command to start the blender was entered. File blender.crash.txt is not created in /tmp folder.

Exact steps for others to reproduce the error
Start Blender with blender --factory-startup --gpu-backend vulkan on linux (ubuntu 23.04).

**System Information** Operating system: Linux-6.2.0-32-generic-x86_64-with-glibc2.37 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.86.05 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-10-31 18:59, hash: `fdd11aba68f7` Worked: the same version, start blender without blender --factory-startup --gpu-backend vulkan **Short description of error** Blender doesn't run with --gpu-backend vulkan flag on linux (ubuntu 23.04). The outline of the program window appears and nothing happens. There is no program interface. By clicking on the cross in the corner, the window cannot be closed, but it closes if you close the terminal window in which the command to start the blender was entered. File blender.crash.txt is not created in /tmp folder. **Exact steps for others to reproduce the error** Start Blender with blender --factory-startup --gpu-backend vulkan on linux (ubuntu 23.04).
Dmitry-Goryachev added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-11-02 01:24:30 +01:00

Thanks for the report, @Dmitry-Goryachev. As far as I know, Vulkan is supposed to work on Linux (as mentioned in 1aca58cf16)

To better understand the problem,:

  • are there any error messages or logs displayed in the terminal when you try to run Blender with the --gpu-backend vulkan and the --debug-gpu flag?
  • have you updated your graphics card drivers to the latest version provided by NVIDIA?

A possible causes of the problem could be an incompatibility between the Vulkan backend and your graphics card or driver.

Apparently, this feature was implemented to get some insight on supported platforms. So, tagging @Jeroen-Bakker .

Thanks for the report, @Dmitry-Goryachev. As far as I know, Vulkan is supposed to work on Linux (as mentioned in 1aca58cf16) To better understand the problem,: - are there any error messages or logs displayed in the terminal when you try to run Blender with the `--gpu-backend vulkan` and the `--debug-gpu` flag? - have you updated your graphics card drivers to the latest version provided by NVIDIA? A possible causes of the problem could be an incompatibility between the Vulkan backend and your graphics card or driver. Apparently, this feature was implemented to get some insight on supported platforms. So, tagging @Jeroen-Bakker .
Member

I mainly tested on Ubuntu LTS releases. Most of the times when the UI doesn't draw is because it is waiting for the Vulkan driver to send a signal to use the next image in the swap chain. (something technical and should work).

I want to investigate this issue more, so confirming for now.

I mainly tested on Ubuntu LTS releases. Most of the times when the UI doesn't draw is because it is waiting for the Vulkan driver to send a signal to use the next image in the swap chain. (something technical and should work). I want to investigate this issue more, so confirming for now.
Jeroen Bakker added
Status
Confirmed
Type
Bug
and removed
Status
Needs Info from Developers
Type
Report
labels 2023-11-02 08:38:24 +01:00
Jeroen Bakker added this to the EEVEE & Viewport project 2023-11-02 08:38:31 +01:00
Jeroen Bakker self-assigned this 2023-11-02 08:38:44 +01:00
Jeroen Bakker added this to the 4.1 milestone 2023-11-02 08:39:41 +01:00

To better understand the problem,:

  • are there any error messages or logs displayed in the terminal when you try to run Blender with the --gpu-backend vulkan and the --gpu-debug flag?
  • have you updated your graphics card drivers to the latest version provided by NVIDIA?

A possible causes of the problem could be an incompatibility between the Vulkan backend and your graphics card or driver.

@mano-wii
Today I updated Ubuntu components and video driver to the latest possible version provided by Nvidia.

System Information
Operating system: Linux-6.2.0-36-generic-x86_64-with-glibc2.37 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.129.03

The problem remains. By the way, Blender with Vulkan backend runs on Windows 11 with the same hardware. So it's not about the graphics card.

When I try to run Blender with the --gpu-backend vulkan and the --gpu-debug flag, the terminal displays the following.

> To better understand the problem,: > - are there any error messages or logs displayed in the terminal when you try to run Blender with the `--gpu-backend vulkan` and the `--gpu-debug` flag? > - have you updated your graphics card drivers to the latest version provided by NVIDIA? > > A possible causes of the problem could be an incompatibility between the Vulkan backend and your graphics card or driver. @mano-wii Today I updated Ubuntu components and video driver to the latest possible version provided by Nvidia. **System Information** Operating system: Linux-6.2.0-36-generic-x86_64-with-glibc2.37 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 535.129.03 The problem remains. By the way, Blender with Vulkan backend runs on Windows 11 with the same hardware. So it's not about the graphics card. When I try to run Blender with the --gpu-backend vulkan and the --gpu-debug flag, the terminal displays the following.

I also had some problems with Ubuntu's NVIDIA drivers. I would bet using 545 directly from NVIDIA works. (It does for me.)

I also had some problems with Ubuntu's NVIDIA drivers. I would bet using 545 directly from NVIDIA works. (It does for me.)
Contributor

I've been experiencing this issue for a while, and while I don't think my testing adds anything new, it can't hurt. Attached is my system info and console logs for --factory-startup --gpu-backend vulkan -d --debug-gpu, plus one with --debug-gpu-force-workarounds added. Just like the original report, a Blender window opens but is never drawn to, no crash file or dump is created, and Blender can only be closed by terminating/killing the process.

Something I find notable that may be unique to my system is that when switching away from the Blender window (click or tab to anything else), all graphics freeze for ~1 second before returning to normal. If a video is running in the background, the audio will continue as normal during the freeze, but the video (like everything else) will hitch.

Just in case it helps any, I am running Arch with the Arch-official nvidia-dkms and the associated utility packages. This is not completely identical to if I were to use the driver installer from Nvidia directly, but it is still 545.29.06 at the end of the day.

I've been experiencing this issue for a while, and while I don't think my testing adds anything new, it can't hurt. Attached is my system info and console logs for `--factory-startup --gpu-backend vulkan -d --debug-gpu`, plus one with `--debug-gpu-force-workarounds` added. Just like the original report, a Blender window opens but is never drawn to, no crash file or dump is created, and Blender can only be closed by terminating/killing the process. Something I find notable that may be unique to my system is that when switching away from the Blender window (click or tab to anything else), all graphics freeze for ~1 second before returning to normal. If a video is running in the background, the audio will continue as normal during the freeze, but the video (like everything else) will hitch. Just in case it helps any, I am running Arch with the Arch-official `nvidia-dkms` and the associated utility packages. This is not completely identical to if I were to use the driver installer from Nvidia directly, but it is still 545.29.06 at the end of the day.

Im facing the same issue on Ubuntu 20.04.6 LTS focal.

Im facing the same issue on Ubuntu 20.04.6 LTS focal.
Jeroen Bakker modified the milestone from 4.1 to 4.3 2024-03-13 16:27:21 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#114385
No description provided.