Choosing HIP as Render Device Option causes immediate crash on Linux #98719

Closed
opened 2022-06-09 11:42:35 +02:00 by Bruce Carbon Lakeriver · 12 comments

System Information
Operating system: Linux-5.18.2-zen1-1-zen-x86_64-with-glibc2.35 64 Bits
Graphics card: AMD Radeon RX 6800 XT (sienna_cichlid, LLVM 13.0.1, DRM 3.46, 5.18.2-zen1-1-zen) AMD 4.6 (Core Profile) Mesa 22.1.1

Blender Version
Broken: version: 3.2.0, branch: makepkg (modified), commit date: 2022-06-08 10:22, hash: e05e1e3691
Worked: (newest version of Blender that worked as expected)

Short description of error

Choosing HIP in the systems cycles render devices options causes the immediate crash of blender.

Exact steps for others to reproduce the error
Just use the latest AMD driver on an AMD Radeon RX 6800 XT open blender (with the default cube) and chose HIP as render system on Linux, I could repeat the crash in 100% of my attempts. With the same results in the log (see below).

My log file:

# Blender 3.2.0, Commit date: 2022-06-08 10:22, Hash e05e1e369187

# backtrace
blender(BLI_system_backtrace+0x38) [0x55a652b16eb8]
blender(+0xff0ef6) [0x55a651e44ef6]
/usr/lib/libc.so.6(+0x3e8e0) [0x7fcb439b58e0]
blender(hipGetDeviceProperties+0) [0x55a6568d7640]

# Python backtrace
File "/usr/share/blender/3.2/scripts/addons/cycles/properties.py", line 1419 in get_devices_for_type
File "/usr/share/blender/3.2/scripts/addons/cycles/properties.py", line 1526 in draw_impl
File "/usr/share/blender/3.2/scripts/startup/bl_ui/space_userpref.py", line 589 in draw_centered
File "/usr/share/blender/3.2/scripts/startup/bl_ui/space_userpref.py", line 156 in draw

The hipGetDeviceProperties+ might cause the crash. Any other software I'm using with my GPU works very well, like video editors (Resolve 17 (OpenCL and other API's on GPU) or even games (vulkan layers, dxvk). My driver is installed properly and updated to the latest version. If there is a method to give more verbosity to blender I'll be happy to try and show you the extended log.
Forcing blender to start with progl doesn't work either because blender wouldn't start et all with this flag. Also my system is stable and not overclocked.

**System Information** Operating system: Linux-5.18.2-zen1-1-zen-x86_64-with-glibc2.35 64 Bits Graphics card: AMD Radeon RX 6800 XT (sienna_cichlid, LLVM 13.0.1, DRM 3.46, 5.18.2-zen1-1-zen) AMD 4.6 (Core Profile) Mesa 22.1.1 **Blender Version** Broken: version: 3.2.0, branch: makepkg (modified), commit date: 2022-06-08 10:22, hash: `e05e1e3691` Worked: (newest version of Blender that worked as expected) **Short description of error** Choosing HIP in the systems cycles render devices options causes the immediate crash of blender. **Exact steps for others to reproduce the error** Just use the latest AMD driver on an AMD Radeon RX 6800 XT open blender (with the default cube) and chose HIP as render system on Linux, I could repeat the crash in 100% of my attempts. With the same results in the log (see below). **My log file:** ``` # Blender 3.2.0, Commit date: 2022-06-08 10:22, Hash e05e1e369187 # backtrace blender(BLI_system_backtrace+0x38) [0x55a652b16eb8] blender(+0xff0ef6) [0x55a651e44ef6] /usr/lib/libc.so.6(+0x3e8e0) [0x7fcb439b58e0] blender(hipGetDeviceProperties+0) [0x55a6568d7640] # Python backtrace File "/usr/share/blender/3.2/scripts/addons/cycles/properties.py", line 1419 in get_devices_for_type File "/usr/share/blender/3.2/scripts/addons/cycles/properties.py", line 1526 in draw_impl File "/usr/share/blender/3.2/scripts/startup/bl_ui/space_userpref.py", line 589 in draw_centered File "/usr/share/blender/3.2/scripts/startup/bl_ui/space_userpref.py", line 156 in draw ``` The hipGetDeviceProperties+ might cause the crash. Any other software I'm using with my GPU works very well, like video editors (Resolve 17 (OpenCL and other API's on GPU) or even games (vulkan layers, dxvk). My driver is installed properly and updated to the latest version. If there is a method to give more verbosity to blender I'll be happy to try and show you the extended log. Forcing blender to start with progl doesn't work either because blender wouldn't start et all with this flag. Also my system is stable and not overclocked.

Added subscriber: @BruceCabron

Added subscriber: @BruceCabron

I might add the terminal log:

Read prefs: ~/.config/blender/3.2/config/userpref.blend
Writing: /tmp/blender.crash.txt
fish: Job 1, 'blender' terminated by signal SIGSEGV (Adressbereichsfehler)
I might add the terminal log: ``` Read prefs: ~/.config/blender/3.2/config/userpref.blend Writing: /tmp/blender.crash.txt fish: Job 1, 'blender' terminated by signal SIGSEGV (Adressbereichsfehler) ```
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Can you attach the Help > Save System Info file?
Which version of the driver are you using?

Can you attach the Help > Save System Info file? Which version of the driver are you using?

Sure SytemInfo.txt: system-info.txt

Details to my driver:

2f:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 04f2
Flags: bus master, fast devsel, latency 0, IRQ 46, IOMMU group 25
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at e0000000 (64-bit, prefetchable) [size=2M]
I/O ports at f000 [size=256]
Memory at fca00000 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: amdgpu
Kernel modules: amdgpu

Package Versions of the driver (+ProGL Lib):
amdpgu opencl: 21.50.50000.1376259-3
amdgpu xf86-video-amdgpu: 22.0.0-1
amdgpu-pro-libgl: 22.10_1395274-1

Edit:

GPU:
====================================

renderer: 'AMD Radeon RX 6800 XT (sienna_cichlid, LLVM 13.0.1, DRM 3.46, 5.18.2-zen1-1-zen)'
vendor: 'AMD'
version: '4.6 (Core Profile) Mesa 22.1.1'
Sure SytemInfo.txt: [system-info.txt](https://archive.blender.org/developer/F13141426/system-info.txt) **Details to my driver:** ``` 2f:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c1) (prog-if 00 [VGA controller]) Subsystem: ASUSTeK Computer Inc. Device 04f2 Flags: bus master, fast devsel, latency 0, IRQ 46, IOMMU group 25 Memory at d0000000 (64-bit, prefetchable) [size=256M] Memory at e0000000 (64-bit, prefetchable) [size=2M] I/O ports at f000 [size=256] Memory at fca00000 (32-bit, non-prefetchable) [size=1M] Expansion ROM at 000c0000 [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: amdgpu Kernel modules: amdgpu ``` **Package Versions of the driver (+ProGL Lib):** amdpgu opencl: 21.50.50000.1376259-3 amdgpu xf86-video-amdgpu: 22.0.0-1 amdgpu-pro-libgl: 22.10_1395274-1 Edit: ``` GPU: ==================================== renderer: 'AMD Radeon RX 6800 XT (sienna_cichlid, LLVM 13.0.1, DRM 3.46, 5.18.2-zen1-1-zen)' vendor: 'AMD' version: '4.6 (Core Profile) Mesa 22.1.1' ```
Member

I assume this is the package from Arch or AUR. Does this issue happen in builds downloaded from Blender? https://builder.blender.org/

I assume this is the package from Arch or AUR. Does this issue happen in builds downloaded from Blender? https://builder.blender.org/

I'm not sure, during the install of my Garuda Linux (Arch based) I just had to tick a box for blender ^^.
I gonna try https://builder.blender.org and report to you to verify the source of the issue.

I'm not sure, during the install of my Garuda Linux (Arch based) I just had to tick a box for blender ^^. I gonna try https://builder.blender.org and report to you to verify the source of the issue.

In #98719#1371426, @OmarEmaraDev wrote:
I assume this is the package from Arch or AUR. Does this issue happen in builds downloaded from Blender? https://builder.blender.org/

Tried with official blender 3.2 package right now with the exact same result.
Console log:

Read prefs: ~/.config/blender/3.2/config/userpref.blend
Writing: /tmp/blender.crash.txt
fish: Job 1, 'blender' terminated by signal SIGSEGV (Adressbereichsfehler)
> In #98719#1371426, @OmarEmaraDev wrote: > I assume this is the package from Arch or AUR. Does this issue happen in builds downloaded from Blender? https://builder.blender.org/ Tried with official blender 3.2 package right now with the exact same result. Console log: ``` Read prefs: ~/.config/blender/3.2/config/userpref.blend Writing: /tmp/blender.crash.txt fish: Job 1, 'blender' terminated by signal SIGSEGV (Adressbereichsfehler) ```
Member

According to the documentation, we need the 22.10 / ROCm 5.1 driver for Linux. https://docs.blender.org/manual/en/3.2/render/cycles/gpu_rendering.html#hip-amd.
While you seem to have only 21.50.50000.1376259-3. The AUR package is at 22.10.3.50103-1. So maybe use that? https://aur.archlinux.org/packages/opencl-amd.
Though I am not sure if that will work fine on Garuda.

According to the documentation, we need the 22.10 / ROCm 5.1 driver for Linux. https://docs.blender.org/manual/en/3.2/render/cycles/gpu_rendering.html#hip-amd. While you seem to have only 21.50.50000.1376259-3. The AUR package is at 22.10.3.50103-1. So maybe use that? https://aur.archlinux.org/packages/opencl-amd. Though I am not sure if that will work fine on Garuda.

Hello and thank you Omar!

I feel bad now for assuming a bug while Octopi betrayed me. I just let paru make the updates and out of the sudden there are new packages available.
I got the error message for "HIP toolkit not found" which is absolutely okay. I found all those packages and they are currently in the install queue. No crashes anymore!

Thank you for your kind help and all my apologies for this mistakenly done bug report :(

I love blender and what you guys made out of it. I'm in since the first famous doughnut tutorial made by blenderguru - keep on the good work and again my big apologies for stealing time.

Bruce

Hello and thank you Omar! I feel bad now for assuming a bug while Octopi betrayed me. I just let paru make the updates and out of the sudden there are new packages available. I got the error message for "HIP toolkit not found" which is absolutely okay. I found all those packages and they are currently in the install queue. No crashes anymore! Thank you for your kind help and all my apologies for this mistakenly done bug report :( I love blender and what you guys made out of it. I'm in since the first famous doughnut tutorial made by blenderguru - keep on the good work and again my big apologies for stealing time. Bruce
Member

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
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 project
No Assignees
2 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#98719
No description provided.