Bug 29967

Summary: qbittorrent prevents ksmserver from rebooting/shutdown
Product: Mageia Reporter: Nikolay Sabelnikov <79625490833>
Component: RPM PackagesAssignee: Matteo Pasotti <matteo.pasotti>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: 79625490833, davidwhodgins, fri, geiger.david68210, matteo.pasotti
Version: CauldronKeywords: UPSTREAM
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://github.com/qbittorrent/qBittorrent/issues/13865
Whiteboard:
Source RPM: qbittorrent CVE:
Status comment:

Description Nikolay Sabelnikov 2022-01-30 13:09:49 CET
Description of problem:
The problem is not even in qbittorrent itself, but in qt5 itself, on which qbittorrent is built.

Version-Release number of selected component (if applicable):
nikolanp@localhost ~> rpm -qa | grep qbittorrent
qbittorrent-4.3.3-1.mga8
nikolanp@localhost ~> 

Operating System: Mageia 8
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.15.16-desktop-1.mga8
OS Type: 64-bit
Processors: 6 × AMD FX(tm)-6300 Six-Core Processor
Memory: 7.7 ГиБ of RAM
Graphics Processor: GeForce GT 630/PCIe/SSE2

How reproducible:
With qbittorrent enabled on kde, try rebooting/shutdown.

Steps to Reproduce:
Just trying to shutdown/reboot the system.

Problem solution: update to version 4.4.0 and build on qt6.
Nikolay Sabelnikov 2022-01-30 13:09:59 CET

CC: (none) => 79625490833

Comment 1 Morgan Leijström 2022-01-31 11:25:27 CET
Thank you for reporting

According to description problems are noticed on mga8.
Do you see it on Cauldron too?

A relevant excerpt of the journal and any other error messages would be nice.

Version: Cauldron => 8
CC: (none) => fri

Comment 2 Nikolay Sabelnikov 2022-01-31 11:43:27 CET
(In reply to Morgan Leijström from comment #1)
> Thank you for reporting
> 
> According to description problems are noticed on mga8.
> Do you see it on Cauldron too?
> 
> A relevant excerpt of the journal and any other error messages would be nice.

This problem is seen on all linux distributions between qbittorrent and kde. If you have qbittorent in cauldron built with qt5, then there is a problem there as well. Solving the problem of building a package on qt6.

Read carefully the bug on github qbittorrent. https://github.com/qbittorrent/qBittorrent/issues/13865
Comment 3 Morgan Leijström 2022-01-31 11:58:31 CET
CC katanek and David H who have reported upon qbittorrent during its previous bug here.

CC: (none) => davidwhodgins, j.alberto.vc

Comment 4 Nikolay Sabelnikov 2022-01-31 12:10:10 CET
(In reply to Morgan Leijström from comment #3)
> CC katanek and David H who have reported upon qbittorrent during its
> previous bug here.

This problem has been there for a long time, but the solution was only recently. They thought they tried it, including me. They started a bug in kde bugzilla, but not in kde itself, as in qbittorrent there is no problem, but the problem was in qt5. On which the package is assembled. There was a decision to try to build on qt6, while the problem is no longer there.

This problem exists also in version 4.4.0 on qt5
Comment 5 Morgan Leijström 2022-01-31 12:12:23 CET
One reason not to switch to qt6 is users loose qbittorrent settings.
https://github.com/qbittorrent/qBittorrent/issues/16325

So if we need to switch to qt6, that qbittorrent should go in backports.
Comment 6 Morgan Leijström 2022-01-31 12:15:46 CET
CC:ing maintainer, Matteo, retrieved from
https://madb.mageia.org/package/show/name/qbittorrent

CC: (none) => matteo.pasotti

Comment 7 Morgan Leijström 2022-01-31 12:23:16 CET
We should also update the upstream site URI noted in the package and displayed in madb.
Comment 8 katnatek 2022-01-31 20:05:13 CET
Confirm the bug on real hardware with mageia 8 i586 Plasma
I always close first all my applications so i did't notice the fail

CC: j.alberto.vc => (none)

Comment 9 Lewis Smith 2022-01-31 21:36:30 CET
Thank you katnatek for this additional information. Can we understand that if you close qbittorrent before shutting down - no problem? I cannot imagine shutting down a computer without first closing all running user applcations. Nor what is involved in closing this one. But it looks an easy way out, which Nikolay doubtless does.

@Nikolay : thank you for all the background information you provided about this.

CC: (none) => lewyssmith

Comment 10 Morgan Leijström 2022-02-01 00:17:42 CET
(In reply to Lewis Smith from comment #9)
> I cannot imagine shutting down a computer without
> first closing all running user applcations.

I do that regularly with such apps, relying on desktop interaction.
Nextcloud-client, Ktorrent, KDEConnect live in system tray chewing along, i think very few users care.  I also logout/reboot with Dolphin, Thunderbird, Firefox,... up.
Comment 11 Nikolay Sabelnikov 2022-02-01 07:27:21 CET
If you exit qbittorrent early before starting the shutdown or reboot process, then there is no problem, as there is no source of the problem.
Comment 12 Nikolay Sabelnikov 2022-02-01 14:27:55 CET
They say that qt6 is still stable.
https://github.com/qbittorrent/qBittorrent/issues/16337#issuecomment-1026760482
Comment 13 Morgan Leijström 2022-02-01 14:47:48 CET
As a workaround for them in need i see qBittorrent is also available both as Appimage and as Flatpak, for which we have instructions in our wiki.
But i dont know if they have similar problems.
Comment 14 Nikolay Sabelnikov 2022-02-01 15:15:11 CET
Tomorrow I will check qbittorrent from flatpak
Comment 15 Nikolay Sabelnikov 2022-02-02 07:58:33 CET
I noticed one feature, qbittorrent blocks, only when the task is active, namely either when loading or when distributing.
Comment 16 Nikolay Sabelnikov 2022-02-16 21:36:14 CET
today opensuse sent a qt6 build to factori, maybe you will send it to cauldron?
https://bugzilla.opensuse.org/show_bug.cgi?id=1193893 https://build.opensuse.org/request/show/955428

Version: 8 => Cauldron
Keywords: (none) => UPSTREAM

Comment 17 Morgan Leijström 2022-02-16 22:21:10 CET
Yes it is a good idea to switch it to qt6 in Cauldron first.
(if not already, but I see description still say qt5 for cauldron at 
https://madb.mageia.org/package/show/name/qbittorrent/release/cauldron)

Assigning to maintainer.

Assignee: bugsquad => matteo.pasotti

Comment 18 Nikolay Sabelnikov 2022-02-16 23:23:52 CET
there's already version 4.4.1.
Lewis Smith 2022-02-18 15:58:21 CET

CC: lewyssmith => (none)

Comment 19 David GEIGER 2023-06-03 16:08:27 CEST
qbittorrent on Cauldron was fixed!

CC: (none) => geiger.david68210