Crash on Cycles rendering using CPU #108487

Closed
opened 2023-06-01 00:56:53 +02:00 by Vitória Litwinczyk · 5 comments

System Information
Operating system: Windows 10 Pro 10.0.19045 Build 19045
Graphics card: AMD Radeon RX 6600 XT, AMD Adrenalin driver version 23.5.1 (Up to date as of today)

Blender Version
Broken: 3.51, 2023-04-24 18:11, e1ccd9d4ald3, branch blender-v3.5-release
Worked: Unknown, hadn't tested with Cycles on this project before now.

Short description of error
A project I've been working on crashes if I try to render it using either CPU or HIP with Cycles.
Sometimes it'll softlock into "Updating Images" or "Updating Shaders", not freezing until I give up and try to cancel the render (be it by cancelling the render or switching from Render View on the viewport)., but most of the times just crashing Blender.
I can get renders to work in Cycles on the startup file and on separate project I have. It seems like something specific on this project is what causes the crash.

Exact steps for others to reproduce the error

Open the project and either attempt to render with F12 or switch into Render View in Cycles. Happens both with CPU render and GPU render.

**System Information** Operating system: Windows 10 Pro 10.0.19045 Build 19045 Graphics card: AMD Radeon RX 6600 XT, AMD Adrenalin driver version 23.5.1 (Up to date as of today) **Blender Version** Broken: 3.51, 2023-04-24 18:11, e1ccd9d4ald3, branch blender-v3.5-release Worked: Unknown, hadn't tested with Cycles on this project before now. **Short description of error** A project I've been working on crashes if I try to render it using either CPU or HIP with Cycles. Sometimes it'll softlock into "Updating Images" or "Updating Shaders", not freezing until I give up and try to cancel the render (be it by cancelling the render or switching from Render View on the viewport)., but most of the times just crashing Blender. I can get renders to work in Cycles on the startup file and on separate project I have. It seems like something specific on this project is what causes the crash. **Exact steps for others to reproduce the error** Open the project and either attempt to render with F12 or switch into Render View in Cycles. Happens both with CPU render and GPU render.
Vitória Litwinczyk added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-06-01 00:56:54 +02:00
Member

Can redo the crash on rendering with CPU device (verified in 4.0)

Can redo the crash on rendering with CPU device (verified in 4.0)
Member

@Vitoria hi, could you simplify the file further? Remove object, unlink/delete additional materials/textures, etc. This will help in further investigation.
(I'll also try to simplify the file)

@Vitoria hi, could you simplify the file further? Remove object, unlink/delete additional materials/textures, etc. This will help in further investigation. (I'll also try to simplify the file)
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-06-01 06:28:33 +02:00
Pratik Borhade changed title from Crash on Cycles rendering using HIP (CPU and GPU) to Crash on Cycles rendering using CPU 2023-06-01 06:28:59 +02:00

So I'm doing some tests here on my end.

image

These are the collections that I'm trying to render. I noticed I can render the 'char', 'staff' and 'env' collections without a crash through render preview. 'backpack' and 'accessories' are the ones which crash.

Update: I just got 'backpack' render for a few moments, could even move the viewport camera, before it crashed.

It seems like it's the amount of textures crashing it, thing is these textures are quite low resolution, and with the great majority of them it's just diffuse, a few have alphas, and then a few are a bit more complex, this is nothing compared to a big PBR scene in terms of texture numbers, especially since the highest res textures in this project are 256x256.

Another guess I have is that it's because they're PSD files? I was loading those in because I like texturing in 2D in Photoshop and then just refreshing the texture in Blender to see the result.

So I'm doing some tests here on my end. ![image](/attachments/06505d8d-6506-43d8-8462-43611a5e07ac) These are the collections that I'm trying to render. I noticed I can render the 'char', 'staff' and 'env' collections without a crash through render preview. 'backpack' and 'accessories' are the ones which crash. Update: I just got 'backpack' render for a few moments, could even move the viewport camera, before it crashed. It seems like it's the amount of textures crashing it, thing is these textures are quite low resolution, and with the great majority of them it's just diffuse, a few have alphas, and then a few are a bit more complex, this is nothing compared to a big PBR scene in terms of texture numbers, especially since the highest res textures in this project are 256x256. Another guess I have is that it's because they're PSD files? I was loading those in because I like texturing in 2D in Photoshop and then just refreshing the texture in Blender to see the result.
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-06-07 09:00:36 +02:00

I can confirm crash. It the best simplified version of user file. Just one head model, material with 2 psd texture images (unused), camera.
Crash became more secretive. You need to play with Esc and F12 a lot of time to get it without stack.

I can confirm crash. It the best simplified version of user file. Just one head model, material with 2 `psd` texture images (unused), camera. Crash became more secretive. You need to play with `Esc` and `F12` a lot of time to get it without stack.

Based on Pratik's callstack and Iliya's repro that also has PSD textures, I'm fairly certain this is a problem in the external library we use to load that format. They were able to make a fix but Blender will need to update our libraries so I'll confirm this.

The OpenImageIO bug was: https://github.com/OpenImageIO/oiio/issues/3824 and fixed by https://github.com/OpenImageIO/oiio/pull/3877

Based on Pratik's callstack and Iliya's repro that also has PSD textures, I'm fairly certain this is a problem in the external library we use to load that format. They were able to make a fix but Blender will need to update our libraries so I'll confirm this. The OpenImageIO bug was: https://github.com/OpenImageIO/oiio/issues/3824 and fixed by https://github.com/OpenImageIO/oiio/pull/3877
Jesse Yurkovich added
Module
Core
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-06-14 22:22:09 +02:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-06-14 22:37:49 +02: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
4 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#108487
No description provided.