-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/11/2011 09:55 AM, Yves-Alexis Perez wrote: > On sam., 2011-04-09 at 14:54 +0200, Kasper Loopstra wrote: >> After using the plugin for some time, it sometimes seems to >> crash, and at least disappears from the xfce menu bar. This seems >> to occur more often when the mpd server is offline for some >> reason, but I am not sure that that is always the case. The >> applet completely disappears and needs to be re-added each time. >> More information if I knew where to get it... > > Hey, > > it'd be nice if you could provide a backtrace (see > http://wiki.xfce.org/howto/panel_plugin_debug and > http://wiki.debian.org/HowToGetABacktrace) when the plugin > crashes. > Do you need the results from Valgrind or GDB? I'm not quite used to debugging compiled programs. Running with Valgrind doesn't allow the plugin to show, though there is some frantic CPU activity for a while. Valgrind log attached. The GDB shell script seems to break the panel startup, but I attached the log and used script. I'll tweak that later this week, but if you know why the panel now seems to break, that would help. > Is there some kind of a scheme, something you're doing (network > related for example) when it crashes? > Not that I've noticed, but it might be because my MPD server isn't always online, and sometimes skips through all the tracks in a playlist quickly (this is because the music partition isn't always mounted).
All the best, Kasper. > Regards, -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2jZ1wACgkQL/UrUcMAn7e7uACff/YI7qVFAjdmU5ERFceSfoj7 AuYAoKQdLPR47goygQa88BYwocqznYR/ =VNYg -----END PGP SIGNATURE-----
==3286== Memcheck, a memory error detector ==3286== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==3286== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info ==3286== Command: /usr/lib/xfce4-mpc-plugin/xfce4/panel-plugins/xfce4-mpc-plugin ==3286== Parent PID: 3285 ==3286== ==3286== ==3286== HEAP SUMMARY: ==3286== in use at exit: 302,533 bytes in 3,668 blocks ==3286== total heap usage: 9,071 allocs, 5,403 frees, 624,103 bytes allocated ==3286== ==3286== LEAK SUMMARY: ==3286== definitely lost: 40 bytes in 1 blocks ==3286== indirectly lost: 120 bytes in 10 blocks ==3286== possibly lost: 130,256 bytes in 1,133 blocks ==3286== still reachable: 172,117 bytes in 2,524 blocks ==3286== suppressed: 0 bytes in 0 blocks ==3286== Rerun with --leak-check=full to see details of leaked memory ==3286== ==3286== For counts of detected and suppressed errors, rerun with: -v ==3286== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 142 from 9)
#!/bin/sh #valgrind --log-file=$HOME/mpc-valgrind.log /usr/lib/xfce4-mpc-plugin/xfce4/panel-plugins/xfce4-mpc-plugin #gdb /usr/lib/xfce4-mpc-plugin/xfce4/panel-plugins/xfce4-mpc-plugin < echo "run" > gdblog gdb -ex r -ex bt -ex continue -ex q --args /usr/lib/xfce4-mpc-plugin/xfce4/panel-plugins/xfce4-mpc-plugin $@ > $HOME/xfce4-mpc-gdb.log 2>&1
GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/lib/xfce4-mpc-plugin/xfce4/panel-plugins/xfce4-mpc-plugin...(no debugging symbols found)...done. Starting program: /usr/lib/xfce4-mpc-plugin/xfce4/panel-plugins/xfce4-mpc-plugin socket_id=16777249 name=xfce4-mpc-plugin-valgrind id=13025538520 display_name=MPD Client Plugin- DEBUG size=16 screen_position=1
_______________________________________________ Pkg-xfce-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-xfce-devel

