Lack of "Unsupported GPU" GUI message when Blender crashes on startup on linux. #126136
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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 project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#126136
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Void Linux (x86_64-glibc)
Graphics card:
glxinfo -B
Blender Version
Broken: (4.0.2, main,
9be62e85b7
, 2023-12-05)Worked: (I have no idea, it's the first time I use Blender)
Short description of error
You launch the application from the terminal, it crashes.
Content of
blender.crash.txt
.blender.crash.txt
Terminal output with debug symbols when loaded in gdb (
gdb blender
).gdb blender
Terminal output from
blender --debug-all
.blender --debug-all
The same error appears from the Blender flatpak, so it's probably not a building/packaging issue.
It's also worth noting that I don't own a card that can run Blender.
Here is a downstream reference link with the issue: https://github.com/void-linux/void-packages/issues/49763. There are some pointers there on where the issue may lay from @fruitiestPunch.
Exact steps for others to reproduce the error
Try to run Blender >= 4.0.0 on an unsupported GPU (VM with no GPU passthrough will do nicely).
Your GPU is too old for the current version of Blender (See our requirements page)
According to the requirements you need a GCN1 or newer AMD GPU, but you have a Terrascale GPU, which is lower than these requirements.
To fix this issue, you will need to get a newer GPU, or use a older version of Blender: https://download.blender.org/release/
I dug a little and compared Blender 4.0.1 with Blender 3.6.12 (this one and v3.3. work for me) and
GPU_context_active_set(static_cast<GPUContext *>(win->gpuctx));
lead me to
9be62e85b7/source/blender/gpu/GPU_context.h (L65)
where even the doc string states that it can be NULL (in v4 and v3.6).
This only difference is the STATIC_CASTING in v4.
I think
GHOST_CreateWindow
fails in v4, because it usesgpuSettings
(9be62e85b7/source/blender/windowmanager/intern/wm_window.cc (L734C7-L734C18)
) for the first time. Before it wasglSettings
(626a6b1c67/source/blender/windowmanager/intern/wm_window.c (L692)
).This would be in line with what @MechDR said about PCs without GPU Passthrough.
I hope this helps in any way
Sorry, I may of been too quick closing this issue. I will reopen it for someone else to review.
So the bug that's being reported is that Blender crashes on unsupported GPUs, when ideally a error message explain that the GPU is unsupported would be better (and already exists on Windows and maybe Linux)?
Blender crashes on startupto Blender crashes on startup with unsupported GPU@Alaska Exactly. I really had no idea that my GPU wasn't supported, it's the first time I've run Blender, ever, I though it will probably show an error message that the GPU is not supported, but instead, I just got that. With digging, yes, you can find out that the unsupported GPU is the problem, but that shouldn't be so hard to find out.
@Alaska Thankf for re-opening the issue.
It's not about the error message, although that would be helpful at least.
The problem is that
gpuSettings
andglSettings
are almost identical in functionality, withgpuSettings
having more features (as far as I have seen/understood), yet, in v3.6 withglSettings
my graphics chip (no dedicated graphics card) was supported and in v4 it wasn't, although the code that checks and processes the gpu stayed mostly the same.I wonder which part of the code was changed that first accepted my gpu and now doesn't anymore.
Any ideas where this might come from?
Sorry, my knowledge of this area of the code is limited. I will leave triaging or further hints on the cause of this issue to someone else.
I think it might be possible to just show a message box on linux. On windows blender does prompt you that your GPU being unsupported with a Win32
MessageBox
, there's not direct equivalent thing on x11 environment, but I think a simple message box implementation like this without involving GL would be adequate for such purposes since desktop users don't typically launch blender from terminal and they probably won't see whatever log messages are coming out fromstdout
. It can at least show simple ascii characters. Maybe a GTK/QT based message box can be doable but that would require a ton of other dependencies just for this one purpose...Blender crashes on startup with unsupported GPUto Lack of "Unsupported GPU" GUI message when Blender crashes on startup on linux.Actually there's already a simple message box implementation in blender
GHOST_SystemX11::showMessageBox
. So I guess we could just use that.