Francisco Eduardo Álvarez Solano wrote:
>>
>> A quick test on a directory of 111 photos (2816x2112) the memory goes
>> up from 260MB to 540MB until the cursor is being moved around to the
>> next page then memory goes up to 720MB. Moving back a page then the
>> memory remains at 720MB.
>>
>> Then going to audio the memory goes down to 715MB.
>>
>> Not sure quite what the problem is, can you give a bit more detail?
>
> I've made a directory with 63 photos (3264x2448). When I enter the
> directory with Freevo 1.8.3, the memory raises to 813-900Mb, and when
> I try to go to the next page, Freevo crashes. If I try with a
> directory with less photos, changing from one page to another lasts
> several seconds.
>
> If I do the same test with Freevo 1.8.2, the memory footprint stands
> without change, and I can navigate through the directory quickly and
> without any problem.
>
> I'll send several screenshots of Freevo 1.8.3 and Freevo 1.8.2 with
> gnome system monitor in which you can see the memory and cpu
> footprint.
When I check the code differences between 1.8.2 and 1.8.3 there are
quite a few changes to the osd.py module that deals with images. Will
you try taking the 1.8.2 osd.py module and replace it the 1.8.3
site-packages (remove the osd.pyc) and then see what happens?
Attached is a patch that deletes temporary images, which may help.
Thanks
Duncan
Index: src/osd.py
===================================================================
--- src/osd.py (revision 11313)
+++ src/osd.py (working copy)
@@ -790,6 +790,7 @@
except:
data = util.create_thumbnail(filename)
image = pygame.image.fromstring(data[0], data[1], data[2])
+ del data
else:
try:
@@ -799,6 +800,7 @@
try:
i = kaa.imlib2.open(filename)
image = pygame.image.fromstring(i.tostring(), i.size, i.mode)
+ del i
except IOError, why:
_debug_('imlib2 image load problem: %s' % (why), DERROR)
return None
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users