Regression: GPU subdivision crash when switched to edit mode #98813
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
9 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#98813
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.19043-SP0 64 Bits
Graphics card: Intel(R) UHD Graphics 620 Intel 4.5.0 - Build 27.20.100.9664
Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash:
e05e1e3691
Crash caused by
0609b4bb49
Short description of error
Crash when switched to edit mode with cylinder subdivision modifier
Exact steps for others to reproduce the error
Cylinder.001
Test File:
kobliha.blend
Added subscriber: @Blahoslav-Fajmon
#99911 was marked as duplicate of this issue
#99901 was marked as duplicate of this issue
#99645 was marked as duplicate of this issue
#99537 was marked as duplicate of this issue
#99538 was marked as duplicate of this issue
#99506 was marked as duplicate of this issue
#99227 was marked as duplicate of this issue
#99074 was marked as duplicate of this issue
#99012 was marked as duplicate of this issue
#99011 was marked as duplicate of this issue
#98964 was marked as duplicate of this issue
#98963 was marked as duplicate of this issue
#98872 was marked as duplicate of this issue
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Confirmed'
Thanks for the report. I can repro crash locally in 3.2, 3.3.
Doesn't crash in 3.1 so definitely a regression.
Will do the
git bisect
Crash - edit mode + subdivisionto Regression: GPU subdivision crash when switched to edit modeAdded subscriber: @kevindietrich
Crash seems to occur only when object data is shared with other.
In attached file, object's data is shared with GN tree of
Poleva
object. Removing that from node tree also solves the issuecc @kevindietrich
Added subscriber: @brecht
Crash caused by
0609b4bb49
@brecht ^
The problem is that
Cylinder.001
is being instanced by geometry nodes. Or rather, its evaluated mesh is being instanced, and the object used for rendering is thePoleva
, notCylinder.001
. Then in the draw manager it tries to find the subdivision modifier on thePoleva
object, but it's not there.This problem predates my fix, but would show the object without subdivision instead of crashing.
This issue was referenced by
a8c92331cb
This issue was referenced by
ca9d65cc97
Added subscriber: @HooglyBoogly
Isn't the idea to cache the subdivision level and any other relevant information from the modifier when creating the subdivision surface wrapper mesh? In that case the drawing code shouldn't need to search for a modifier on the mesh, all the information should already be accessible.
The
Subdiv
struct, containing the subdivision data structures from OpenSubdiv among other things is cached in the modifier. Maybe it could be moved to the mesh runtime without complicating the modifier code.I'm working on a fix...
Added subscriber: @GloombyBoy
Changed status from 'Confirmed' to: 'Resolved'
Added subscribers: @razorshark566, @deadpin
Added subscriber: @JBogey
Added subscriber: @chamakits
Added subscriber: @jafarmshodik
Removed subscriber: @GloombyBoy
Added subscriber: @ColumnaeV
Added subscriber: @CountChocula95
Added subscriber: @Tiffa
Added subscriber: @b4hire
Added subscriber: @kevsowul
Added subscriber: @jawhawk
Added subscribers: @kawkoo, @OmarEmaraDev
Added subscriber: @IsabellaHH