Memory Leak creating new workspaces / move to collection (menu problem) #57098

Closed
opened 2018-10-08 10:55:14 +02:00 by Antonio Vazquez · 18 comments

Windows 10 64 bits - Last source code compiled 08/10/2018 10:50 CET

To reproduce:

  1. start blender with: blender --factory-startup --debug
  2. Select default template with default cube.
  3. Select in top tabs:General->Texture Paint
  4. Close Blender

You get these memory leaks:

Error: Not freed memory blocks: 5, total unfreed memory 0.001175 MB
strdup len: 16 000001C5E973E068
strdup len: 12 000001C5E973E218
strdup len: 4 000001C5E97907B8
strdup len: 16 000001C5E973D2E8
mesh_render_data_create_ex len: 568 000001C5E555F248
Windows 10 64 bits - Last source code compiled 08/10/2018 10:50 CET To reproduce: 1) start blender with: **blender --factory-startup --debug** 2) Select default template with default cube. 3) Select in top tabs:**General->Texture Paint** 4) Close Blender You get these memory leaks: ``` Error: Not freed memory blocks: 5, total unfreed memory 0.001175 MB strdup len: 16 000001C5E973E068 strdup len: 12 000001C5E973E218 strdup len: 4 000001C5E97907B8 strdup len: 16 000001C5E973D2E8 mesh_render_data_create_ex len: 568 000001C5E555F248 ```
Author
Member

Added subscriber: @antoniov

Added subscriber: @antoniov
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Not able to reproduce as of 84cf670d1d.
@antoniov : are you still getting the leaks now?

Not able to reproduce as of 84cf670d1d. @antoniov : are you still getting the leaks now?
Author
Member

@lichtwerk Yes, I still have the problem (compiled just now), but I have noticed something.

Start blender and in splash click in the splash image (load default scene)->No memory leak.

but, if you start blender, then select the template General, open texture paint tab and close->Memory leak.

The leak is only when use the default template, maybe it's something of the original template file, so not sure if we can close this bug.

@lichtwerk Yes, I still have the problem (compiled just now), but I have noticed something. Start blender and in splash click in the splash image (load default scene)->No memory leak. but, if you start blender, then select the template General, open texture paint tab and close->Memory leak. The leak is only when use the default template, maybe it's something of the original template file, so not sure if we can close this bug.
Author
Member

I have tested and the problem is with any template.

To reproduce:

  1. Open Blender
  2. Select any template
  3. Open texture paint tab
  4. Close Blender->Memory leak
I have tested and the problem is with any template. To reproduce: 1) Open Blender 2) Select any template 3) Open texture paint tab 4) Close Blender->Memory leak
Member

Hm, still cant reproduce.
Also resaved Userprefs/StartupFile, also made a new Template (with a TexturePaint workspace in it), still nothing...
(@antoniov: have an idea why its not leaking here?)

Does this happen with a fresh Template on your side as well (or if you move the default startup.blend and userpref.blend to a bak folder temporarily)?

Hm, still cant reproduce. Also resaved Userprefs/StartupFile, also made a new Template (with a TexturePaint workspace in it), still nothing... (@antoniov: have an idea why its not leaking here?) Does this happen with a fresh Template on your side as well (or if you move the default startup.blend and userpref.blend to a bak folder temporarily)?
Author
Member

It's very weird... I just downloaded the buildbolt version and tested and I get the problem too.

Are you in Windows 10?

I will try to investigate.

It's very weird... I just downloaded the buildbolt version and tested and I get the problem too. Are you in Windows 10? I will try to investigate.
Author
Member

What it's sure the problem is related to open new tabs... if I open 3 tabs, I have 3 times the memory leak.

I will try to make a debug this afternoon.

What it's sure the problem is related to open new tabs... if I open 3 tabs, I have 3 times the memory leak. I will try to make a debug this afternoon.
Member

Also tried the buildbot, still nothing. I'm on Linux though.

Also tried the buildbot, still nothing. I'm on Linux though.
Philipp Oeser self-assigned this 2018-10-10 11:27:40 +02:00
Member

Ah, yes, get it now, too (that was a misunderstanding, I didnt understand that you meant creating a new workspace, I was just switching to them).
Also seems to be a difference between duplicating [right click on a workspace tab and choose "Duplicate" -- dont get the leak there] and creating a new [Plus icon and choosing one -- get the leak].

I can have a look.

Ah, yes, get it now, too (that was a misunderstanding, I didnt understand that you meant **creating a new workspace**, I was just switching to them). Also seems to be a difference between `duplicating` [right click on a workspace tab and choose "Duplicate" -- dont get the leak there] and `creating a new` [Plus icon and choosing one -- get the leak]. I can have a look.
Member

Added subscriber: @brecht

Added subscriber: @brecht
Member

note: Move To Collection menu also leaks ( propably all calls to uiItemMenuF [when called with an *arg] )
@brecht already commented (I think related?) here
Got to go, more tomorrow (check where to free again....)

note: `Move To Collection` menu also leaks ( propably all calls to uiItemMenuF [when called with an *arg] ) @brecht already commented (I think related?) [here ](https://developer.blender.org/diffusion/B/browse/blender2.8/source/blender/editors/screen/workspace_edit.c;074cbc403cb5498fddb1f963317fcd67b227c7c6$519) Got to go, more tomorrow (check where to free again....)
Philipp Oeser changed title from Memory Leak using texture paint tab to Memory Leak creating new workspaces / move to collection (menu problem) 2018-10-10 15:56:45 +02:00

Added subscriber: @dfelinto

Added subscriber: @dfelinto

The move to collection is known if I remember correctly.
I would keep this report strictly to the workspace/texture paint issue.

In fact texture painting itself leaks a lot of memory here, depending on the mode. But I haven't stopped to investigate it though.

The move to collection is known if I remember correctly. I would keep this report strictly to the workspace/texture paint issue. In fact texture painting itself leaks a lot of memory here, depending on the mode. But I haven't stopped to investigate it though.
Member

tried my luck here and came up with D3783, seems to do the trick (even though there might be more elegant solutions...)

tried my luck here and came up with [D3783](https://archive.blender.org/developer/D3783), seems to do the trick (even though there might be more elegant solutions...)
Member

Original issue is fixed in 817319a79e, 5e091de0dc, still need to port this to the Move To Collection menu

Original issue is fixed in 817319a79e, 5e091de0dc, still need to port this to the `Move To Collection` menu
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

This seems to be solved, closing...
Anyone: please kick me again if issues persist...

This seems to be solved, closing... Anyone: please kick me again if issues persist...
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#57098
No description provided.