Cycles crash with edit mode and simultaneous viewport and final render #93855

Closed
opened 2021-12-08 08:02:23 +01:00 by Ehsan Nasri · 16 comments

graphics card: NVIDIA GeForce GTX 1060 6GB
Driver version: 497.09
Windows 10 Pro 64-bit 21H1
Cpu: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz 3.40 GHz
Ram: 8.00 GB

Blender 3 Portable

Hi. When using the Blender 3 and Cycles in a Edit mode. The software closes automatically after closing the rendering window. There is no such problem in the Object Mode. There is a problem in both using the CPU and the graphics card.
In mode Solid and mode Material Previw this problem does not exist and only in mode Rendered this problem exists.
There is no such problem in Blender 3 Eevee mode.
There is no such problem in lower versions of the blender.

Steps to Reproduce

  • Open default scene
  • {nav Render Engine > Cycles}
  • Switch to edit mode
  • Change Viewport shading to Rendered
  • Render Image
  • Close the tab before it completes rendering

blender.crash.txt
blender_debug_output.txt
blender_system_info.txt
Rec 12-08-21-1.mp4

graphics card: NVIDIA GeForce GTX 1060 6GB Driver version: 497.09 Windows 10 Pro 64-bit 21H1 Cpu: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz 3.40 GHz Ram: 8.00 GB Blender 3 Portable Hi. When using the Blender 3 and Cycles in a Edit mode. The software closes automatically after closing the rendering window. There is no such problem in the Object Mode. There is a problem in both using the CPU and the graphics card. In mode Solid and mode Material Previw this problem does not exist and only in mode Rendered this problem exists. There is no such problem in Blender 3 Eevee mode. There is no such problem in lower versions of the blender. **Steps to Reproduce** - Open default scene - {nav Render Engine > Cycles} - Switch to edit mode - Change Viewport shading to Rendered - Render Image - Close the tab before it completes rendering [blender.crash.txt](https://archive.blender.org/developer/F12716414/blender.crash.txt) [blender_debug_output.txt](https://archive.blender.org/developer/F12716271/blender_debug_output.txt) [blender_system_info.txt](https://archive.blender.org/developer/F12716275/blender_system_info.txt) [Rec 12-08-21-1.mp4](https://archive.blender.org/developer/F12708825/Rec_12-08-21-1.mp4)
Author

Added subscriber: @nasri

Added subscriber: @nasri

Added subscriber: @iss

Added subscriber: @iss

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

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

Can't reproduce crash here.

Please run file blender_debug_log.cmd from folder where blender.exe is located. After crash upload created files. Also check if .crash.txt file is mentioned at the bottom of debug log. If it is, upload that file too.

Can't reproduce crash here. Please run file `blender_debug_log.cmd` from folder where `blender.exe` is located. After crash upload created files. Also check if .crash.txt file is mentioned at the bottom of debug log. If it is, upload that file too.
Author
Hi. [blender.crash.txt](https://archive.blender.org/developer/F12716414/blender.crash.txt) [blender_debug_output.txt](https://archive.blender.org/developer/F12716271/blender_debug_output.txt) [blender_system_info.txt](https://archive.blender.org/developer/F12716275/blender_system_info.txt)
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

I can confirm the crash on master (1552c92fb1e7)

To reproduce crash, I did:

  • Open default scene
  • {nav Render Engine > Cycles}
  • Switch to edit mode
  • Change Viewport shading to Rendered
  • Render Image
  • Close the tab before it completes rendering
I can confirm the crash on master (`1552c92fb1e7`) To reproduce crash, I did: - Open default scene - {nav Render Engine > Cycles} - Switch to edit mode - Change Viewport shading to Rendered - Render Image - Close the tab before it completes rendering
Brecht Van Lommel changed title from Automatic closing of Blender 3 in the Cycles to Cycles crash with edit mode and simultaneous viewport and final render 2021-12-09 19:34:20 +01:00

Added subscriber: @michael64

Added subscriber: @michael64

I could also reproduce this as described above.
In this case Blender crashes in BlenderSync::find_shader
The first line

    Shader *shader = (id) ? shader_map.find(id) : default_shader;

is executed, id is true, shader_map.find(id) is called but does not find it and returns NULL.
With D13607 which simply uses the default shader this issue might be fixed.

I was wondering if maybe a material might be replaced so I added an additional new green material to the cube
but after closing the render window while it was still rendering the cube was still green.

I could also reproduce this as described above. In this case Blender crashes in BlenderSync::find_shader The first line ``` Shader *shader = (id) ? shader_map.find(id) : default_shader; ``` is executed, id is true, shader_map.find(id) is called but does not find it and returns NULL. With [D13607](https://archive.blender.org/developer/D13607) which simply uses the default shader this issue might be fixed. I was wondering if maybe a material might be replaced so I added an additional new green material to the cube but after closing the render window while it was still rendering the cube was still green.
Author

Hello. The problem still exists.

Hello. The problem still exists.

Added subscriber: @Sergey

Added subscriber: @Sergey
Sergey Sharybin self-assigned this 2022-01-11 14:27:33 +01:00

The root of the issue is deeper than a missing null-pointer check. This is actually a heap-use-after-free. The shader is not suppoed to be nullptr in this case.

The root of the issue is deeper than a missing null-pointer check. This is actually a heap-use-after-free. The shader is not suppoed to be nullptr in this case.

Added subscriber: @paulgolter

Added subscriber: @paulgolter

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

Fixed in 0f89bcdbeb.

Fixed in 0f89bcdbeb.
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
6 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#93855
No description provided.