Fix #119444, #118709: Crash in OIDN GPU detection for unsupported HIP device #119448

Closed
Brecht Van Lommel wants to merge 2 commits from brecht/blender:fix-oidn-hip into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

Another attempt, since the previous fix was not enough. This disable OIDN for
HIP entirely if any unsupported HIP device is present.

Changing the device initialization order I think is a risky change, and I'd
really rather not do it at this point in the release cycle.

Another attempt, since the previous fix was not enough. This disable OIDN for HIP entirely if any unsupported HIP device is present. Changing the device initialization order I think is a risky change, and I'd really rather not do it at this point in the release cycle.
Brecht Van Lommel force-pushed fix-oidn-hip from a5e5a8fc4a to daa8e28215 2024-03-14 05:11:16 +01:00 Compare
Brecht Van Lommel force-pushed fix-oidn-hip from daa8e28215 to 0ca76e9f34 2024-03-14 05:17:22 +01:00 Compare
Author
Owner

@blender-bot package windows-amd64 linux

@blender-bot package windows-amd64 linux
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR119448) when ready.
Author
Owner

This fix isn't correct because we will just initialize e.g. OptiX devices, without running the code that detects if there are unsupported HIP devices.

The issue is that I do not want to run HIP initialization at all if HIP was not selected, because we've had issues in the past where drivers would crash, also before OIDN. But in order to detect which devices may crash OIDN when initializing an OptiX device, we have to initialize HIP...

So at the moment I don't have a good Cycles side fix for this. I guess what we'd need is some way for OIDN to initialize individual device types instead of all of them at once.

This fix isn't correct because we will just initialize e.g. OptiX devices, without running the code that detects if there are unsupported HIP devices. The issue is that I do not want to run HIP initialization at all if HIP was not selected, because we've had issues in the past where drivers would crash, also before OIDN. But in order to detect which devices may crash OIDN when initializing an OptiX device, we have to initialize HIP... So at the moment I don't have a good Cycles side fix for this. I guess what we'd need is some way for OIDN to initialize individual device types instead of all of them at once.
First-time contributor

Package build started. Download here when ready.

Thank you for your work. This build still crashes for me. Tell me if there is anything I can provide, I will be glad to help

> Package build started. [Download here](https://builder.blender.org/download/patch/PR119448) when ready. Thank you for your work. This build still crashes for me. Tell me if there is anything I can provide, I will be glad to help
First-time contributor

Updated AMD Radeon drivers and it works now without crashes. Thank you!

Updated AMD Radeon drivers and it works now without crashes. Thank you!
Brecht Van Lommel added 1 commit 2024-03-14 12:33:31 +01:00
Author
Owner

Abandoning this fix, most likely we'll go with a driver version check instead.

Abandoning this fix, most likely we'll go with a driver version check instead.

Pull request closed

Sign in to join this conversation.
No reviewers
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#119448
No description provided.