Maniphest T48027

not freed memory blocks on regular exiting
Closed, Resolved

Assigned To
Julian Eisel (Severin)
Authored By
Norbert Krieg (nobi08)
Apr 1 2016, 12:11 PM
Tags
  • BF Blender
Subscribers
Bastien Montagne (mont29)
Campbell Barton (campbellbarton)
Julian Eisel (Severin)
Norbert Krieg (nobi08)
perfection cat (sindra1961)
Ray Molenkamp (LazyDodo)
Vuk Gardašević (lijenstina)

Description

System Information
Linux 64 Debian Jessie - NVidia GTX 660 Ti

Blender Version
Broken: 2.77 (release), 2.76b

Short description of error
after quitting a fresh installation of the actual blender release via Ctrl-Q
an error occurs in the command line:

...
Error: Not freed memory blocks: 2, total unfreed memory 0.000732 MB

Blender quit

Exact steps for others to reproduce the error
with a fresh installation, without copying earlier setups

  1. call freshly installed blender from release download
  2. save user settings (to produce the 2.77 folder and subfolders etc)
  3. exit blender
  4. call blender
  5. exit via Ctrl-Q -> Error: Not freed memory blocks: 2, total unfreed memory 0.000732 MB
  6. call blender
  7. quit blender via closing window button of OS -> no error

Funny....
Probably some different treatment of the quitting processes... ??

Revisions and Commits

rB Blender

Related Objects

Mentioned In
T54371: Memory Leak closing from menu
Mentioned Here
rB9c952bbe854d: Cleanup: Typo fixes after BVH commits.
rBd91316dc672d: Cycles: Remove the Preetham Sky model.

Event Timeline

Norbert Krieg (nobi08) created this task.Apr 1 2016, 12:11 PM
Norbert Krieg (nobi08) raised the priority of this task from to 90.
Norbert Krieg (nobi08) updated the task description.
Norbert Krieg (nobi08) added a project: BF Blender.
Norbert Krieg (nobi08) edited a custom field.
Norbert Krieg (nobi08) added a subscriber: Norbert Krieg (nobi08).
Bastien Montagne (mont29) lowered the priority of this task from 90 to Low.Apr 1 2016, 12:15 PM
Bastien Montagne (mont29) added a project: Platform: Windows.
Bastien Montagne (mont29) added a subscriber: Bastien Montagne (mont29).

This needs a win dev to check… probably some missing memfree in specific windows quit handling?

Campbell Barton (campbellbarton) added a subscriber: Campbell Barton (campbellbarton).EditedApr 4 2016, 11:26 AM

Can't redo this bug.
Tested on Windows7, official 2.77 release and master (d91316dc672dc1ee69fbd24d2f00124a24b75c6b)

perfection cat (sindra1961) added a subscriber: perfection cat (sindra1961).Apr 5 2016, 7:45 AM

When I confirmed a report T48057, it occurred only once.
I ran blender with --factory-startup option.

Windows 10 Pro 64bits
Blender version: 2.77 (sub 0), commit date: 2016-04-04 23:20, hash: 9c952bb

Ray Molenkamp (LazyDodo) added a subscriber: Ray Molenkamp (LazyDodo).Dec 7 2016, 3:38 AM

I'm also unsuccessful full in reproducing this one. Why is this tagged windows? original report came in on Linux 64 Debian Jessie ?

Vuk Gardašević (lijenstina) added a subscriber: Vuk Gardašević (lijenstina).EditedDec 7 2016, 5:22 AM

I've reproduced the bug on several builds from 2.57 to recent ones.

Run Blender with -d --factory-startup go directly to the File > Quit menu.

Accessing it from the Ctrl + Q shortcut doesn't cause the leak.

Win 7 64 bit.

Julian Eisel (Severin) claimed this task.Feb 13 2017, 2:39 PM
Julian Eisel (Severin) raised the priority of this task from Low to 50.
Julian Eisel (Severin) added a subscriber: Julian Eisel (Severin).

Can easily recreate this using steps mentioned by @Vuk Gardašević (lijenstina).

Aaron Carlisle (Blendify) removed a project: Platform: Windows.Apr 13 2017, 9:31 PM
Vuk Gardašević (lijenstina) added a comment.Dec 11 2017, 3:54 PM

Note: after some further testing related to a bug report, setting the operator_context in the space_info.py to EXEC_AREA causes the issue. If a confirmation pop-up is called, there is no memory leak.

layout.operator_context = 'EXEC_AREA'
if bpy.data.is_dirty and context.user_preferences.view.use_quit_dialog:
    layout.operator_context = 'INVOKE_SCREEN'  # quit dialog
Vuk Gardašević (lijenstina) mentioned this in T54371: Memory Leak closing from menu.Mar 20 2018, 2:00 PM
Julian Eisel (Severin) changed the task status from Unknown Status to Resolved by committing rB4cb4556fa5ba: Fix T48027: Memory leaks when exiting Blender from menu.Mar 22 2018, 11:36 PM
Julian Eisel (Severin) added a commit: rB4cb4556fa5ba: Fix T48027: Memory leaks when exiting Blender from menu.