Hi, just built gkrellm2-bluez. Builds fine. Go to enable the plugin in gkrellm2 and I get a segfault of gkrellm warning window. There's a whole bunch of stuff I could post - I'll educatedly guess what you want: equery l gkrellm [I--] [ ~] app-admin/gkrellm-2.2.10 (2) [I--] [ ~] x11-plugins/gkrellm-bluez-0.2 (0) From lsub -v: bDeviceProtocol 1 Bluetooth bMaxPacketSize0 64 idVendor 0x413c Dell Computer Corp. idProduct 0x8126 bcdDevice 1.00 iManufacturer 1 Broadcom Corp iProduct 2 BCM2045 emerge --info Portage 2.1.2-r11 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.19-suspend2-r2 i686) ================================================================= System uname: 2.6.19-suspend2-r2 i686 Genuine Intel(R) CPU T2400 @ 1.83GHz Gentoo Base System release 1.12.9 Timestamp of tree: Sat, 24 Feb 2007 15:59:01 +0000 dev-java/java-config: 1.3.7, 2.0.31-r3 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.20 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" DISTDIR="/mnt/auto/distfiles" FEATURES="autoconfig buildpkg ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en en_GB en_AU en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.248/gentoo-portage" USE="X aac acpi alsa arts asf bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli cracklib crypt cups curl dbus dri dvd dvdr dvdread emboss encode fam ffmpeg firefox gdbm gif gpm gtk gtk2 hal iconv imagemagick isdnlog java javascript jpeg kde libg++ mad midi mikmod mjpeg mmx mmxext mozbranding mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdf perl png ppds pppd python qt qt4 quicktime readline reflection sdl session smp spell spl sse sse2 ssl svg tiff truetype truetype-fonts type1-fonts vorbis win32codecs wmf x86 xml xorg xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB en_AU en_US" USERLAND="GNU" VIDEO_CARDS="vga radeon ati fglrx" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS On Dell Inspiron 6400, SMP Reproducible: Always Expected Results: Plugin worketh
Attach a backtrace here and reopen then... http://www.gentoo.org/proj/en/qa/backtraces.xml
Backtrace as requested. Tell me if I've done this wrong... Program received signal SIGSEGV, Segmentation fault. 0xb7428f24 in gkrellm_bluez_load_extra_piximages () at gkrellm-bluez-chart.c:243 243 gkrellm-bluez-chart.c: No such file or directory. in gkrellm-bluez-chart.c #0 0xb7428f24 in gkrellm_bluez_load_extra_piximages () at gkrellm-bluez-chart.c:243 #1 0xb742a3c1 in gkrellm_bluez_create (vbox=0x8144a50, first_create=1) at gkrellm-bluez.c:113 #2 0x0805ba74 in gkrellm_build () at main.c:1870 #3 0x080a8379 in cb_enable_plugin (cell=0x81d7dd0, path_str=0x8232e90 "0", data=0x8221f80) at plugins.c:927 #4 0xb7acd924 in g_cclosure_marshal_VOID__STRING () from /usr/lib/libgobject-2.0.so.0 #5 0x00000002 in ?? () #6 0x00000500 in ?? () #7 0x081d7dd0 in ?? () #8 0xb7aef668 in ?? () from /usr/lib/libgobject-2.0.so.0 #9 0x0822bb70 in ?? () #10 0xffffffff in ?? () #11 0x081524e8 in ?? () #12 0xb7ac1ce5 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #13 0xbfe8717c in ?? () #14 0x00000000 in ?? ()
Excellent backtrace, thanks. The only other thing I need to know is: What theme are you currently running in gkrellm? And does this problem persist when you are running the default theme?
(In reply to comment #3) > Excellent backtrace, thanks. The only other thing I need to know is: What > theme are you currently running in gkrellm? And does this problem persist > when you are running the default theme? > Hi. I don't have any other themes. So yes, this is crashing with the default theme.
One more thing, Can you please try with a theme (any theme)? My current assessment of the bug is that this plugin erroneously assumes that you will always be using a theme.
(In reply to comment #5) > One more thing, Can you please try with a theme (any theme)? My current > assessment of the bug is that this plugin erroneously assumes that you will > always be using a theme. > Good call. Yes - I install a theme, and the error disappears and the plugin works very well. I now I have a workaround, but I guess this is still a corner condition bug. Thanks.
Agreed. Too bad I don't actually have any bluetooth hardware to test potential fixes with :) I am attaching a patch here, and the ebuild that applies it. It compiles for me, and I *think* it should fix the issue for the default gkrellm theme. Could you please give it a try and let me know?
Created attachment 112570 [details] gkrellm-bluez-0.2-r1.ebuild The new ebuild which applies the gkrellm-bluez-0.2-notheme.patch
Created attachment 112571 [details, diff] gkrellm-bluez-0.2-notheme.patch This is the patch that I hope should fix the problem. To use, either in your portage tree or an overlay: Put gkrellm-bluez-0.2-r1.ebuild in x11-plugins/gkrellm-bluez Put gkrellm-bluez-0.2-notheme.patch in x11-plugins/gkrellm-bluez/files
Big thanks to Chainsaw for testing this for me - This patch does indeed seem to solve the issue. I have submitted the patch upstream, and committed the ebuild gkrellm-bluez-0.2-r1 which should solve all your woes.
(In reply to comment #10) > Big thanks to Chainsaw for testing this for me - This patch does indeed seem to > solve the issue. > > I have submitted the patch upstream, and committed the ebuild > gkrellm-bluez-0.2-r1 which should solve all your woes. > He beat me to it. Thanks for the quick response.