Adaptive subdivision crash (computing displacement) and huge memory consumption #100915

Closed
opened 2022-09-08 14:06:37 +02:00 by Niels Farragher · 10 comments

System Information
Operating system: Windows-10-10.0.19043-SP0 64 Bits
Graphics card: D3D12 (Microsoft Basic Render Driver) Microsoft Corporation 4.2 (Core Profile) Mesa 22.2.0-devel (git-7cbdf9e261)

Blender Version
Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: bcfdb14560
Worked: (newest version of Blender that worked as expected)

*Short description of error
File crashes before during computation of displacement

Exact steps for others to reproduce the error
On attached file, start a single image render using CPU rendering. Memory usage (according to task manager) will ramp up to 121 Gb during tesselation. During computing of normals memory goes up to around 200 Gb. Crash during computation of displacement (object atelier.234) with exception_access_violation
System has 385 Gb of total memory so at point of crash around 175 Gb of free memory is still available. Note that size of render is only 800x800px

bug_tesselation3.blend

**System Information** Operating system: Windows-10-10.0.19043-SP0 64 Bits Graphics card: D3D12 (Microsoft Basic Render Driver) Microsoft Corporation 4.2 (Core Profile) Mesa 22.2.0-devel (git-7cbdf9e261) **Blender Version** Broken: version: 3.2.2, branch: master, commit date: 2022-08-02 18:15, hash: `bcfdb14560` Worked: (newest version of Blender that worked as expected) **Short description of error* File crashes before during computation of displacement **Exact steps for others to reproduce the error** On attached file, start a single image render using CPU rendering. Memory usage (according to task manager) will ramp up to 121 Gb during tesselation. During computing of normals memory goes up to around 200 Gb. Crash during computation of displacement (object atelier.234) with exception_access_violation System has 385 Gb of total memory so at point of crash around 175 Gb of free memory is still available. Note that size of render is only 800x800px [bug_tesselation3.blend](https://archive.blender.org/developer/F13468776/bug_tesselation3.blend)

Added subscriber: @Nielsf

Added subscriber: @Nielsf

Added subscribers: @brecht, @mano-wii

Added subscribers: @brecht, @mano-wii

It looks like the same problem reported in #73564 (Adaptive subdivision modifier takes to much memory )

In #73564#867093, @brecht wrote:
Adaptive subdivision is not properly working yet in 2.80, and will subdivide the mesh both in Blender and Cycles. This is a known issue, one of the reasons it is still an experimental feature.

It looks like the same problem reported in #73564 (Adaptive subdivision modifier takes to much memory ) > In #73564#867093, @brecht wrote: > Adaptive subdivision is not properly working yet in 2.80, and will subdivide the mesh both in Blender and Cycles. This is a known issue, one of the reasons it is still an experimental feature.
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

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

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

What Dicing Rate do you have set in the subdivision options? Does increasing the Dicing rate fixes the issue?

Please open Blender's installation directory and double click on the blender_debug_gpu.cmd. This will start Blender in debug mode and create log files. Try to reproduce the error again. Once it crashes, the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt (or simply type %TEMP% into the path bar of the Windows Explorer).2019_12_04_upload_icon_developer_blender_org.png

What Dicing Rate do you have set in the subdivision options? Does increasing the Dicing rate fixes the issue? Please open Blender's installation directory and double click on the `blender_debug_gpu.cmd`. This will start Blender in debug mode and create log files. Try to reproduce the error again. Once it crashes, the Windows Explorer should open and show you up to two files, a debug log and the system information. Add them to your bug report by clicking on the upload button as shown in the screenshot below or via drag and drop. Please also upload the crash log located in `C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt` (or simply type `%TEMP%` into the path bar of the Windows Explorer).![2019_12_04_upload_icon_developer_blender_org.png](https://archive.blender.org/developer/F8190038/2019_12_04_upload_icon_developer_blender_org.png)

Dicing rate is default of 1.0
I increased the dicing rate to 1.5 but same issue. Log files attached are using dicing rate=1.5

bug_tesselation.crash.txt

blender_system_info.txt

blender_debug_output.txt

Dicing rate is default of 1.0 I increased the dicing rate to 1.5 but same issue. Log files attached are using dicing rate=1.5 [bug_tesselation.crash.txt](https://archive.blender.org/developer/F13492398/bug_tesselation.crash.txt) [blender_system_info.txt](https://archive.blender.org/developer/F13492405/blender_system_info.txt) [blender_debug_output.txt](https://archive.blender.org/developer/F13492406/blender_debug_output.txt)
Member

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

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

In my case it doesn't crash, but it doesn't render either:

Malloc returns null: len=139069456 in Cycles Aligned Alloc, total 947739392
Error: run out of memory!
Error: Out of memory

I noticed that importing the file in 2.79 the rendering works.

So, in fact, it is a duplicate of #73564 (Since the problem is mentioned it occurs from 2.80)

In my case it doesn't crash, but it doesn't render either: ``` Malloc returns null: len=139069456 in Cycles Aligned Alloc, total 947739392 Error: run out of memory! Error: Out of memory ``` I noticed that importing the file in 2.79 the rendering works. So, in fact, it is a duplicate of #73564 (Since the problem is mentioned it occurs from 2.80)

Closed as duplicate of #73564

Closed as duplicate of #73564
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#100915
No description provided.