aMule Forum

English => aMule Help => Topic started by: Ateo on December 19, 2004, 08:29:25 AM

Title: Question gtk-qt-engine
Post by: Ateo on December 19, 2004, 08:29:25 AM
Is this supported with aMule? I installed the engine and it works perfect with all my gtk apps except aMule.
Title: Re: Question gtk-qt-engine
Post by: lfroen on December 19, 2004, 11:36:12 AM
gtk-qt - WTF is that ? url would be helpful.
Title: Re: Question gtk-qt-engine
Post by: Gusar on December 19, 2004, 12:02:58 PM
gtk-qt is a gtk-theme-engine that uses qt widgets for drawing, making gtk apps look like kde apps. It worked fine with aMule the last time I tested it. I think Ateo's problem is that he has aMule (wxWidgets actually) linked against gtk1, whereas gtk-qt is gtk2 only.
Title: Re: Question gtk-qt-engine
Post by: Ateo on December 19, 2004, 07:30:08 PM
Gusar: I compiled amule against gtk2.

Here's the link for gtk-qt-engine: http://xserver.freedesktop.org/Software/gtk-qt

The exact issue is.... I *CAN* open aMule but anytime I click on the transfer button to view my transfers, it bombs out. I can access every other part of aMule. Here is some info when I launch amule from terminal:
Code: [Select]
dracco@epitaph ~ $ amule
Initialising aMule
Userhash loaded: 33B46DxxxxxxxxxC6FEE
*** UDP socket at 4664
*** UDP socket at 4672
External connections disabled in config file .eMule
*** reading servers
Loading temp files from /media/p2p/temp.
Empty dir /media/public/ shared
*** TCP socket at 4661
ListenSocket: Ok.
AICH Thread: Syncronization thread started.
AICH Thread: Masterhashes of known files have been loaded.
AICH Thread: No new files found.
AICH Thread: Thread terminated.
QPainter::begin: Cannot paint null pixmap
QPainter::setPen: Will be reset by begin()
QPainter::setBrush: Will be reset by begin()
QPainter::setBrush: Will be reset by begin()
QPainter::setPen: Will be reset by begin()

OOPS! - Seems like aMule crashed.
        Version is: aMule 2.0.0rc7 using wxGTK2 v2.4.2
--== BACKTRACE FOLLOWS: ==--

[0] amule(_ZN9CamuleApp16OnFatalExceptionEv+0x24a) [0x824606e]
[1] /usr/lib/libwx_gtk2-2.4.so(wxFatalSignalHandler+0x28) [0xb7e6ca7c]
[2] /lib/libpthread.so.0 [0xb7f89167]
[3] [0xffffe420]
[4] /usr/X11R6/lib/libX11.so.6(XSetTile+0x1e) [0xb7162dce]
[5] /usr/kde/3.3/lib/kde3/plugins/styles/keramik.so(_ZN7Keramik11TilePainter4drawEP8QPainteriiiiRK6QColorS5_bNS0_9PaintModeE+0x8a3) [0xb664ca3b]
[6] [0x40033e]
Aborted

I'm pretty sure you're going to tell me "not supported" but it never hurts to ask.
Title: Re: Question gtk-qt-engine
Post by: Jacobo221 on December 19, 2004, 10:24:37 PM
not supported

:P

no, really, that's soem gtk-qt bug then :-(
you should report them.

Greets!
Title: Re: Question gtk-qt-engine
Post by: Ateo on December 19, 2004, 10:56:01 PM
Okie dokie. Thanks. I just didn't know how I should have addressed first. :)
Title: Re: Question gtk-qt-engine
Post by: Ateo on December 27, 2004, 12:19:03 PM
Well. It was me. My compile flags were too aggressive.  8o
Title: Re: Question gtk-qt-engine
Post by: skolnick on December 27, 2004, 03:34:23 PM
Please Ateo, tell us your wrong and your right compilation flags, just in case somebody else is having problems with this.

Regards.
Title: Re: Question gtk-qt-engine
Post by: Ateo on December 27, 2004, 08:31:40 PM
Quote
Originally posted by skolnick
Please Ateo, tell us your wrong and your right compilation flags, just in case somebody else is having problems with this.

Regards.

The flags I was using were:
Code: [Select]
-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
-fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays

I admit I was a bit creative with my flags. 2 packages started to give me headaches with those flags so I shaved down my flags to:
Code: [Select]
-march=athlon-xp -O2 -pipe -mno-sse
... and now my system seems even faster.

I run an "unstable" gentoo system so I like to try out different things. The new flags was a suggestion from a gentoo developer.

P.S. aMule looks really nice with gtk2 using this gtk-qt engine. Works great too! Visually, to me, it looks much better than emule or any other p2p I've tried in recent times. =)
Title: Re: Question gtk-qt-engine
Post by: Theetjuh on December 28, 2004, 12:22:29 AM
So you say wxWidgets has no memory leakes anymore with gtk2 enabled ?
Title: Re: Question gtk-qt-engine
Post by: Ateo on December 28, 2004, 01:20:08 AM
I haven't used rc8 long enough to say yes. I can say this... with amule running, my cpu usage lingers at around 16%.. average.. depending on what I'm doing. Memory usage seems normal to me.

This is aMule 2.0.0rc8 using wxGTK2 v2.4.2.
Title: Re: Question gtk-qt-engine
Post by: Theetjuh on December 28, 2004, 10:48:04 PM
I've heard that GTK2 support in 2.4.2 is very bad ... but you're using it ?(
Title: Re: Question gtk-qt-engine
Post by: a-snu on December 28, 2004, 10:59:31 PM
mmh tell me how can you ride your mule with gtk2 ...

rc7+wxGTK-2.4.2/2.5.3 [USE=gtk2 unicode] linked to gtk2 worked well
rc8+wxGTK-2.4.2/2.5.3 [USE=gtk2 unicode] linked to gtk2 work well 'till open connections are   limited to a bunch

are you using an ebuild or compiling by hand?
Title: Re: Question gtk-qt-engine
Post by: Ateo on December 29, 2004, 01:05:05 AM
I made my own ebuild for rc7-rc8. I've attached it if you want to try it out. It's unsupported by gentoo and by me. From my understanding, it's amule + gtk2 + wxGTK 2.5.3 that's a problem. amule + gtk2 + wxGTK 2.4.2 is fine. You can also use gtk1 + wxGTK-2.5.3... Again, from my understanding. I may be wrong.

Assuming you're using gentoo just drop the attachment into your {portage_overlay}/net-p2p/amule and good luck.
Title: Re: Question gtk-qt-engine
Post by: Ateo on December 29, 2004, 01:14:43 AM
Got me... I linked wxGTK 2.4.2 to gtk2 just fine. Works with amule even. This is so cool it makes me want to slap my mother! :-P
Title: Re: Question gtk-qt-engine
Post by: a-snu on December 29, 2004, 01:44:49 PM
k, my 2 days testing is going well ... gtk2 + rc8 works well, no crash at all

first i emerged wxgtk 2.4.3 [unicode and gtk2], then i emerged 2.5.3 with the same USE, last i emerged amule [unicode and gtk2] ... cpu is quiet ...

i used another ebuild instead ... it was written to support wxGTK-2.5.3
Title: Re: Question gtk-qt-engine
Post by: Ateo on December 29, 2004, 08:03:29 PM
Hmm. amule + gtk2 + wxgtk 2.5.3  != work for me. Sucks up all my CPU and crashes randomly. Oh well, it's unsupported for a reason. :)
Title: Re: Question gtk-qt-engine
Post by: Ateo on January 01, 2005, 07:57:05 PM
Quote
Originally posted by a-snu
k, my 2 days testing is going well ... gtk2 + rc8 works well, no crash at all

first i emerged wxgtk 2.4.3 [unicode and gtk2], then i emerged 2.5.3 with the same USE, last i emerged amule [unicode and gtk2] ... cpu is quiet ...

i used another ebuild instead ... it was written to support wxGTK-2.5.3

So I tried this after recompiling gtk2 && wxGTK 2.5.3 with my new cflags, amule seems to work fine against gtk2/gxGTK 2.5.3.....
Title: Re: Question gtk-qt-engine
Post by: a-snu on January 02, 2005, 03:55:55 AM
yeah!  :D
Title: Re: Question gtk-qt-engine
Post by: Ateo on January 02, 2005, 05:56:19 AM
I take that back. It crashes my kde task bar constantly...
Title: Re: Question gtk-qt-engine
Post by: a-snu on January 02, 2005, 02:30:44 PM
well i got this weird problem in gnome too ... there's something wrong with unicode text ... try disabling systray, restart amule, if it doesn't crash ... try re-enabling it ...
Title: Re: Question gtk-qt-engine
Post by: Ateo on January 05, 2005, 10:52:15 PM
it doesn't matter. amule is unstable if I link it against either version of wxGTK with gtk2. So I'm recompiling amule against wxGTK 2.5.3/gtk1 which is fine. I'll just wait until it's all good and fixed.
Title: Re: Question gtk-qt-engine
Post by: a-snu on January 06, 2005, 03:44:01 AM
well, i'm sorry :( ... here amule's running as usual ...

take a look to my libs
Code: [Select]
unz@gunz unz $ ldd /usr/bin/amule
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x4132a000)
        libwx_gtk2u_xrc-2.5.so.3 => /usr/lib/libwx_gtk2u_xrc-2.5.so.3 (0x4ff47000)
        libwx_gtk2u_html-2.5.so.3 => /usr/lib/libwx_gtk2u_html-2.5.so.3 (0x4179b000)
        libwx_gtk2u_adv-2.5.so.3 => /usr/lib/libwx_gtk2u_adv-2.5.so.3 (0x4106a000)
        libwx_gtk2u_core-2.5.so.3 => /usr/lib/libwx_gtk2u_core-2.5.so.3 (0x41a07000)
        libwx_baseu_xml-2.5.so.3 => /usr/lib/libwx_baseu_xml-2.5.so.3 (0x4ffb8000)
        libwx_baseu_net-2.5.so.3 => /usr/lib/libwx_baseu_net-2.5.so.3 (0x4fdb8000)
        libwx_baseu-2.5.so.3 => /usr/lib/libwx_baseu-2.5.so.3 (0x4fde7000)
        libz.so.1 => /lib/libz.so.1 (0x4133d000)
        libcurl.so.3 => /usr/lib/libcurl.so.3 (0x4103a000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x41769000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x41634000)
        libdl.so.2 => /lib/libdl.so.2 (0x4124b000)
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x4fa0a000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x4fce2000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x4fcc6000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x414eb000)
        libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x4fd51000)
        libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x4f9fd000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x4fd58000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x41484000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x414e5000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x413dd000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x4155b000)
        libm.so.6 => /lib/libm.so.6 (0x41227000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x41629000)
        libc.so.6 => /lib/libc.so.6 (0x41115000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x41250000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4f9b7000)
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x41889000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x4fd90000)
        libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x41502000)
        libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x41910000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x419d6000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x41732000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x4ffec000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x41463000)
        libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x4f9f7000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x41459000)
        libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4f9d8000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x41373000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x414bc000)
        libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0x4f9ec000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x4f9ce000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4131a000)
Title: Re: Question gtk-qt-engine
Post by: Ateo on January 16, 2005, 08:40:54 PM
I started with a fresh install. I have wxGTK 2.5.3 installed (wxGTk-2.4.2 is not on my system). So this version of amule rc8 is working perfect. I ran an ~x86 gentoo system. It's not called unstable for no reason. This install is a stable x86 build...

In any case, amule 2.0.0-rc8 works great with gtk2/wxGTK 2.5.3....