Crash switching to material preview due to incorrect free with Cycles #80042
Labels
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#80042
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.30
Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-08-23 11:17, hash:
e74ba9e09e
Worked: (newest version of Blender that worked as expected)
Short description of error
Blender crashes when switching the viewport shading to Material Preview when the material preview in the material properties isn't properly rendered yet.
This was tested on a debug build.
Exact steps for others to reproduce the error
Switch to another preview shape like the sphere and before it displays the change, switch the viewport shading to Material Preview.
Added subscriber: @rjg
Crash material preview due to incorrect free with Cyclesto Crash switching to material preview due to incorrect free with CyclesAdded subscriber: @PetterLundh
Added subscriber: @mano-wii
When you say "before it displays the change", is it before the samples are complete or before the image appears?
I cannot reproduce the problem:
Before the image appears. That's at least how I could quite reliably reproduce it on my system. I was using a debug build and the rendering was therefore slower, which allowed me to do this.
I'm not sure if this is relevant, but I've also just used the default material.
I also can't reproduce the problem in Debug Build.
Operating system: Windows-10-10.0.18941 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.13596 Core Profile Context 20.10.19.02 27.20.1019.2002
@mano-wii Did you check with the same commit or latest master?
Tested with the latest master
Added subscriber: @iss
Also can't repro on master
This is still reproducible for me with the latest master and the same steps.
I can try to investigate the cause, but I'm currently quite busy so this will have to wait to until the weekend.
Added subscribers: @Stefan_Werner, @brecht
@Stefan_Werner, I guess there is some issue in the Embree freeing code, maybe in cases where rendering is aborted before the BVH is built?
It won't crash every time, but this crash is reproducible:
The cause is that all Cycles instances share the same Embree device, but use separate ccl::Stats objects. Embree's memory callback can then end up contributing to the wrong Stats object, or worst case, run into an invalid pointer.
Changed status from 'Needs Triage' to: 'Confirmed'
@Stefan_Werner @brecht I'm marking this as confirmed with high priority then, if that's ok?
This issue was referenced by blender/cycles@95c087c47b
This issue was referenced by
918ef5f835
This issue was referenced by
009971ba7a
Changed status from 'Confirmed' to: 'Resolved'
@Stefan_Werner Works like a charm. Thank you for the bug fix.