aMule Forum

English => en_Bugs => Topic started by: gav616 on May 06, 2008, 08:40:08 PM

Title: [Tray Icon] Show/Hide bug
Post by: gav616 on May 06, 2008, 08:40:08 PM
The 'Show/Hide aMule' option on right click is buggy and some times doesn't work, been there for a couple of builds now.

double left clicking works fine though so not a massive inconveniences.


How to reproduce the bug;

enable the Tray Icon, right click, select 'Hide aMule' if it works then try 'Show aMule' and after a while (seems random) it stops working.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 14, 2008, 09:49:58 AM
Here it doesn't work anymore neither by double clicking (it minimizes the window) nor via contextual menu (nothing happens). The last build that I tried and worked was Feb 28.
Title: Re: [Tray Icon] Show/Hide bug
Post by: skolnick on June 15, 2008, 08:13:09 PM
Have you tried official 2.2.1 version?

Regards.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 16, 2008, 10:32:57 AM
Yes, I forgot to mention it: now I'm using official 2.2.1 version and it doesn't work.
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 19, 2008, 05:14:53 PM
It's cursed. I can reproduce the behaviour running 2.2.1 on one PC (Arch i686, OpenBox), but not on another  with current SVN (Arch i686, XMonad), both using stalonetray.

Compilation takes ages on the PC where I can reproduce this behaviour, so I can't do much testing. I'll try to see what changed after February 28th, but no promises.

What desktop environments/Operating systems are you using?
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 19, 2008, 06:47:12 PM
More info: aMule 2.2.1 and wxWidgets 2.8.7 (both built from sources) in Debian testing running KDE 3.5.9. Previously, sys-tray icon had worked in the same enviroment.

I must say too that the next SVN version that I compiled after February 28th snapshot (and which stop working) was much more recent, about May, if I'm not wrong.

Thanks for your concern.
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 19, 2008, 07:33:13 PM
OK, if I provide with source tarballs before and after the changes of which I believe they lead to the problem, could you do some testing to see if I'm correct?

Edit: See here (http://www.htw-dresden.de/~s59596/)
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 19, 2008, 08:47:53 PM
Of course, wuischke. I hope I can give some feedback in a couple of days.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 19, 2008, 10:57:22 PM
Sorry, but... how can I compile these source tarballs? I run autogen.sh and then configure:

Code: [Select]
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 19, 2008, 11:15:35 PM
Maybe you need to install cvs.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 20, 2008, 01:33:07 AM
Well, finally it took me less than two days, hehe.

Sys tray icon works with r8259 (double click and menu) and it doesn't work with r8263 in any way.
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 20, 2008, 09:40:44 AM
Thanks for this information, this narrows down the problem a lot. :)
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 20, 2008, 01:39:03 PM
Alright, there are two different functions used, one when double clicking and one for the menu items. I think I know where to look now and hope to provide a patch later today.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 22, 2008, 01:45:14 PM
wuischke, is the patch included in the latest CVS daily previews or you will post it here?
Title: Re: [Tray Icon] Show/Hide bug
Post by: Kry on June 22, 2008, 02:26:00 PM
It will be included.
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 22, 2008, 03:54:13 PM
Please have a look at tomorrow's tarball and see if everything works fine.
Title: Re: [Tray Icon] Show/Hide bug
Post by: testerus on June 22, 2008, 06:46:45 PM
double left clicking works fine

Is double clicking part of the bug or is it intentional? Is there a way to enable single click to make it consistent with other tray applications?
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 23, 2008, 01:18:16 AM
Double clicking is intentional.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 23, 2008, 10:54:26 AM
I've just built today's tarball and still doesn't work for me. Furthermore, when I double click sys-tray icon nothing happens (before aMule window minimized to the taskbar).
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 23, 2008, 12:51:22 PM
OK, I will provide you with a special debug source tarball (http://www.htw-dresden.de/~s59596/amule-tray-test.tar.bz2) for this issue. Please compile it and watch the output in the terminal. This will tell me where it fails.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 23, 2008, 01:19:10 PM
Something strange happened. Downloads and uploads disappeared from Traffic tab while apparently were still active, as you can see in the picture:

http://img48.imageshack.us/my.php?image=amule2rk0.jpg

Anyway, I could restore them by switching between tabs.

Maybe I should have opened another thread, but I don't know whether it has to do with the last changes you made.

I've downloaded special debug source tarball. I hope I can compile it and test it later today.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 23, 2008, 08:38:34 PM
Is this what you expect?

Code: [Select]
# DoIconize(1)
# !Notifier && DoMinToTray
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 23, 2008, 08:46:01 PM
Yes, that's it.

OK, do you have the option "Minimize to tray icon" activated? Please enable it and tell me if it works then. In this case, I know what's wrong.
Title: Re: [Tray Icon] Show/Hide bug
Post by: sosonok on June 23, 2008, 10:25:58 PM
My God, I didn't know about "Minimize to tray option". I used to enable tray icon in  "Tweaks GUI" section.
Once activated, both test-tray and today's cvs tarballs work fine.

Code: [Select]
# DoIconize(1)
# Notifier && DoMinToTray
# iconize
# SafeState
# OnMinimize

Tell me that wasn't the problem  :-[

Title: Re: [Tray Icon] Show/Hide bug
Post by: Morse on June 24, 2008, 01:37:10 PM
That definitely wasn't. I have this option enabled from the beginning, and show/hide button didn't work while double-clicking did.
Title: Re: [Tray Icon] Show/Hide bug
Post by: wuischke on June 24, 2008, 03:33:58 PM
Morse: This problem is fixed now, please check a current tarball.

Well, first of all I'll be forced to install one of these for me hard-to-use desktop environments with a task bar or use Windows to do a proper test on minimizations, because our Iconize function doesn't seem to do what it should (that's what's wrong) and neither xmonad, openbox nor my today freshly installed e17 make a difference between minimizing and minimizing to tray icon.
Title: Re: [Tray Icon] Show/Hide bug
Post by: atilla on July 16, 2008, 02:57:20 PM
Hi there, there is another issue i have realized about system tray. When i minimize aMule from panel, not from minimize icon on window, aMule doesn't go to system tray. It still shows on panel. I have "Minimize to tray" and "Show systray icon" options checked. It works when i minimize from window's minimize icon. Using Arch Linux, KdeMod 3.5.9. Any help? Thanks...