Change between modes up ram consumption, multres modifier. #94474

Closed
opened 2021-12-29 23:58:31 +01:00 by Higor Moura · 10 comments

System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce MX150/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.76

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557
Worked: (newest version of Blender that worked as expected)

Short description of error
[Change modes edit to object and repeat, up ram consume, with multresolution modifier with 5 subd.]

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce MX150/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.76 **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` Worked: (newest version of Blender that worked as expected) **Short description of error** [Change modes edit to object and repeat, up ram consume, with multresolution modifier with 5 subd.] **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @visturine

Added subscriber: @visturine

Added subscriber: @chemicalcrux

Added subscriber: @chemicalcrux

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

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

I spawned a Monkey object, added a Multiresolution modifier, and used it to subdivide five times. I then switched between edit and object mode a few dozen times. I saw a modest increase at first on MacOS, but it didn't grow forever.

Is it going up until you completely run out of memory?

I spawned a Monkey object, added a Multiresolution modifier, and used it to subdivide five times. I then switched between edit and object mode a few dozen times. I saw a modest increase at first on MacOS, but it didn't grow forever. Is it going up until you completely run out of memory?
Higor Moura self-assigned this 2021-12-30 12:47:05 +01:00
Author

{F12781764}Yes, it keeps going up until the blender breaks, or, totally overloads my ram.

{[F12781764](https://archive.blender.org/developer/F12781764/Blender__C__Users_vistu_OneDrive_Documentos_Trabalhos_Pedro_Raimundo_RaimundoHighRetopoMultres.blend__2021-12-30_08-38-39.mp4)}Yes, it keeps going up until the blender breaks, or, totally overloads my ram.

Added subscriber: @michael64

Added subscriber: @michael64

I have run this situation on macOS with Apple M1 in the memory leaks instrument of Xcode. This shows the current memory allocations graphically.
If I slowly tab between object and edit mode every 5 seconds the memory allocations go up and down but the upper memory allocation limit is not increasing.
When I hammer the tab key very quickly the total memory allocations go up and up and up.

Looking up where these additional memory allocations come from showed this call stack:

0 Blender MEM_lockfree_dupallocN
1 Blender layerCopy_mdisps(void const*, void*, int)
2 Blender CustomData_from_bmesh_block
3 Blender BM_mesh_bm_to_me
4 Blender mesh_undosys_step_encode
5 Blender BKE_undosys_step_push_with_type
6 Blender ED_undo_push
7 Blender wm_operator_finished
8 Blender wm_operator_invoke
9 Blender wm_operator_call_internal
10 Blender ED_object_mode_set_ex
11 Blender object_mode_set_exec
12 Blender wm_operator_invoke
13 Blender wm_handler_operator_call

So it seems that the undo system is allocating 3584 bytes of memory each time tab is pressed which even might be ok.

I have run this situation on macOS with Apple M1 in the memory leaks instrument of Xcode. This shows the current memory allocations graphically. If I slowly tab between object and edit mode every 5 seconds the memory allocations go up and down but the upper memory allocation limit is not increasing. When I hammer the tab key very quickly the total memory allocations go up and up and up. Looking up where these additional memory allocations come from showed this call stack: 0 Blender MEM_lockfree_dupallocN 1 Blender layerCopy_mdisps(void const*, void*, int) 2 Blender CustomData_from_bmesh_block 3 Blender BM_mesh_bm_to_me 4 Blender mesh_undosys_step_encode 5 Blender BKE_undosys_step_push_with_type 6 Blender ED_undo_push 7 Blender wm_operator_finished 8 Blender wm_operator_invoke 9 Blender wm_operator_call_internal 10 Blender ED_object_mode_set_ex 11 Blender object_mode_set_exec 12 Blender wm_operator_invoke 13 Blender wm_handler_operator_call So it seems that the undo system is allocating 3584 bytes of memory each time tab is pressed which even might be ok.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Thanks for the report. This issue has been already reported here: #88010 (Memory consumption beyond defined limit when entering-exiting Edit mode)
Will merge this report

Thanks for the report. This issue has been already reported here: #88010 (Memory consumption beyond defined limit when entering-exiting Edit mode) Will merge this report
Member

Closed as duplicate of #88010

Closed as duplicate of #88010
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
4 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#94474
No description provided.