aMule Forum

English => en_Bugs => Topic started by: xyzzy on April 17, 2004, 03:41:20 AM

Title: Losing widgets bug.
Post by: xyzzy on April 17, 2004, 03:41:20 AM
I think I may have experimentally identified a condition for losing display of certain widgets.

I have seen this with v1.2.6, v2.0.0rc1 and now v2.0.0rc2.

Visable effects of the bug are that the button widgets cease being visible, but can be clicked on, Pop-up menus are similarly invisible but present and the ability to go from queue screen to upload screen is lost, but not the other way round.  In preferances click boxes are present and the ticks are visible, but numeric entry boxes have invisible text.  (Get the picture?)  The server log window is blank until scrolled.  It then works fine, however it is not repainted on window refresh.

This has been seen with various versions of wxGTK and the current version is 2.4.2 linked against GTK1.

I think one of the activations is completing a file.  The temporary and saved directories are on the same filesystem, but different directories.  Not sure if this will make any difference but it might do if there is a race condition going on.

Running on Linux, basically Gentoo.  If you need me to test something then just ask.
Title: Re: Losing widgets bug.
Post by: deltaHF on April 17, 2004, 03:51:36 AM
hiya.. well u are not the only one having probs with gentoo & amule ..
some users said after they leave amule running and switch to the search window (during the runtime) everything was ok .. try it plz

greets
Title: Re: Losing widgets bug.
Post by: xyzzy on April 17, 2004, 04:03:15 AM
I can switch between windows fine.  They all have lost widgets.  The search window is a mess.  It appears to be missing the result display window.  Switch back and forth between different windows does't seem to make any difference.

The newish thing that was one of the triggers for the bad behaviour looked like it was completing a download.  I'm not sure whether that will help identify the bug.
Title: Re: Losing widgets bug.
Post by: xyzzy on April 17, 2004, 04:08:00 AM
Sorry, just to clarify, did you mean to switch to the search window while leaving it running or to switch to it to regain the widgets?

Thanks.
Title: Re: Losing widgets bug.
Post by: xyzzy on April 17, 2004, 01:56:09 PM
O.k.  I restarted aMule and left it running mainly in the search pane.  It still lost some widgets and the last thing that is displayed is the completion of a file.  (I wasn't at the machine when it happened.)  I haven't had the chance to carefully watch a file finish but it does seem likely that this is part of the cause.

Hope this help in tracking down the bug.
Title: Re: Losing widgets bug.
Post by: deltaHF on April 18, 2004, 12:54:47 AM
oki, thanky
for rc3 we rewrote the completion thread .. should help a lot ;)

greets
Title: Re: Losing widgets bug.
Post by: Kry on April 18, 2004, 02:08:12 AM
Quote
I think one of the activations is completing a file. The temporary and saved directories are on the same filesystem, but different directories. Not sure if this will make any difference but it might do if there is a race condition going on.

3 times he said it before someone told him that the completion was bugged and we rewrote it for rc3 :PPPPPPP
Title: Re: Losing widgets bug.
Post by: xyzzy on April 18, 2004, 02:16:10 AM
Thanks.  Any idea when rc3 is going to come out or do I need to start using CVS?
Title: Re: Losing widgets bug.
Post by: deltaHF on April 18, 2004, 02:18:46 AM
cvs = rc2 ..
rc3 .. depend to our time & bugs we found ;)
Title: Re: Losing widgets bug.
Post by: xyzzy on April 18, 2004, 11:50:21 AM
Just to confuse things:  I've just had two file completed without widgets getting lost.
Title: Re: Losing widgets bug.
Post by: Kry on April 18, 2004, 05:15:37 PM
Because it's a very complex bug that int4
eracts amule, wxGTK and GTK itself... and has something to do with reinstaling an idle handler that gtk seems to try for some unknown reason ;)
Title: Re: Losing widgets bug.
Post by: xyzzy on April 18, 2004, 05:40:20 PM
Is this idle handler dealt with from wxGTK?  Or is the main amule code doing it?  I've used gtk a bit (via perl) and have had to deal with idle handlers, so if you can point me at the place to look at first, unless you've already fixed it, then I'll have a look.
Title: Re: Losing widgets bug.
Post by: GhePeU on April 18, 2004, 06:26:02 PM
Quote
Originally posted by xyzzy
Just to confuse things:  I've just had two file completed without widgets getting lost.

it's a very complex bug

it happens when amule is in the transfer window AND amule completes a file AND the file is being uploaded to someone (so program suspends upload and restarts after the file is been  moved to incoming directory)
Title: Re: Losing widgets bug.
Post by: xyzzy on April 19, 2004, 12:59:37 AM
Quote
Originally posted by GhePeU
Quote
Originally posted by xyzzy
Just to confuse things:  I've just had two file completed without widgets getting lost.

it's a very complex bug

it happens when amule is in the transfer window AND amule completes a file AND the file is being uploaded to someone (so program suspends upload and restarts after the file is been  moved to incoming directory)

The condition on being in the transfer window is not necessary. I've seen it occur twice when in the searches pane.
Title: Re: Losing widgets bug.
Post by: ender on April 19, 2004, 03:22:20 PM
Make sure you don't have wx linked against GTK2. I've had the same bug, but it disappeared when I reemerged wxGTK with USE=-gtk2.
Title: Re: Losing widgets bug.
Post by: xyzzy on April 19, 2004, 05:11:29 PM
Quote
Originally posted by ender
Make sure you don't have wx linked against GTK2. I've had the same bug, but it disappeared when I reemerged wxGTK with USE=-gtk2.

I've reemerged wxGTK with USE=-gtk2 and it doesn't make any difference.  The bug still seems to be there.  I'll have another go at it later when I've got some time.   It is just crashing on me rather a lot at the moment and not getting to the "losing widgets" stage.
Title: Re: Losing widgets bug.
Post by: ender on April 19, 2004, 05:26:05 PM
Do you use wxGTK 2.4.1 or 2.4.2? Try emerging 2.4.2, that's what I use (since you probably don't want to set ACCEPT_KEYWORDS [that would try to upgrade too much unrelated things], do a emerge -u /usr/portage/x11-libs/wxGTK/wxGTK-2.4.2.ebuild which will only upgrade wxGTK).
Title: Re: Losing widgets bug.
Post by: xyzzy on April 19, 2004, 05:46:40 PM
Quote
Originally posted by ender
Do you use wxGTK 2.4.1 or 2.4.2? Try emerging 2.4.2, that's what I use (since you probably don't want to set ACCEPT_KEYWORDS [that would try to upgrade too much unrelated things], do a emerge -u /usr/portage/x11-libs/wxGTK/wxGTK-2.4.2.ebuild which will only upgrade wxGTK).

I've already emerged 2.4.2.  I have my own shadow tree that has modified ebuilds in it.

Still isn't happy.

I haven't had time to recompile everything again.  Possibly tomorrow, but tomorrow may well be rather  busy.
Title: Re: Losing widgets bug.
Post by: GhePeU on April 19, 2004, 10:03:55 PM
Quote
Originally posted by xyzzy
Quote
Originally posted by GhePeU
Quote
Originally posted by xyzzy
Just to confuse things:  I've just had two file completed without widgets getting lost.

it's a very complex bug

it happens when amule is in the transfer window AND amule completes a file AND the file is being uploaded to someone (so program suspends upload and restarts after the file is been  moved to incoming directory)

The condition on being in the transfer window is not necessary. I've seen it occur twice when in the searches pane.


I reported this bug in january and in 4 month it never occurred when during all the completing process amule isn't in transfer window. it happens if you switch for a moment in transfer windows too during completion, but not in other windows.
there's a similar bug that occurs randomly, but in this case program doesn't work anymore and upload and downloads stop too.
Title: Re: Losing widgets bug.
Post by: xyzzy on April 21, 2004, 10:32:05 AM
Having messed around with wxWidgets some more I think that it is a bug in that, and I've managed to work around it.  It does seem to be working more reliably now.  

Is there any way to compile amule without it using wxWidgets?
Title: Re: Losing widgets bug.
Post by: Kry on April 21, 2004, 09:17:17 PM
No, thre's no way to compile it without wx


And the bug is fixed on developers cvs afaik, will be on rc3
Title: Re: Losing widgets bug.
Post by: GhePeU on May 02, 2004, 11:48:46 PM
I can confirm, on rc3 this bug doesn't occur
Title: Re: Losing widgets bug.
Post by: Kry on May 03, 2004, 11:53:45 AM
Great :)