GPv3: Memory leak when emptying a layer #118865

Closed
opened 2024-02-28 20:37:07 +01:00 by Sietse Brouwer · 3 comments
Member

System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 551.61

Blender Version
Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-02-28 18:42, hash: 0e7c9f071a77

Short description of error
In GPv3, after emptying a layer (e.g. by deleting all strokes), Blender reports a memory leak when closing.

Exact steps for others to reproduce the error

  • Open a GPv3 document.
  • Draw some strokes.
  • Switch to Edit mode.
  • Select all strokes and delete them. The layer is empty now.
  • Close Blender.

Example of message when running blender.exe --debug-memory:

Error: Not freed memory blocks: 5, total unfreed memory 0.001884 MB
CDMIntProperty len: 8 000001FA067D57F0
make_implicit_sharing_info_for_layer len: 48 000001FA090EA350
customData_resize len: 640 000001FA2D2E6A28
customData_resize len: 640 000001FA2D2E5528
customData_resize len: 640 000001FA2D2E6428
**System Information** Operating system: Windows-10-10.0.22631-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 551.61 **Blender Version** Broken: version: 4.2.0 Alpha, branch: main, commit date: 2024-02-28 18:42, hash: `0e7c9f071a77` **Short description of error** In GPv3, after emptying a layer (e.g. by deleting all strokes), Blender reports a memory leak when closing. **Exact steps for others to reproduce the error** - Open a GPv3 document. - Draw some strokes. - Switch to Edit mode. - Select all strokes and delete them. The layer is empty now. - Close Blender. Example of message when running `blender.exe --debug-memory`: ``` Error: Not freed memory blocks: 5, total unfreed memory 0.001884 MB CDMIntProperty len: 8 000001FA067D57F0 make_implicit_sharing_info_for_layer len: 48 000001FA090EA350 customData_resize len: 640 000001FA2D2E6A28 customData_resize len: 640 000001FA2D2E5528 customData_resize len: 640 000001FA2D2E6428 ```
Sietse Brouwer added the
Status
Needs Triage
Severity
Normal
Type
Report
labels 2024-02-28 20:37:08 +01:00
Member

Unable to confirm in current main b099108178038c8490d9c89a82cfa1afbafeccb5

Unable to confirm in current main `b099108178038c8490d9c89a82cfa1afbafeccb5`

I tested with the same version indicated: 0e7c9f071a77, but I was also unable to confirm the memory leak issue.
I followed these steps:

  • GPv3
  • New 2D Animation
  • Exit Draw Mode to add a new GP Object
  • Draw Mode
  • Draw some strokes
  • Edit Mode
  • Delete all strokes
  • Close Blender

Could you please provide more details in order to investigate further?
Check for any additional steps or specific conditions that could potentially trigger the memory leak.

I tested with the same version indicated: `0e7c9f071a77`, but I was also unable to confirm the memory leak issue. I followed these steps: - GPv3 - New 2D Animation - Exit Draw Mode to add a new GP Object - Draw Mode - Draw some strokes - Edit Mode - Delete all strokes - Close Blender Could you please provide more details in order to investigate further? Check for any additional steps or specific conditions that could potentially trigger the memory leak.
Germano Cavalcante added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2024-02-29 12:46:49 +01:00
Author
Member

Let's close the issue then. Probably some oddity in the Debug build. No need to chase ghosts!

Let's close the issue then. Probably some oddity in the Debug build. No need to chase ghosts!
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-02-29 12:56:05 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#118865
No description provided.