Hi everybody,

The latest changes in Epsilon to make use of Evas and its recent image
cache for generating thumbnails may have introduced a bug. Or maybe
the bug was already there but it has not been caught before.

Anyway, while testing canola against the latest CVS, I noticed that
thumbnail generation using epsilon_generate() function was trying to
eat all available memory in my machine. After a long time trying to
spot the bug, I got stuck here.

What I could find until now is that if you happened to call
ecore_evas_init() before calling the epsilon functions for thumbnail
generation, Evas gets lost somehow. It never flushes the image cache
until there are no more images to be processed by epsilon.

Attached, there is a simple patch against epsilon_main.c that triggers
this bug. Uncomment the blocks and prepare to see all your memory to
vanish very quickly. Any help on this would be greatly appreciated.

Best Regards, Etrunko.

-- 
Eduardo de Barros Lima
INdT - Instituto Nokia de Tecnologia
[EMAIL PROTECTED]
Index: libs/epsilon/src/bin/epsilon_main.c
===================================================================
RCS file: /var/cvs/e/e17/libs/epsilon/src/bin/epsilon_main.c,v
retrieving revision 1.8
diff -u -3 -p -r1.8 epsilon_main.c
--- libs/epsilon/src/bin/epsilon_main.c	25 Jun 2007 11:31:47 -0000	1.8
+++ libs/epsilon/src/bin/epsilon_main.c	16 Jun 2008 18:34:01 -0000
@@ -3,12 +3,17 @@
 #include<string.h>
 #include"Epsilon.h"
 #include"../config.h"
+#include<Ecore.h>
+#include<Ecore_Evas.h>
 
 int
 main (int argc, char *argv[])
 {
   Epsilon *e = NULL;
-
+/*
+  ecore_init();
+  ecore_evas_init();
+*/
   epsilon_init ();
   while (--argc)
     {
@@ -73,5 +78,9 @@ main (int argc, char *argv[])
 	  epsilon_free (e);
 	}
     }
+/*
+  ecore_evas_shutdown();
+  ecore_shutdown();
+*/
   return (0);
 }
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to