Bug 490894 - KTorrent persistently writing 2 bytes to a "magnets" file while torrents are active
Summary: KTorrent persistently writing 2 bytes to a "magnets" file while torrents are ...
Status: REPORTED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: 24.05.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-27 16:15 UTC by Luke Horwell
Modified: 2024-07-27 16:17 UTC (History)
0 users

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 Luke Horwell 2024-07-27 16:15:50 UTC
SUMMARY

When a torrent is active, i.e. downloading or seeding, a file named "magnets" in ~/.local/share/ktorrent is persistently being written to in a loop. This causes the HDD activity indicator to be constantly flickering on/off.

The content of that file is just 2 bytes: "le". Happens even under a fresh configuration. No magnets are active.

STEPS TO REPRODUCE
1. Start a torrent, such as KDE Neon ISO.

STEPS TO DIAGNOSE
1. Install "inotifywait" package for the distro
2. Run "inotifywait -m -r /home/$USER/.local/share/ktorrent/"

WORKAROUND
Create a symbolic link for "magnets" to "/dev/null".

SOFTWARE/OS VERSIONS
OS: Arch Linux
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
- Still happens even if all plugins are disabled.
- Deleting the file immediately recreates it.
Comment 1 Luke Horwell 2024-07-27 16:17:02 UTC
Forgot to add the output of inotifywait, if it helps:

```
/home/luke/.local/share/ktorrent/ OPEN magnets
/home/luke/.local/share/ktorrent/ MODIFY magnets
/home/luke/.local/share/ktorrent/ CLOSE_WRITE,CLOSE magnets
```
(repeated multiple times every second)