qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.96k stars 3.95k forks source link

qbittorrent-nox 4.5.4 fails to stop properly on SIGINT #19287

Closed shapirus closed 3 weeks ago

shapirus commented 1 year ago

qBittorrent & operating system versions

qbittorrent-nox v4.5.4 OS: Debian x86-64, bookworm+trixie mixed Qt: 5.15.8+dfsg-11 / 6.4.2+dfsg-11 libtorrent-rasterbar10: 1.2.9-0.3 libtorrent-rasterbar2.0: 2.0.9-1

What is the problem?

When qbittorrent-nox receives SIGINT via Ctrl+C in the controlling terminal, the following output appears:

^CCatching signal: SIGINT
Exiting cleanly
QObject::killTimer: Timers cannot be stopped from another thread
QObject::~QObject: Timers cannot be stopped from another thread

After this, qbittorrent-nox waits for a long time, or until another Ctrl+C is pressed, on which it exits immediately.

This issue was not observed with qbittorrent-nox v4.1.5 and v4.2.5 which were installed on this system before upgrading to v4.5.4. Clean shutdown after catching SIGINT happened within only a few seconds.

Steps to reproduce

No response

Additional context

The storage mount point where downloads are saved is a file system mounted remotely over sshfs. Not sure whether it matters, but it's a less than standard use case because of much higher file system latency, so it's worth mentioning.

Log(s) & preferences file(s)

Notice the timestamp difference between the "ready to exit" and the previous messages: this is where it waits after printing those QT error messages.

(N) 2023-07-07T12:17:47 - qBittorrent termination initiated
(I) 2023-07-07T12:17:47 - UPnP/NAT-PMP support: OFF
(N) 2023-07-07T12:22:01 - qBittorrent is now ready to exit
(N) 2023-07-07T12:23:59 - qBittorrent termination initiated
(I) 2023-07-07T12:23:59 - UPnP/NAT-PMP support: OFF
(N) 2023-07-07T12:24:46 - qBittorrent is now ready to exit
xavier2k6 commented 2 months ago

@shapirus Can you reproduce with latest version 4.6.5?

shapirus commented 2 months ago

@shapirus Can you reproduce with latest version 4.6.5?

I will have to check this. Will post an update when I do.

xavier2k6 commented 3 weeks ago

qbittorrent-nox v4.5.4

Version is obsolete & no further response/feedback from OP.

Thank you for your contribution, we are starting to close all old/stale/obsolete tickets.

Please update to latest qBittorrent 5.0.0 ATTOW.

If any issues are experienced, please open a new ticket.