Bug 2249261 - Blender + HIP + mesa crashing on Radeon RX 6650 (RDNA2)
Summary: Blender + HIP + mesa crashing on Radeon RX 6650 (RDNA2)
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: blender
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-11 18:51 UTC by Luke
Modified: 2023-12-04 01:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Luke 2023-11-11 18:51:28 UTC
Hello,

I've been trying to run Blender rendering on GPU. I tried couple of weeks ago on Fedora 38 and today after fresh upgrade to Fedora 39. I've installed Blender from repositories. After intalling `rocm-hip` package the GPU becomes listed as available in Blender GPU rendering properties. It. Crashes. Every. Single. Time.

Now, the interesting part is: If I run Blender via `distrobox` (installed in an Arch Linux container) it all works beautifully! Here's the link to a hack/workaround: https://www.reddit.com/r/Fedora/comments/11qh9j3/getting_bender_hip_to_work/

Is `rocm-hip` in Fedora not the equivalent of `hip-runtime-amd` from Arch? Is there a way of getting GPU rendering in Blender on Fedora with Mesa drivers and HIP? Because as proved - it does work on this hardware + mesa + blender

Blender from F39 repo: 3.6.4
Blender in Arch container: 3.6.5

I've tried also installing Blender 3.6.5 from Rawhide but same exact thing happens - Blender crashing

Reproducible: Always

Steps to Reproduce:
1. dnf install blender rocm-hip
2. Open up Blender, go to Edit -> Preferences -> System -> Cycles rendering devices -> HIP, Radeon RDNA2 GPU ticked
3. Close it. Go to Render properties on the right bottom pane, select Render engine: Cycles, Feature set: Supported, Device: GPU Compute, press F12
4. Press F12 and Blender will crash right away. If you're unlucky it'll crash at step 2
Actual Results:  
Blender crash

Expected Results:  
Blender doesn't crash

Comment 1 Luya Tshimbalanga 2023-11-14 04:28:40 UTC
Hello Luke,
Yes currently, rocm-hip is the equivalent of hip-runtime-amd used on Blender. The issue is reported on both upstream blender (https://projects.blender.org/blender/blender/issues/109431) and rocclr (#2216594).

Comment 2 Luke 2023-11-14 10:29:41 UTC
How can it be the upstream issue if the same software on the same hardware works on *different distribution*? Not even that, it's a container running on Fedora so in both cases it's the same kernel. All that's "different" is the Blender build and hip runtime. Have you identified the problem and are sure it's not a packaging/compiling problem?

Comment 3 Luya Tshimbalanga 2023-11-18 01:16:16 UTC
(In reply to Luke from comment #2)
> How can it be the upstream issue if the same software on the same hardware
> works on *different distribution*? Not even that, it's a container running
> on Fedora so in both cases it's the same kernel. All that's "different" is
> the Blender build and hip runtime. Have you identified the problem and are
> sure it's not a packaging/compiling problem?

Not exactly working on different distribution as highlighted on https://projects.blender.org/blender/blender/issues/100353. Additionally, Fedora build system has enabled security features. The problem is mainly HIP related hence the report to rocclr. More test needed to debug the root cause.

Comment 4 James 2023-12-04 01:28:31 UTC
I am having the same problem with F39

Name:                    gfx1031                            
  Uuid:                    GPU-XX                             
  Marketing Name:          AMD Radeon RX 6700 XT              
  Vendor Name:             AMD                                
  Feature:                 KERNEL_DISPATCH                    
  Profile:                 BASE_PROFILE                       
  Float Round Mode:        NEAR                               
  Max Queue Number:        128(0x80)                          
  Queue Min Size:          64(0x40)                           
  Queue Max Size:          131072(0x20000)                    
  Queue Type:              MULTI                              
  Node:                    2                                  
  Device Type:             GPU    

kernel: 6.6.2-201.fc39.x86_64

The system crashed when it tried to render cycles with the GPU.


Note You need to log in before you can comment on or make changes to this bug.