Segfaulting on exit when rendering with command line and HIP GPU compute on linux #100160

Closed
opened 2022-08-02 23:52:17 +02:00 by gabe2252 · 14 comments

System Information
Operating system: Linux-5.15.0-41-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: AMD Radeon RX 5700 XT (navi10, LLVM 14.0.1, DRM 3.46, 5.15.0-41-generic) AMD 4.6 (Core Profile) Mesa 22.1.0-devel

Blender Version
Broken: version: 3.2.1, branch: master, commit date: 2022-07-05 15:44, hash: a2d59b2dac
Works: 3.3, 3.4

Short description of error
When rendering headless on the command line with HIP GPU compute on Ubuntu 20.04.4 blender segfaults when exiting.

Exact steps for others to reproduce the error

  1. Enable HIP compute in user preferences.
  2. Save default scene with GPU-compute enabled.
  3. Render scene in command line mode. I used "blender -b untitled.blend -f 1" for a blend file in my home folder.
  4. Blender segfaults after blender quit and exits with exit code 139. Blender also writes a blank crash file.

crash.png

**System Information** Operating system: Linux-5.15.0-41-generic-x86_64-with-glibc2.31 64 Bits Graphics card: AMD Radeon RX 5700 XT (navi10, LLVM 14.0.1, DRM 3.46, 5.15.0-41-generic) AMD 4.6 (Core Profile) Mesa 22.1.0-devel **Blender Version** Broken: version: 3.2.1, branch: master, commit date: 2022-07-05 15:44, hash: `a2d59b2dac` Works: 3.3, 3.4 **Short description of error** When rendering headless on the command line with HIP GPU compute on Ubuntu 20.04.4 blender segfaults when exiting. **Exact steps for others to reproduce the error** 1. Enable HIP compute in user preferences. 2. Save default scene with GPU-compute enabled. 3. Render scene in command line mode. I used "blender -b untitled.blend -f 1" for a blend file in my home folder. 4. Blender segfaults after blender quit and exits with exit code 139. Blender also writes a blank crash file. ![crash.png](https://archive.blender.org/developer/F13332285/crash.png)
Author

Added subscriber: @gabe2252

Added subscriber: @gabe2252
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

RDNA 1 GPUs like the one you have are known to cause some issue, see #97591.
Does it crash for every scene or just some of them? Does it render scenes without textures like the default cube?

Can you try a daily Build and check if it correctly writes a crash log? https://builder.blender.org/
Which driver version do you have installed for HIP?

RDNA 1 GPUs like the one you have are known to cause some issue, see #97591. Does it crash for every scene or just some of them? Does it render scenes without textures like the default cube? Can you try a daily Build and check if it correctly writes a crash log? https://builder.blender.org/ Which driver version do you have installed for HIP?
Author
  1. It crashes for every scene but only when rendered in cli mode. It works fine in the normal gui mode.

  2. I just tried 3.4.0 Alpha, branch: master, commit date: 2022-08-02 21:51, hash: fc1a53eb7b and it does not have the bug.

  3. I'm using 22.20 of the amd driver.

1. It crashes for every scene but only when rendered in cli mode. It works fine in the normal gui mode. 2. I just tried 3.4.0 Alpha, branch: master, commit date: 2022-08-02 21:51, hash: `fc1a53eb7b` and it does not have the bug. 3. I'm using 22.20 of the amd driver.
Member

Could you also try 3.3 if you have the time? Since this is the next version to be released.
And if it crashes, attach the crash report.

Could you also try 3.3 if you have the time? Since this is the next version to be released. And if it crashes, attach the crash report.
Author

Alright, I tried the 3.2.2 and 3.3 builds and it's fixed in the 3.3 but not in the 3.2.2 build.

Alright, I tried the 3.2.2 and 3.3 builds and it's fixed in the 3.3 but not in the 3.2.2 build.
Member

I am not sure if we will have another corrective release for 3.2, did 3.2.2 write any meaningful crash report by any chance?

I am not sure if we will have another corrective release for 3.2, did 3.2.2 write any meaningful crash report by any chance?
Author

No, it's also a blank text file. I'm fine with waiting until 3.3.

No, it's also a blank text file. I'm fine with waiting until 3.3.
Member

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

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

I will tag 3.2 for now and leave the report open until we know more about the potential corrective release.

I will tag 3.2 for now and leave the report open until we know more about the potential corrective release.

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Thomas Dinges self-assigned this 2022-08-04 10:16:22 +02:00

There won't be any further 3.2.x release. As it's working in 3.3, I consider the issue resolved. Thanks for the report.

There won't be any further 3.2.x release. As it's working in 3.3, I consider the issue resolved. Thanks for the report.
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
3 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#100160
No description provided.