Blender crashes if the subdivision resolution is increased #92913

Closed
opened 2021-11-08 01:37:55 +01:00 by kursad k · 6 comments
Member

System Information
Operating system: Windows 10
Graphics card: RTX 2070

Blender Version
Broken: e7e3431b29

Short description of error
Increasing the subdivision resolution of the subd modifier in the scene crashes Blender.

# Blender 3.0.0, Commit date: 2021-11-04 19:51, Hash e7e3431b2994
bpy.ops.object.modifier_apply(modifier="Subdivision")  # Operator
Saved "19304_autosave.blend"  # Info
bpy.ops.mesh.primitive_monkey_add(size=2, enter_editmode=False, align='WORLD', location=(0, 0, 0), scale=(1, 1, 1))  # Operator
bpy.ops.transform.translate(value=(3.48821, -1.4378, 0.126482), orient_axis_ortho='X', orient_type='GLOBAL', orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type='GLOBAL', mirror=False, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=1, use_proportional_connected=False, use_proportional_projected=False)  # Operator
bpy.ops.object.modifier_add(type='SUBSURF')  # Operator
bpy.ops.object.modifier_set_active(modifier="Subdivision")  # Operator
bpy.context.object.modifiers["Subdivision"].show_only_control_edges = False  # Property
Saved "19304_autosave.blend"  # Info
bpy.context.object.modifiers["Subdivision"].levels = 9  # Property

# backtrace
Exception Record:

ExceptionCode         : EXCEPTION_ACCESS_VIOLATION
Exception Address     : 0x00007FF7A9DCBE97
Exception Module      : blender.exe
Exception Flags       : 0x00000000
Exception Parameters  : 0x2
	Parameters[0] : 0x0000000000000001
	Parameters[1] : 0x0000000000000000

Stack trace:
blender.exe         :0x00007FF7A9DCBE97  Symbols not available

Loaded Modules :

# Python backtrace



19304_autosave.crash.txt

Exact steps for others to reproduce the error
Load the .blend file
Select Suzanne
Increase the viewport subdivision level to 9

19304_autosave.zip

**System Information** Operating system: Windows 10 Graphics card: RTX 2070 **Blender Version** Broken: e7e3431b2994 **Short description of error** Increasing the subdivision resolution of the subd modifier in the scene crashes Blender. ``` # Blender 3.0.0, Commit date: 2021-11-04 19:51, Hash e7e3431b2994 bpy.ops.object.modifier_apply(modifier="Subdivision") # Operator Saved "19304_autosave.blend" # Info bpy.ops.mesh.primitive_monkey_add(size=2, enter_editmode=False, align='WORLD', location=(0, 0, 0), scale=(1, 1, 1)) # Operator bpy.ops.transform.translate(value=(3.48821, -1.4378, 0.126482), orient_axis_ortho='X', orient_type='GLOBAL', orient_matrix=((1, 0, 0), (0, 1, 0), (0, 0, 1)), orient_matrix_type='GLOBAL', mirror=False, use_proportional_edit=False, proportional_edit_falloff='SMOOTH', proportional_size=1, use_proportional_connected=False, use_proportional_projected=False) # Operator bpy.ops.object.modifier_add(type='SUBSURF') # Operator bpy.ops.object.modifier_set_active(modifier="Subdivision") # Operator bpy.context.object.modifiers["Subdivision"].show_only_control_edges = False # Property Saved "19304_autosave.blend" # Info bpy.context.object.modifiers["Subdivision"].levels = 9 # Property # backtrace Exception Record: ExceptionCode : EXCEPTION_ACCESS_VIOLATION Exception Address : 0x00007FF7A9DCBE97 Exception Module : blender.exe Exception Flags : 0x00000000 Exception Parameters : 0x2 Parameters[0] : 0x0000000000000001 Parameters[1] : 0x0000000000000000 Stack trace: blender.exe :0x00007FF7A9DCBE97 Symbols not available Loaded Modules : # Python backtrace ``` [19304_autosave.crash.txt](https://archive.blender.org/developer/F11762621/19304_autosave.crash.txt) **Exact steps for others to reproduce the error** Load the .blend file Select Suzanne Increase the viewport subdivision level to 9 [19304_autosave.zip](https://archive.blender.org/developer/F11762630/19304_autosave.zip)
Author
Member

Added subscriber: @kursadk

Added subscriber: @kursadk

Added subscriber: @rboxman

Added subscriber: @rboxman

You are most likely out of memory, a condition for which blender is not designed to recover from in many situations. A level 9 subdivided suzanne is 128million faces and requires just over 32gb of memory here. The UI already attempts to stop you from going so high by forcing you to type numbers larger than 6 into the property. The old 2.7 series of versions has the same issue and partial mitigation.

Also, please try not to upload such large files.

You are most likely out of memory, a condition for which blender is not designed to recover from in many situations. A level 9 subdivided suzanne is 128million faces and requires just over 32gb of memory here. The UI already attempts to stop you from going so high by forcing you to type numbers larger than 6 into the property. The old 2.7 series of versions has the same issue and partial mitigation. Also, please try not to upload such large files.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'

Thanks for the report. It appears this crashes because Blender ran out of memory.

While we want to improve Blender to handle such cases memory gracefully, this is not currently considered a bug.

You can try to implement more RAM memory in your device.

Some modifiers deal with this by raising a warning instead of crashing. This could be implemented in the subdivision modifier in some near future as well.

Thanks for the report. It appears this crashes because Blender ran out of memory. While we want to improve Blender to handle such cases memory gracefully, this is not currently considered a bug. You can try to implement more RAM memory in your device. Some modifiers deal with this by raising a warning instead of crashing. This could be implemented in the subdivision modifier in some near future as well.
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#92913
No description provided.