[E-devel] Someone's done a woopsie in SVN

2010-03-10 Thread Dan
My e17 svn tree got fowled up by deletions etc, so I tried checking it all
out again, and now something looks _very_ wrong. The directories:

- entrance
- esmart
- exml

 ... appear to have a full e17 tree inside them ... or something. They're
725MB each anyway.

Dan

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: englebass trunk/efreet/src/bin

2010-03-10 Thread Gustavo Sverzut Barbieri
On Wed, Mar 10, 2010 at 6:33 PM, Enlightenment SVN
 wrote:
> Log:
>  read user dir cache
> Author:       englebass
> Date:         2010-03-10 13:33:43 -0800 (Wed, 10 Mar 2010)
> New Revision: 47120
>
> Modified:
>  trunk/efreet/src/bin/efreet_desktop_cache_create.c
>
> Modified: trunk/efreet/src/bin/efreet_desktop_cache_create.c
> ===
> --- trunk/efreet/src/bin/efreet_desktop_cache_create.c  2010-03-10 20:57:06 
> UTC (rev 47119)
> +++ trunk/efreet/src/bin/efreet_desktop_cache_create.c  2010-03-10 21:33:43 
> UTC (rev 47120)
> @@ -8,6 +8,7 @@
>  #include 
>  #include 
>  #include 
> +#include 
>  #include 
>  #include 
>  #include 
> @@ -26,6 +27,12 @@
>  static Eina_Hash *paths = NULL;
>
>  static int
> +strcmplen(const void *data1, const void *data2)
> +{
> +    return strncmp(data1, data2, strlen(data2));
> +}

If you used stringshare, you could use much faster eina_stringshare_len() here.

> +            unsigned int size = *(unsigned int *)p;
> +            p += sizeof(unsigned int);
> +            user_dirs = eina_list_append(user_dirs, strdup(p));

by using eina_stringshare_add_length() here, you could avoid implicit
strlen() inside strdup(), and also get the length for almost 0 cost at
strcmplen...


> +        if (ftruncate(dirsfd, 0) < 0) goto error;

I'd not truncate it, never... truncation is basically useless, and
dangerous for mmaped resources.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Freezing when menu loaded

2010-03-10 Thread Gustavo Sverzut Barbieri
On Mon, Mar 8, 2010 at 7:37 PM, Dustin Nicholas Jenkins
 wrote:
> My Settings menu is locking up when trying to access it.  The entire
> Desktop becomes unusable and the Display Manager needs to be restarted.
> After posting on the Enlightenment Users mailing list, it was suggested
> that I try in the Dev list.  Here is the GDB Backtrace:

could you compile librsvg and libxml2 with debug? If possible try to
reproduce the bug within valgrind (just run as enlightenment_start
-valgrind=1). What I'm interested is in expanding this part:

#14 0x00b82ac1 in _int_free () from /lib/libc.so.6
#15 0x00b860f0 in free () from /lib/libc.so.6
#16 0x010978a0 in xmlFreeParserCtxt () from /usr/lib/libxml2.so.2
#17 0x03a1d25c in rsvg_handle_close () from /usr/lib/librsvg-2.so.2
#18 0x06466f65 in evas_image_load_file_head_svg (ie=0xb6c89f58,
file=0x9c51740
"/usr/share/virt-manager/pixmaps/virt-manager-icon.svg", key=0x0,
error=0xbfc314d0) at evas_image_load_svg.c:124

from evas_image_load_svg.c we're effectively just doing:

   rsvg = rsvg_handle_new_from_file(file, NULL);
   rsvg_handle_set_dpi(rsvg, 75.0);
   rsvg_handle_get_dimensions(rsvg, &dim);
   rsvg_handle_close(rsvg, NULL);
   g_object_unref(rsvg);

and it's crashing on rsvg_handle_close(), which is quite weird as it
worked for set_dpi and get_dimensions :-/

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] Eina doc patch.

2010-03-10 Thread Eduardo Felipe
Folks,

I was using eina_counter_* and noticed a few glitches in the docs.
Nothing really big, but there's no hurt on fixing it.

Cheers,

Eduardo Felipe.
Index: eina/src/lib/eina_counter.c
===
--- eina/src/lib/eina_counter.c (revision 47092)
+++ eina/src/lib/eina_counter.c (working copy)
@@ -250,7 +250,9 @@
  *test_malloc();
  *eina_counter_stop(counter, 1);
  *
- *eina_counter_dump(counter);
+ *char* result = eina_counter_dump(counter);
+ *printf("%s", result);
+ *free(result);
  *
  *eina_counter_free(counter);
  *eina_shutdown();
@@ -268,8 +270,8 @@
  * The result should be something like that:
  *
  * @code
- * # specimen  experiment time starting time   ending time
- * 1   9794125 783816  10577941
+ * \# specimenexperiment timestarting timeending time
+ * 1  9794125783816   10577941
  * @endcode
  *
  * Note that the displayed time is in nanosecond.
@@ -415,8 +417,9 @@
  * @return A string with a summary of the test.
  * @param counter The counter.
  *
- * This function dump all the valid clocks of @p counter to the stream
- * @p out. If @p counter or @p out are @c NULL, the functions exits
+ * This function returns an malloc'd string containing the dump of 
+ * all the valid clocks of @p counter.
+ * If @p counter @c NULL, the functions exits
  * immediatly. Otherwise, the output is formattted like that:
  *
  * @code
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Freezing when menu loaded

2010-03-10 Thread Dustin Nicholas Jenkins
My Settings menu is locking up when trying to access it.  The entire 
Desktop becomes unusable and the Display Manager needs to be restarted.  
After posting on the Enlightenment Users mailing list, it was suggested 
that I try in the Dev list.  Here is the GDB Backtrace:

(gdb) bt
#0  0x00110424 in __kernel_vsyscall ()
#1  0x00bf9953 in __lll_lock_wait_private () from /lib/libc.so.6
#2  0x00b86e48 in _L_lock_14708 () from /lib/libc.so.6
#3  0x00b860e4 in free () from /lib/libc.so.6
#4  0x006a2be8 in ?? () from /usr/lib/libX11.so.6
#5  0x006a318c in _XReply () from /usr/lib/libX11.so.6
#6  0x00696eaa in XSync () from /usr/lib/libX11.so.6
#7  0x00139a5f in ecore_x_sync () at ecore_x.c:735
#8  0x080b8475 in e_sigabrt_act (x=6, info=0xbfc307fc, data=0xbfc3087c) 
at e_signals.c:207
#9 
#10 0x00110424 in __kernel_vsyscall ()
#11 0x00b42690 in raise () from /lib/libc.so.6
#12 0x00b43f91 in abort () from /lib/libc.so.6
#13 0x00b7a9eb in __libc_message () from /lib/libc.so.6
#14 0x00b82ac1 in _int_free () from /lib/libc.so.6
#15 0x00b860f0 in free () from /lib/libc.so.6
#16 0x010978a0 in xmlFreeParserCtxt () from /usr/lib/libxml2.so.2
#17 0x03a1d25c in rsvg_handle_close () from /usr/lib/librsvg-2.so.2
#18 0x06466f65 in evas_image_load_file_head_svg (ie=0xb6c89f58,
 file=0x9c51740 
"/usr/share/virt-manager/pixmaps/virt-manager-icon.svg", key=0x0,
 error=0xbfc314d0) at evas_image_load_svg.c:124
#19 0x00615f99 in evas_common_load_rgba_image_module_from_file 
(ie=0xb6c89f58)
 at evas_image_load.c:121
#20 0x005caf24 in _evas_cache_image_entry_new (cache=0x990a5f0,
 hkey=0xbfc31560 
"/usr/share/virt-manager/pixmaps/virt-manager-icon.svg//://(null)//@/0/0x0p+0/40x40/0+0.0x0",
 
timestamp=1205952769,
 file=0x9c51740 
"/usr/share/virt-manager/pixmaps/virt-manager-icon.svg", key=0x0,
 lo=0xbfc31798, error=0xb6c89ee8) at evas_cache_image.c:271
#21 0x005cbf54 in evas_cache_image_request (cache=0x990a5f0,
 file=0x9c51740 
"/usr/share/virt-manager/pixmaps/virt-manager-icon.svg", key=0x0,
Missing separate debuginfos, use: debuginfo-install GConf2.i386 
ORBit2.i386 alsa-lib.i386 audit.i386 avahi.i386 bzip2.i386 cairo.i386 
curl.i386 dbus-glib.i386 dbus.i386 e2fsprogs.i386 expat.i386 
fontconfig.i386 freetype.i386 glibc.i686 gnome-vfs2.i386 gnutls.i386 
gtk2.i386 keyutils.i386 krb5.i386 libX11.i386 libXScrnSaver.i386 
libXau.i386 libXcomposite.i386 libXcursor.i386 libXdamage.i386 
libXdmcp.i386 libXext.i386 libXfixes.i386 libXinerama.i386 
libXrender.i386 libXtst.i386 libcap.i386 libcroco.i386 libgcrypt.i386 
libgpg-error.i386 libgsf.i386 libidn.i386 libjpeg.i386 libpng.i386 
librsvg2.i386 libselinux.i386 libssh2.i386 libxcb.i386 libxml2.i386 
lua.i386 nspr.i386 nss.i386 openssl.i686 pam.i386 pango.i386 zlib.i386
lo=0xbfc31798, Quit
) at evas_cache_image.c:774
#22 0x00617244 in evas_common_load_image_from_file (
file=0x9c51740 "/usr/share/virt-manager/pixmaps/virt-manager-icon.svg",
key=0x0,
lo=0xbfc31798, error=0xb6c89ee8) at evas_image_main.c:533
#23 0x0091c5c9 in eng_image_load (data=0xb6e76de0,
file=0x9c51740 "/usr/share/virt-manager/pixmaps/virt-manager-icon.svg",
key=0x0,
error=0xb6c89ee8, lo=0xbfc31798) at evas_engine.c:593
#24 0x0058cbf2 in evas_object_image_file_set (obj=0xb6c89d38,
file=0x9c51740 "/usr/share/virt-manager/pixmaps/virt-manager-icon.svg",
key=0x0)
at evas_object_image.c:320
#25 0x080a54e9 in e_icon_file_set (obj=0xb6c89c38,
file=0x9c51740 "/usr/share/virt-manager/pixmaps/virt-manager-icon.svg")
at e_icon.c:75
#26 0x080a1299 in _e_menu_item_realize (mi=0xb6c0f620) at e_menu.c:1309
#27 0x080a1db8 in _e_menu_realize (m=0x9be80f0) at e_menu.c:1511
#28 0x080a0382 in e_menu_idler_before () at e_menu.c:934
#29 0x0806f15c in _e_main_cb_idler_before (data=0x0) at e_main.c:1538
#30 0x0034e4f8 in _ecore_idle_enterer_call () at ecore_idle_enterer.c:132
#31 0x0034fc9a in _ecore_main_loop_iterate_internal (once_only=0) at
ecore_main.c:755
#32 0x0034ee1f in ecore_main_loop_begin () at ecore_main.c:155

I'm not sure if it's the SVG in question 
(/usr/share/virt-manager/pixmaps/virt-manager-icon.svg) that's the 
problem or not.  It loads in Gnome without a problem.  It was happening 
in my Favourites menu as well, but I reset my configuration and don't 
have it anymore to perform a backtrace on.  All that was in my 
Favourites menu was a Gnome Terminal menu item.

Thanks,
Dustin
-- 


Dustin N. Jenkins | Tel/Tél: 250.363.3101 | dustin.jenk...@nrc-cnrc.gc.ca

facsimile/télécopieur: (250) 363-0045

National Research Council Canada | 5071 West Saanich Rd, Victoria BC. 
V9E 2E7

Conseil national de recherches Canada | 5071, ch. West Saanich, Victoria 
(C.-B) V9E 2E7

Government of Canada | Gouvernement du Canada

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high mar