Bug 361997 - can't resume torrent from system tray icon
Summary: can't resume torrent from system tray icon
Status: REPORTED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 11:50 UTC by Ed Hamilton
Modified: 2022-11-21 13:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Hamilton 2016-04-20 11:50:11 UTC
I can suspend seeding by right clicking on the icon in the system tray. But when I try to restart seeding by right clicking on that icon nothing happens. I then restore ktorrent in its window and right click "Start" or "Force Start". Nothing happens. I kill ktorrent and restart it and it is not seeding. If I then right click "Start" or "Force Start" nothing happens. The app never crashes, but it never resumes seeding. 

My first attempt to fix it was to replace the entire ~/.local/share/ktorrent/ folder with a backup. But that didn't work.

Next I restored from a backup the ~/.config/ktorrentrc file and ktorrent worked as desired.

In the following "diff" command, I named the file that doesn't work ktorrent.problems and the one that works kept its proper name. Using "meld" shows that the lines referring to suspend are in the section called [QueueManager], and the line describing the state is in the section called [TrackerView]. I've added the section names to the output of "diff".

[ed@arch /working]# diff ktorrentrc.problems ~/.config/ktorrentrc 

42,43c42
[QueueManager]
< suspended=true
< suspended_torrents=99016b8d8b5a44c64955dbd337259b3b18430fc4
---
> suspended=false
66c65
[TrackerView]
< state=AAAA/wAAAAAAAAABAAAAAQAAAAABAAAAAAAAAAAAAAAAAAAAAAAAA3UAAAAGAQEAAQAAAAAAAAAAAAAAAGT/////AAAAgQAAAAAAAAAGAAABgQAAAAEAAAAAAAAAZAAAAAEAAAAAAAAAZAAAAAEAAAAAAAAAZAAAAAEAAAAAAAAAZAAAAAEAAAAAAAAAZAAAAAEAAAAAAAAD6AA=
---
> state=AAAA/wAAAAAAAAABAAAAAQAAAAABAAAAAAAAAAAAAAAAAAAAAAAABEUAAAAGAQEAAQAAAAAAAAAAAAAAAGT/////AAAAgQAAAAAAAAAGAAABgQAAAAEAAAAAAAAAZAAAAAEAAAAAAAAAZAAAAAEAAAAAAAAAZAAAAAEAAAAAAAAAZAAAAAEAAAAAAAABNAAAAAEAAAAAAAAD6AA=


So evidently ktorrent is not changing the state of the torrent when I try to do so using the system tray icon.

Reproducible: Always

Steps to Reproduce:
1. has happened both times I tried it, as described above in details.
2.
3.



as mentioned, restoring the ~/.config/ktorrentrc from a backup enables ktorrent to work again correctly.
By the way, I am almost positive this happened the first time using ktorrent 4.x and the system tray icon. The 5.0 version just hit the repository yesterday.
today's configuration
plasmashell --version
plasmashell 5.6.2
ktorrent --version
ktorrent 5.0.1
uname -sr
Linux 4.5.0-1-ARCH

A note regarding severity as requested below: I don't know if this rates as normal or minor. The workaround is easy if the user figures out what file to restore and has a backup or, possibly, edits the ktorrentrc file. I didn't try editing the file. But that doesn't seem like something you would want most users to have to do.
Comment 1 Justin Zobel 2022-11-21 08:22:18 UTC
Thank you for reporting this issue 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 issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Ed Hamilton 2022-11-21 13:46:27 UTC
I cannot reproduce the problem. It seems to be solved. I was able to suspend torrents from the system tray icon by checking "Suspend Torrents." I was able to resume torrents by removing the checkmark. I am not using Arch Linux right now, so the situation is not exactly the same as before.

[ed@bookworm ~]$ uname -a
Linux bookworm 6.0.0-4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.8-1 (2022-11-11) x86_64 GNU/Linux
plasmashell --version
plasmashell 5.26.3
ktorrent --version
ktorrent 21.12.3

--Ed H.