Public bug reported:

If one runs valgrind with --show-reachable, the following backtrace can
be seen:

==16971== 79,872 bytes in 78 blocks are still reachable in loss record 12,191 
of 12,200
==16971==    at 0x401C422: malloc (vg_replace_malloc.c:149)
==16971==    by 0x4A49E6D: g_try_malloc (in /usr/lib/libglib-2.0.so.0.1000.3)
==16971==    by 0x46F6E1B: gdk_pixbuf_new (gdk-pixbuf.c:293)
==16971==    by 0x53D9A94: ??? (io-png.c:294)
==16971==    by 0x46F9A2E: _gdk_pixbuf_generic_image_load (gdk-pixbuf-io.c:792)
==16971==    by 0x46F9CBD: gdk_pixbuf_new_from_file (gdk-pixbuf-io.c:904)
==16971==    by 0x402FA68: launchpad_integration_add_item_factory (in 
/usr/lib/liblaunchpad-integration.so.0.0.0)
==16971==    by 0x402FADE: (within /usr/lib/liblaunchpad-integration.so.0.0.0)
==16971==    by 0x402FB7E: launchpad_integration_add_ui (in 
/usr/lib/liblaunchpad-integration.so.0.0.0)
==16971==    by 0x809B9BA: (within /usr/bin/gedit)
==16971==    by 0x809F059: (within /usr/bin/gedit)
==16971==    by 0x4A0F381: g_type_create_instance (in 
/usr/lib/libgobject-2.0.so.0.1000.3)

Looking at strace -eopen gedit, there is the sequence:
open("/usr/share/pixmaps/lpi-help.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-translate.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-help.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-translate.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-help.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-translate.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-help.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-translate.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-help.png", O_RDONLY|O_LARGEFILE) = 17
open("/usr/share/pixmaps/lpi-translate.png", O_RDONLY|O_LARGEFILE) = 17

It looks like duplicates of the images are being created. The icons
should really be in /usr/share/icons so that the mmap'd cache can be
used. This would also make the icons themeable.

** Affects: launchpad-integration (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
Launchpad opens duplicate pixbufs
https://launchpad.net/bugs/51901

--
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to