Follow-up Comment #3, bug #15350 (project mypaint):
It doesn't get to there. It opens a 'green error' display which seems to
contain uniformly 0.0 values, and closing that doesn't have any effect..
That's part of docPaint, so I commented that call out, and now it gets to
saying:
memory leak test paint_and_clear
iteration 01/21: 15245 pages used
iteration 02/21: 15325 pages used
iteration 03/21: 15373 pages used
iteration 04/21: 15413 pages used
iteration 05/21: 15413 pages used
iteration 06/21: 15413 pages used
iteration 07/21: 15413 pages used
iteration 08/21: 15461 pages used
iteration 09/21: 15461 pages used
iteration 10/21: 15461 pages used
iteration 11/21: 15501 pages used
iteration 12/21: 15501 pages used
iteration 13/21: 15501 pages used
iteration 14/21: 15501 pages used
iteration 15/21: 15541 pages used
iteration 16/21: 15541 pages used
iteration 17/21: 15541 pages used
iteration 18/21: 15541 pages used
iteration 19/21: 15541 pages used
iteration 20/21: 15581 pages used
iteration 21/21: 15581 pages used
[15245, 15325, 15373, 15413, 15413, 15413, 15413, 15461, 15461, 15461, 15501,
15501, 15501, 15501, 15541, 15541, 15541, 15541, 15541, 15581, 15581]
Traceback (most recent call last):
File "tests/test_mypaintlib.py", line 290, in <module>
leakTest_slow()
File "tests/test_mypaintlib.py", line 280, in leakTest_slow
leakTest_generic(paint_and_clear)
File "tests/test_mypaintlib.py", line 241, in leakTest_generic
assert diff == 0, 'looks like a memory leak in ' + func.__name__
AssertionError: looks like a memory leak in paint_and_clear
The 'top' stats mirrored this. During the test, memory usage rose by about
160k per update (which is done every 5 seconds)
in other tests,
Painting constantly increases memory usage (in a normal, expected way)..
however, clearing the document never decreases it. In fact, inserting a call
to gc.collect() at the end of Document.clear() does nothing as far as I can
tell. this is consistent with the memory leak test, IMO.
-- ie:
document.clear() fails to actually free any memory.
OTHER INFO:
* Numpy 1.4.0
* Python 2.6.4
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15350>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs