Running multiple instances of Cycles HIP ends in segfault #93762

Open
opened 2021-12-06 19:54:17 +01:00 by Mike Pan · 7 comments

System Information
Operating system: Windows 10
Graphics card: 2x Radeon W6800 32GB

Blender Version
Broken: 3.0.0, 3788003cda, master, 2021-11-30
Worked: Never

Short description of error
When I have 2 instances of Cycles rendering using HIP at the same time on a particular production scene, one instance will crash with the following error:

...
Fra:441 Mem:8965.99M (Peak 8965.99M) | Time:00:21.57 | Mem:1469.81M, Peak:1469.81M | Scene, View Layer | Updating Images | Loading Scene2_Garage_Furniture_Roughness.png
Fra:441 Mem:8965.99M (Peak 8965.99M) | Time:00:21.70 | Mem:1533.81M, Peak:1533.81M | Scene, View Layer | Updating Images | Loading Metal02_nrm.jpg
Fra:441 Mem:8965.99M (Peak 8965.99M) | Time:00:21.73 | Mem:1569.81M, Peak:1569.81M | Scene, View Layer | Updating Images | Loading Scene2_Garage_Objects_normal.png
Fra:441 Mem:9030.99M (Peak 9030.99M) | Time:00:21.73 | Mem:1570.69M, Peak:1570.69M | Scene, View Layer | Updating Images | Loading Tires_rough.png
Malloc returns null: len=37748736 in Cycles Aligned Alloc, total 1149156740
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FFED98C853D
Module  : amdhip64.dll
Thread  : 00000734

Exact steps for others to reproduce the error
I was unable to reproduce it in a simple scene or any commonly available demo scenes such as classroom or Barbarshop. And unfortunately I cannot share the particular scene that's causing the issue. But the scale of the scene that's crashing should easily fit onto the GPU vram three times.

I've attached the crash report. If more info is needed I will try to create a dummy scene that show the same behavior.

Anim-A-Garage.crash.txt

**System Information** Operating system: Windows 10 Graphics card: 2x Radeon W6800 32GB **Blender Version** Broken: 3.0.0, 3788003cdaeb, master, 2021-11-30 Worked: Never **Short description of error** When I have 2 instances of Cycles rendering using HIP at the same time on a particular production scene, one instance will crash with the following error: ``` ... Fra:441 Mem:8965.99M (Peak 8965.99M) | Time:00:21.57 | Mem:1469.81M, Peak:1469.81M | Scene, View Layer | Updating Images | Loading Scene2_Garage_Furniture_Roughness.png Fra:441 Mem:8965.99M (Peak 8965.99M) | Time:00:21.70 | Mem:1533.81M, Peak:1533.81M | Scene, View Layer | Updating Images | Loading Metal02_nrm.jpg Fra:441 Mem:8965.99M (Peak 8965.99M) | Time:00:21.73 | Mem:1569.81M, Peak:1569.81M | Scene, View Layer | Updating Images | Loading Scene2_Garage_Objects_normal.png Fra:441 Mem:9030.99M (Peak 9030.99M) | Time:00:21.73 | Mem:1570.69M, Peak:1570.69M | Scene, View Layer | Updating Images | Loading Tires_rough.png Malloc returns null: len=37748736 in Cycles Aligned Alloc, total 1149156740 Error : EXCEPTION_ACCESS_VIOLATION Address : 0x00007FFED98C853D Module : amdhip64.dll Thread : 00000734 ``` **Exact steps for others to reproduce the error** I was unable to reproduce it in a simple scene or any commonly available demo scenes such as classroom or Barbarshop. And unfortunately I cannot share the particular scene that's causing the issue. But the scale of the scene that's crashing should easily fit onto the GPU vram three times. I've attached the crash report. If more info is needed I will try to create a dummy scene that show the same behavior. [Anim-A-Garage.crash.txt](https://archive.blender.org/developer/F12699327/Anim-A-Garage.crash.txt)
Author

Added subscriber: @MikePan

Added subscriber: @MikePan
Member

Added subscribers: @BrianSavery, @lichtwerk

Added subscribers: @BrianSavery, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

@BrianSavery : can you make something out of that crash log?
(otherwise feel free to set to Needs Information from User, @MikePan : we would need some sort of reproducable case/.blend here then).

@BrianSavery : can you make something out of that crash log? (otherwise feel free to set to `Needs Information from User`, @MikePan : we would need some sort of reproducable case/.blend here then).

Added subscriber: @Sayak-Biswas

Added subscriber: @Sayak-Biswas

We work With mike on the Mercedes F1 renders this was done for I think. So he can share with us.

Can you assign to @Sayak-Biswas I am on parental leave.

We work With mike on the Mercedes F1 renders this was done for I think. So he can share with us. Can you assign to @Sayak-Biswas I am on parental leave.
Sayak Biswas was assigned by Philipp Oeser 2022-01-21 15:57:35 +01:00
Author

File shared with @Sayak-Biswas .

File shared with @Sayak-Biswas .
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:02:52 +01:00
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#93762
No description provided.