Bug 266711

Summary: ktorrent closes if I try to configure Shutdown
Product: [Applications] ktorrent Reporter: André Martins <aanm90>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED NOT A BUG    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description André Martins 2011-02-20 04:15:05 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

If I try to configure the shutdown the ktorrent simple closes and shuts down...

Reproducible: Always

Steps to Reproduce:
On the "principal" bar, click on "Shutdown" the click on "Configure Shutdown" it simply closes the ktorrent


Expected Results:  
Pop-up an windows to configure the options, I guess :\

OS: Linux (x86_64) release 2.6.37-ARCH
Compiler: gcc
Comment 1 Joris Guisson 2011-02-20 10:52:12 UTC
Version ?
Comment 2 Joris Guisson 2011-02-20 11:03:39 UTC
Note that, the intended workflow is to first configure it, and then enable it. 

However none of this should result in ktorrent shutting down. Do you see any crash dialog ?
Comment 3 André Martins 2011-02-20 21:52:59 UTC
Version: 4.0.5
But I can't configure, it's like the config button is programed to close ktorrent or something
Comment 4 Joris Guisson 2011-02-21 18:32:12 UTC
So you don't get a crash dialog ?
Comment 5 André Martins 2011-02-21 19:47:25 UTC
Nope, nothing, click on that or clicking to close ktorrent it's the same thing :\
Comment 6 Joris Guisson 2011-02-24 21:58:48 UTC
Can you post your log file after you reproduce this bug ? You can find it in ~/.kde/share/apps/ktorrent/log
Comment 7 André Martins 2011-02-27 05:41:22 UTC
I think I found what you want :) In the file is write:
dom Fev 27 04:30:23 2011: Qt Debug: ktorrent(14005)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktshutdownplugin.so" does not offer a qt_plugin_instance function.
dom Fev 27 04:30:23 2011: Qt Debug: ktorrent(14005)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/ktsyndicationplugin.so" does not offer a qt_plugin_instance function.
....
and finish with this:
dom Fev 27 04:30:25 2011: Accepted connection from [::ffff:***.***.**.**]:*****
dom Fev 27 04:30:26 2011: Accepted connection from [::ffff:***.***.**.**]:****
Comment 8 Joris Guisson 2011-02-27 10:40:57 UTC
That message is normal, nothing to worry about.

Can you run ktorrent under gdb ? 

gdb /usr/bin/ktorrent
run --nofork

It should then run until it exits or crashes. If it crashes you will get something like Caught signal SIGSEGV or SIGABRT

When you get a signal do bt and a backtrace will be generated, post that here.
Comment 9 André Martins 2011-02-27 12:08:24 UTC
I wait around 5 minutes and then I clicked in "configure shutdown":
[New Thread 0x7fffc97fa700 (LWP 18737)]
[New Thread 0x7fffc9ffb700 (LWP 18738)]
[Thread 0x7fffc97fa700 (LWP 18737) exited]
[Thread 0x7fffc9ffb700 (LWP 18738) exited]
/usr/bin/ktorrent: symbol lookup error: /usr/lib/kde4/ktshutdownplugin.so: undefined symbol: _ZN5Solid7Control12PowerManager23supportedSuspendMethodsEv
[Thread 0x7fffc7df4700 (LWP 18706) exited]
[Thread 0x7fffc85f5700 (LWP 18705) exited]
[Thread 0x7fffc8df6700 (LWP 18704) exited]

Program exited with code 0177.
(gdb) bt
No stack.
Comment 10 Joris Guisson 2011-02-27 21:13:01 UTC
Reinstall ktorrent, most likely you have a version installed which is compiled with KDE 4.5. Due to changes in KDE 4.6, your compiled version of ktorrent is no longer compatible with it.