Bug 388966

Summary: Enabling "Search" plugin freezes KTorrent application
Product: [Applications] ktorrent Reporter: andrey2tsarenko
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED WORKSFORME    
Severity: crash CC: aidanrichbennett, andrey2tsarenko, andysem, byanbyanroryan, cyberbeat, ebiyeidums, gassaf, geomaticien, jackhill3103, komodo, mailomaysara, mfurqan576, mundolibre, norbertom8, nubiocicarini, r087r70, richard.epost, udippel, wincak
Priority: NOR    
Version: 5.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.2.0
Sentry Crash Report:
Attachments: log

Description andrey2tsarenko 2018-01-14 16:40:34 UTC
When you click on "Search" addon to activate it, it became no to recognise anything. There are no problems with other addons. So I need to restart the programm
Comment 1 Núbio Cicarini Hott 2018-05-30 19:04:38 UTC
I also have the same problem
Comment 2 Núbio Cicarini Hott 2018-06-01 00:57:57 UTC
The output refers to the libpng error. However, I have already corrected the srgb images of the plugin search (according to the arch libpng error wiki) and the error persists.
Comment 3 Ryan 2018-09-17 20:03:20 UTC
This happens to me also.

Overview:
1) run ktorrent immediately after fresh install (in Debian sid, from file ktorrent_5.1.1-1_amd64.deb)
2) click 'Plugins'
3) select the checkbox for the 'Search' plugin
4) a progress bar appears in the bottom status bar on the right, very quickly stops at 50%.
5) program is completely unresponsive to clicks
6) SIGTERM won't end it, but SIGKILL will

Complete terminal output:
ryan@pocketwee:~$ ktorrent
qt5ct: using qt5ct plugin
Mon Sep 17 15:53:24 2018: Bound to ::
Mon Sep 17 15:53:24 2018: Cannot bind to port 0.0.0.0:6881 : Address already in use
Mon Sep 17 15:53:24 2018: Bound to TCP port 6881
Mon Sep 17 15:53:24 2018: Cannot open /home/ryan/.local/share/ktorrent/groups : No such file or directory
Mon Sep 17 15:53:24 2018: Qt Debug: D-Bus global menu: no
Mon Sep 17 15:53:24 2018: Qt Debug: D-Bus system tray: no
Mon Sep 17 15:53:24 2018: Qt Warning: QSystemTrayIcon::setVisible: No Icon set
Warning: QSystemTrayIcon::setVisible: No Icon set
Mon Sep 17 15:53:24 2018: Qt Warning: Parse error in  "/home/ryan/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line  1 , col  1 :  "unexpected end of file"
Warning: Parse error in  "/home/ryan/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line  1 , col  1 :  "unexpected end of file"
Mon Sep 17 15:53:24 2018: Started update timer
Mon Sep 17 15:53:25 2018: Network is up
Mon Sep 17 15:53:25 2018: Failed to suppress sleeping
Mon Sep 17 15:53:25 2018: Stopped update timer
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 6895, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 6895, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 6909, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 6909, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 6962, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 6962, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7033, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7033, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7095, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7095, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7166, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7166, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7228, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7228, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7299, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7299, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7361, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7361, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7432, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7432, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7494, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7494, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7565, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7565, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7627, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7627, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7698, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7698, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7760, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7760, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7790, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7790, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7821, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7821, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7852, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7852, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:27 2018: Qt Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7883, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Warning: QXcbConnection: XCB error: 8 (BadMatch), sequence: 7883, resource id: 62914796, major code: 130 (Unknown), minor code: 3
Mon Sep 17 15:53:39 2018: Qt Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Mon Sep 17 15:53:39 2018: Qt Warning: libpng warning: iCCP: known incorrect sRGB profile
Warning: libpng warning: iCCP: known incorrect sRGB profile
Mon Sep 17 15:53:39 2018: Loading home page from /usr/share/ktorrent/search/home/home.html
Killed
ryan@pocketwee:~$
Comment 4 Christoph Feck 2018-10-04 22:20:28 UTC
Reproducible on openSUSE Krypton (Tumbleweed+KTorrent master from K:U:E)

Simply enabling 'Search' plugin freezes the application.
Comment 5 Christoph Feck 2018-11-11 14:13:21 UTC
*** Bug 400930 has been marked as a duplicate of this bug. ***
Comment 6 Uwe Dippel 2018-11-18 20:06:13 UTC
Same here, Kubuntu 18.04, daily updates.
Comment 7 Elton Idumange 2018-12-19 08:49:33 UTC
Experienced this bug today as well, just as stated.
Comment 8 Muhamamd Furqan 2019-01-02 19:10:09 UTC
Facing same issue
KDE Neon Latest version (5.14)
Comment 9 Muhamamd Furqan 2019-01-11 11:28:29 UTC
Update: the progress bar in KTorrent jumps to sometimes 50% and sometimes 51% when Search plugin is enabled. The search tab shows up but everything freezes. It is gone when KTorrent is killed and restarted.
On enabling, CPU usage jumps to 25% and memory usage to 23,120K.
Comment 10 Christoph Feck 2019-05-21 19:40:36 UTC
*** Bug 407349 has been marked as a duplicate of this bug. ***
Comment 11 Roberto 2019-08-07 12:13:58 UTC
confirmed on the latest 5.1.0 version
Comment 12 geomaticien 2019-08-30 00:17:06 UTC
Created attachment 122416 [details]
log

Confirmed for Ktorrent 5.1.0 on OpenSUSE Leap 15 too. The last line of the attached log is written when the search plugin box is checked.
Comment 13 wincak 2019-09-12 22:24:53 UTC
Bug still exists for latest KDE Neon 5.16 with KTorrent 5.1.2

There doesn't seem to be much going on in KTorrent repository except for various build-related fixes and minor changes in the last year or so.
Comment 14 David Marzal 2019-09-14 21:50:33 UTC
Ktorrent 5.1.2 in Arch Linux KDE-Plasma
Same problem here.
Tested also with LANG=C ktorrent in both X11 and Wayland sessions.
I don't get the Qt Warnings
The last line in the log is:
Loading home page from /usr/share/ktorrent/search/home/home.html

I did install kdewebkit kplotting

Without kdewebkit the app doesn't freeze, but there is no "Search" button obviously.
Comment 15 Gilbert Assaf 2019-11-21 23:06:20 UTC
The error is somehow caused by the default homepage, used by the search plugin. The homepage is a local html file, which causes webkit to hang, although the website seems valid. Moving to QWebEngine fixes the problem.
https://phabricator.kde.org/D25314
Comment 16 H.H. 2020-02-22 19:55:33 UTC
I can confirm this. When will a fix be released?
Comment 17 Richard 2020-07-17 20:04:20 UTC
Version 5.1.2 same same.
Comment 18 Justin Zobel 2022-10-12 03:50:08 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 19 Lastique 2022-10-12 08:10:27 UTC
Doesn't reproduce for me in Ktorrent 21.12.3 on Kubuntu 22.04. The search is useless though as most search sites are dead.
Comment 20 Ryan 2022-10-14 02:01:22 UTC
No longer freezes as in my Comment above.
Debian testing
ktorrent 21.12.3-1 amd64
But when I search for something I get

This site can’t be reached
ktorrent.searchplugin’s server IP address could not be found.
Comment 21 wincak 2022-10-26 15:28:36 UTC
I had this problem before, but search plugin works now and does not cause freezes. However the plugin is not really useful.
Operating System: KDE neon 5.26
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Comment 22 Bug Janitor Service 2022-11-10 05:12:57 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 23 Jack Hill 2023-11-12 11:06:10 UTC
Most likely fixed in that patch from Gilbert since no one seems to be able to reproduce
Comment 24 Jack Hill 2023-11-12 11:21:59 UTC
*** Bug 387368 has been marked as a duplicate of this bug. ***
Comment 25 Bug Janitor Service 2023-11-27 03:45:42 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 26 Bug Janitor Service 2023-12-12 03:45:59 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!