Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25010] Memory leaks when scripting panels and file selectors

Date:
2010-12-02 05:22
Priority:
3
State:
Closed
Submitted by:
Thomas Larsson (thomasl)
Assigned to:
Ton Roosendaal (ton)
Category:
Interface
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Memory leaks when scripting panels and file selectors
Detailed description
This is probably a useless bug report, but I have failed to isolate the problem. Perhaps you can find something by dissecting the blend file.

Blender 2.55 r33364

Here is my typical workflow:
1. Edit a script in external editor
2. Load it into Blender's text editor and run it (Alt-O Alt-P)
3. The script creates buttons in the UI panel.
4. Press button which invokes a file selector.
5. Load file
6. Evaluate result
7. Go to 1.

After a while strange things start to happen. Then I quit and notice memory leaks. Typical output:

*bpy stats* - tot exec: 1045094, tot run: 62.1335sec, average run: 0.000059sec, tot usage 3.8039%
Saved session recovery to /tmp/quit.blend
Error Totblock: 15
fileselparams len: 608 0x3ea2008
folderlist len: 16 0x3df1838
text draw cache len: 72 0x3ebb378
fileselparams len: 608 0x3ee1248
folderlist len: 16 0x3f68358
fileselparams len: 608 0x666f2b8
folderlist len: 16 0x923e298
text draw cache len: 72 0x474e6f8
fileselparams len: 608 0x6541e68
folderlist len: 16 0x8e59378
text draw cache len: 72 0x639b148
fileselparams len: 608 0x28624b8
folderlist len: 16 0x726fba8
fileselparams len: 608 0x96bafa8
folderlist len: 16 0x3dcc498

Blender quit

Followup

Message
  • Date: 2010-12-02 12:57
  • Sender: Ton Roosendaal
  • Nice one for me, later today.
  • Date: 2010-12-02 19:27
  • Sender: Ton Roosendaal
  • Got it! The "quit.blend" name already should have raised suspicion, but I overlooked it.
    It's a real quit.blend, saved in temp without UI data, that caused it. Fix is in svn!
 

Attached Files:

Name Date Download
quit.blend.rar 2010-12-02 05:22 Download

Changes:

Field Old Value Date By
ResolutionInvestigate2010-12-02 19:27ton
close_date2010-12-02 19:272010-12-02 19:27ton
status_idOpen2010-12-02 19:27ton
CategoryNone2010-12-02 12:57ton
ResolutionNone2010-12-02 12:57ton
assigned_tonone2010-12-02 12:57ton
File Added13930: quit.blend.rar2010-12-02 05:22thomasl