appindicators crash and gdk_pixbuf_save
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
TUnityTrayIconHandle in unitywsctrls.pas saves the current application icon to a file (as pointless as that sounds) by calling
gdk_pixbuf_save(GlobalIcon, PChar(GlobalIconPath), IconType, nil);
in create and update.
But gdk_pixbuf_save needs a null terminated list as fifth parameter (
https://sourcecodebrowser.com/gtkplus-p2.0-directfb/2.0.9.2/gdk-pixbuf_8h.html#a4de09d2e72f26a8c9e65dcc2a2904f05 ) and calling it with four parameters will always CRASH ! ( https://mail.gnome.org/archives/gtk-app-devel-list/2005-June/msg00314.html )
Additional information:
I cannot reproduce it, but I have received a bug report for one of my programs:
Thread 1 "videlibri" received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: Datei oder Verzeichnis nicht gefunden.
(gdb) backtrace
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x00007ffff665e4e3 in g_strdup ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff71ae682 in ?? ()
from /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
#3 0x00007ffff71b1749 in gdk_pixbuf_save ()
from /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
#4 0x000000000089df84 in ?? ()
#5 0x00007ffff7f76b50 in ?? ()
#6 0x00007fffe65d0b90 in ?? ()
#7 0x00007ffff7f67a60 in ?? ()
#8 0x0000000000ac5cf8 in ?? ()
#9 0x00007fffe6ecd7f8 in ?? ()
#10 0x0000000000ac5d48 in ?? ()
#11 0x0000000000ac5d68 in ?? ()
#12 0x00007fffe672f518 in ?? ()
#13 0x00007fffe6ee6198 in ?? ()
#14 0x0000000000ac5d28 in ?? ()
#15 0x00007fffe672f518 in ?? ()
#16 0x00007fffe6ee61d8 in ?? ()
#17 0x0000000000000000 in ?? ()
(gdb)
There is no gdk_pixbuf_save except for TUnityTrayIconHandle.
Mantis conversion info:
- Mantis ID: 32258
- Version: 1.8RC2
- Fixed in revision: r55709 (#938d485a)