Bug 27612 - ktorrent freezes when enabling the search plugin
Summary: ktorrent freezes when enabling the search plugin
Status: ASSIGNED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: KDE maintainers
QA Contact:
URL: https://www.kde.org/applications/inte...
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2020-11-15 21:45 CET by Rolf Pedersen
Modified: 2020-11-21 15:15 CET (History)
2 users (show)

See Also:
Source RPM: ktorrent-5.1.1-4.1.mga7.src.rpm
CVE:
Status comment:


Attachments
output from `ktorrent 2>&1 | tee ktorrent2.txt' (2.75 KB, text/plain)
2020-11-15 21:49 CET, Rolf Pedersen
Details
output from invoking ktorrent in cli, as detailed in comment (3.35 KB, text/plain)
2020-11-21 15:09 CET, Rolf Pedersen
Details

Description Rolf Pedersen 2020-11-15 21:45:18 CET
When choosing to enable the Search plugin in the Plugins tab of the ktorrent gui, the program freezes, becomes unresponsive, one core is 100% consumed.  Only kill -9 or -sighup will close the window.  The -sighup leaves child processes to clean up before ktorrent will start again.

On up-to-date 64-bit MGA7, using ktorrent-5.1.1-4.1.mga7

Internet shows similar complaint: https://bugs.kde.org/show_bug.cgi?id=388966

I tried to compile Master or even possibly patched 5.1 from https://github.com/KDE/ktorrent but was thwarted by newer dependencies I couldn't resolve from cauldron.

I found a similar report in bugzilla search and started ktorrent from CLI as instructed there:  https://bugs.mageia.org/show_bug.cgi?id=25002#c1

I'll attach that file.

Thanks.
Comment 1 Rolf Pedersen 2020-11-15 21:49:16 CET
Created attachment 11990 [details]
output from `ktorrent 2>&1 | tee ktorrent2.txt'

Once the program locks up, the output file doesn't change.  Finally, I kill the process(es).
Comment 2 David GEIGER 2020-11-16 09:22:14 CET
Please test with upcoming libktorrent-2.2.0-1.mga7 and ktorrent-5.2.0-1.mga7 in Core/Updates_testing repo!

CC: (none) => geiger.david68210

Comment 3 Rolf Pedersen 2020-11-16 14:55:45 CET
I found and installed:
libktorrent-common-2.2.0-1.mga7.noarch        Mon 16 Nov 2020 05:26:20 AM PST
ktorrent-5.2.0-1.mga7.x86_64                  Mon 16 Nov 2020 05:26:20 AM PST

Although checking the Search plugin box doesn't freeze the app, the Search tab doesn't appear.  Before, that tab appeared and the app immediately froze.

Now, the Search plugin box can be de-selected, ktorrent closed, but it is selected when the app is opened again.

I've moved ~/.cache/ktorrent and ~/.local/share/ktorrent, re-installed with rpm --replacefiles --replacepkgs, and run ktorrent from cli for many iterations.  The terminal output is much quieter, typically:

[rolf@x570i ktorrent]$ ktorrent 2>&1 | tee ktorrent9.txt
Qt: Session management error: Could not open network socket
^C

with only one instance of one more line:
Warning: A widget named ' "kcfg_showTotalSpeedInTitle" ' was found but there is no setting named ' "showTotalSpeedInTitle" '

There is a brief log, so I will post it here, in ~/local/share/ktorrent that contains what looks to me some interesting information.  Maybe you will find it interesting, also.

Thanks!

[rolf@x570i ~]$ cat .local/share/ktorrent/log
Mon Nov 16 05:27:30 2020: Bound to ::
Mon Nov 16 05:27:30 2020: Cannot bind to port 0.0.0.0:6881 : Address already in use
Mon Nov 16 05:27:30 2020: Bound to TCP port 6881
Mon Nov 16 05:27:30 2020: Cannot open /home/rolf/.local/share/ktorrent/groups : No such file or directory
Mon Nov 16 05:27:30 2020: Failed to open /home/rolf/.local/share/ktorrent/magnets : No such file or directory
Mon Nov 16 05:27:30 2020: Plugin /usr/lib64/qt5/plugins/ktorrent/ktorrent_infowidget.so version does not match KTorrent version, unloading it.
Mon Nov 16 05:27:30 2020: Plugin /usr/lib64/qt5/plugins/ktorrent/ktorrent_search.so version does not match KTorrent version, unloading it.
Mon Nov 16 05:27:30 2020: Plugin /usr/lib64/qt5/plugins/ktorrent/ktorrent_infowidget.so version does not match KTorrent version, unloading it.
Mon Nov 16 05:27:30 2020: Plugin /usr/lib64/qt5/plugins/ktorrent/ktorrent_search.so version does not match KTorrent version, unloading it.
Mon Nov 16 05:27:30 2020: Starting minimized
Mon Nov 16 05:27:30 2020: Started update timer
Mon Nov 16 05:27:30 2020: Suppressing sleep
Mon Nov 16 05:27:30 2020: Stopped update timer
Mon Nov 16 05:27:30 2020: Stopped suppressing sleep
Mon Nov 16 05:27:46 2020: Plugin /usr/lib64/qt5/plugins/ktorrent/ktorrent_infowidget.so version does not match KTorrent version, unloading it.
Mon Nov 16 05:27:57 2020: Signal 2 caught
Comment 4 Aurelien Oudelet 2020-11-16 21:16:49 CET
Hi, thanks for reporting this.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
CC: (none) => ouaurelien
Status: NEW => ASSIGNED
Assignee: bugsquad => kde

Comment 5 David GEIGER 2020-11-20 10:16:55 CET
You have not installed all updated packages.

List of updated packages:


libktorrent-common-2.2.0-1.mga7.noarch.rpm
libkf5torrent6-2.2.0-1.mga7.i586.rpm
libkf5torrent-devel-2.2.0-1.mga7.i586.rpm
lib64kf5torrent6-2.2.0-1.mga7.x86_64.rpm
lib64kf5torrent-devel-2.2.0-1.mga7.x86_64.rpm

ktorrent-5.2.0-3.mga7.i586.rpm
ktorrent-5.2.0-3.mga7.x86_64.rpm
libktcore16-5.2.0-3.mga7.i586.rpm
lib64ktcore16-5.2.0-3.mga7.x86_64.rpm
Comment 6 David GEIGER 2020-11-20 10:18:34 CET
New fixed list of updated packages:


libktorrent-common-2.2.0-1.mga7.noarch.rpm
libkf5torrent6-2.2.0-1.mga7.i586.rpm
libkf5torrent-devel-2.2.0-1.mga7.i586.rpm
lib64kf5torrent6-2.2.0-1.mga7.x86_64.rpm
lib64kf5torrent-devel-2.2.0-1.mga7.x86_64.rpm

ktorrent-5.2.0-1.mga7.i586.rpm
ktorrent-5.2.0-1.mga7.x86_64.rpm
libktcore16-5.2.0-1.mga7.i586.rpm
lib64ktcore16-5.2.0-1.mga7.x86_64.rpm
Comment 7 Rolf Pedersen 2020-11-21 15:09:50 CET
Created attachment 12012 [details]
output from invoking ktorrent in cli, as detailed in comment

Hi,
(In reply to David GEIGER from comment #5)
> You have not installed all updated packages.
> ...

Yes, I had found what was closest to the two packages you cited, as I said.  Perhaps I'm not sophisticated enough to understand more packages are implicated. ;)  Anyway, from mirrors.kernel.org
...
installing lib64ktcore16-5.2.0-1.mga7.x86_64.rpm lib64kf5torrent6-2.2.0-1.mga7.x86_64.rpm from /var/cache/urpmi/partial
...
and
[rolf@x570i ~]$ rpm -q libktorrent-common lib64kf5torrent6 lib64kf5torrent-devel ktorrent lib64ktcore16libktorrent-common-2.2.0-1.mga7
lib64kf5torrent6-2.2.0-1.mga7
package lib64kf5torrent-devel is not installed (not relevant to this, AFAIK)
ktorrent-5.2.0-1.mga7
lib64ktcore16-5.2.0-1.mga7
[rolf@x570i ~]$ ktorrent 2>&1 | tee ktorrent22.txt
-file attached, FWIW.

Search tab is active (perhaps due to my previous configurations) and apparently functional, albeit the default engines not so much, most seemingly stale.  

Aside, I am accustomed to the qbittorrent format of search engines as python scripts, which I can copy (not compose!) from lists provided by the program.  By comparison, the web-based ktorrent method seems less effective.  Nonetheless, one default engine, btdigg, provided magnet links for my trial searches.  URL=http://btdigg.com/search?q={searchTerms} is the format given for that search engine.   More learning on my part about using ktorrent might make it more useful to me.

Aside 2.0, closing the program from the gui "x" (in plasma) does not kill all ktorrent processes and I must kill them from cli before ktorrent will open again.  That's grist for another bug!

Bottom line, I'd say the reported bug has been solved, good work!
Thanks.
Comment 8 Rolf Pedersen 2020-11-21 15:15:55 CET
That would be http://btdig.com/search?q={searchTerms}

Note You need to log in before you can comment on or make changes to this bug.