Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qbittorrent 4.5.0 won't exit #18072

Closed
karabaja4 opened this issue Nov 27, 2022 · 34 comments
Closed

qbittorrent 4.5.0 won't exit #18072

karabaja4 opened this issue Nov 27, 2022 · 34 comments
Labels
Duplicate OS: Linux Issues specific to Linux distributions

Comments

@karabaja4
Copy link

qBittorrent & operating system versions

qbittorrent: 4.5.0 x64
Operating system: Arch Linux x64
Qt: 6.4.1
libtorrent-rasterbar: 2.0.8.0

What is the problem?

Clicking right-click -> Exit in the tray icon does not close the qbittorrent proccess. Instead, it becomes unresponsive (left-click does not restore the window aynmore). killall qbittorrent is required to exit.

Steps to reproduce

  1. Right click the tray icon.
  2. Click Exit.
  3. The tray icon remains and the process becomes unresponsive.

Additional context

4.4.5 took around ~10 seconds to exit after clicking "Exit", but it did eventually exit.
4.5.0 just stalls.

Log(s) & preferences file(s)

No response

@pbosab
Copy link

pbosab commented Nov 27, 2022

same here, here is the console log:

qBittorrent version: v4.5.0

Caught signal: SIGABRT

 0# getStacktrace[abi:cxx11]() in qbittorrent
 1# 0x000055A69666BD37 in qbittorrent
 2# 0x00007FE8F0651A00 in /usr/lib/libc.so.6
 3# 0x00007FE8F06A164C in /usr/lib/libc.so.6
 4# gsignal in /usr/lib/libc.so.6
 5# abort in /usr/lib/libc.so.6
 6# 0x00007FE8F0CA41C7 in /usr/lib/libQt6Core.so.6
 7# qt_assert(char const*, char const*, int) in /usr/lib/libQt6Core.so.6
 8# 0x00007FE8F275E561 in /usr/lib/libQt6Widgets.so.6
 9# QDialog::QDialog(QWidget*, QFlags<Qt::WindowType>) in /usr/lib/libQt6Widgets.so.6

QWidget: Must construct a QApplication before a QWidget

@bitterhalt
Copy link

bitterhalt commented Nov 28, 2022

Same here!

It only exit when I type: 'killall qbittorrent' twice in a row..

@sledgehammer999
Copy link
Member

Out of curiosity can you also test with official AppImage (download on mainstite)?

@karabaja4
Copy link
Author

Same deal with the AppImage, it just spams stderr with this error output until it is killed with 2xSIGINT.

@simonbcn
Copy link

Arch Linux
Same problem
2022-11-29_14-07

@sledgehammer999
Copy link
Member

What happens if you disable the tray icon? Preferences->Behavior->Show qbittorrent in notification area

@Rootdiv
Copy link

Rootdiv commented Nov 29, 2022

I have the same problem, and at the same time there is only an Exit button in the menu. If you go to Settings-> Behavior-> Show qbittorrent in the notification area and disable the display of the tray icon and click apply, then enable it and click apply, then everything works as before the update.
Ubuntu Mate 22.04.1 gtk2

@sledgehammer999
Copy link
Member

I see that most of you are on Arch and probably a bit knowledgeable: Can you try compiling 4.4.5 using the same dependencies as 4.5.0 (especially the Qt version) and report if the problem happens there too?

@karabaja4
Copy link
Author

karabaja4 commented Nov 29, 2022

Nothing has changed in regards to Qt version inside the Arch package between 4.4.5 and 4.5.0, and I'm positive that I updated only qbittorrent when doing the update and when this bug started to happen.

@sledgehammer999
Copy link
Member

sledgehammer999 commented Nov 29, 2022

Which DE are you using?
I have tried clean VMs of Ubuntu 22.10 (gnome), Xubuntu 22.10 (xfce) and Arch (KDE).
I can't reproduce it. The tray menu works correctly with the PPA version(ubuntu), the distro version(Arch) and the AppImage on the above VMs.

EDIT: I also don't get crashes on exit.

@Rootdiv
Copy link

Rootdiv commented Nov 29, 2022

Which DE are you using? I have tried clean VMs of Ubuntu 22.10 (gnome), Xubuntu 22.10 (xfce) and Arch (KDE). I can't reproduce it. The tray menu works correctly with the PPA version(ubuntu), the distro version(Arch) and the AppImage on the above VMs.

EDIT: I also don't get crashes on exit.

I'm using Ubuntu Mate 22.04, qbittorrent installed from PPA

@karabaja4
Copy link
Author

karabaja4 commented Nov 29, 2022

I'm using Openbox and tint2 on X11 on Arch.

@sledgehammer999
Copy link
Member

What does the following return?

echo $QT_QPA_PLATFORMTHEME

@Rootdiv
Copy link

Rootdiv commented Nov 29, 2022

What does the following return?

echo $QT_QPA_PLATFORMTHEME

gtk2

@karabaja4
Copy link
Author

karabaja4 commented Nov 30, 2022

What does the following return?

echo $QT_QPA_PLATFORMTHEME

qt5ct

@karabaja4
Copy link
Author

BTW, this seems like a duplicate: #18093

@rial1106
Copy link

rial1106 commented Nov 30, 2022

Same on Artix Linux.

Qt: 6.4.1
Libtorrent: 2.0.8.0
Boost: 1.80.0

OpenSSL: 3.0.7
zlib: 1.2.13

I also require 2 killalls to kill the program.

Edit (Added Error Log from ~/.xsession-errors)
log.txt

I've tried to remove all duplicate lines of the log and this is what i got using

sed -n "s/\s*[[:digit:]]\+#\s\(.*\)/\1/p" log.txt | awk '!x[$0]++'  > test
getStacktrace[abi:cxx11]() in qbittorrent
0x0000565146C8AD37 in qbittorrent
0x00007FEC41C51A00 in /usr/lib/libc.so.6
0x00007FEC41CA164C in /usr/lib/libc.so.6
gsignal in /usr/lib/libc.so.6
abort in /usr/lib/libc.so.6
0x00007FEC422A41C7 in /usr/lib/libQt6Core.so.6
qt_assert(char const*, char const*, int) in /usr/lib/libQt6Core.so.6
0x00007FEC43D5E561 in /usr/lib/libQt6Widgets.so.6
QDialog::QDialog(QWidget*, QFlags<Qt::WindowType>) in /usr/lib/libQt6Widgets.so.6
0x0000565146C8ADDB in qbittorrent
QWidget::~QWidget() in /usr/lib/libQt6Widgets.so.6
0x00007FEC44152AB2 in /usr/lib/libQt6Widgets.so.6
QSystemTrayIcon::~QSystemTrayIcon() in /usr/lib/libQt6Widgets.so.6
QObjectPrivate::deleteChildren() in /usr/lib/libQt6Core.so.6
QObject::~QObject() in /usr/lib/libQt6Core.so.6
0x0000565146DF663C in qbittorrent
Application::~Application() in qbittorrent
main in qbittorrent
0x00007FEC41C3C290 in /usr/lib/libc.so.6
__libc_start_main in /usr/lib/libc.so.6
_start in qbittorrent

@pbosab
Copy link

pbosab commented Nov 30, 2022

Which DE are you using? I have tried clean VMs of Ubuntu 22.10 (gnome), Xubuntu 22.10 (xfce) and Arch (KDE). I can't reproduce it. The tray menu works correctly with the PPA version(ubuntu), the distro version(Arch) and the AppImage on the above VMs.

EDIT: I also don't get crashes on exit.

awesomewm

@rial1106
Copy link

I don't use a Desktop Environment. I use XMonad as my window manager and startx. When I try to close qbittorrent the icon does remain in my tray and when I press it, it doesn't do anything. I use trayer as my tray program.

@Rootdiv
Copy link

Rootdiv commented Nov 30, 2022

In the update dated November 30, 2022, the problem persists.
Ubuntu Mate 22.04.1 gtk2

@marillat
Copy link

@Rootdiv even if notification is disabled ?

@sledgehammer999
Copy link
Member

Is anyone able to do their own compilations? If so, can you try with this patch? patch->#18108

@Rootdiv
Copy link

Rootdiv commented Nov 30, 2022

@Rootdiv even if notification is disabled ?

No, the problem is observed only when starting qbittorrent and until the tray notification is turned off and on

@Rootdiv
Copy link

Rootdiv commented Dec 1, 2022

In the update dated December 1, 2022, the problem persists.
Ubuntu Mate 22.04.1 gtk2

@marillat
Copy link

marillat commented Dec 1, 2022

@Rootdiv Which package version ?

@Rootdiv
Copy link

Rootdiv commented Dec 1, 2022

@Rootdiv Which package version ?

1:4.5.0.99~202211302247-7852-18577d9cb~ubuntu22.04.1 install from PPA

@marillat
Copy link

marillat commented Dec 1, 2022

Should be fixed.

@Rootdiv
Copy link

Rootdiv commented Dec 1, 2022

Should be fixed.

But the behavior is the same as I described here #18072 (comment)

@glassez
Copy link
Member

glassez commented Dec 1, 2022

Should be fixed.

But the behavior is the same as I described here #18072 (comment)

What behavior do you talk about? Note, this Issue is about "qbittorrent 4.5.0 won't exit". If you have another problem please discuss it in appropriate Issue.

@Rootdiv
Copy link

Rootdiv commented Dec 1, 2022

What behavior do you talk about? Note, this Issue is about "qbittorrent 4.5.0 won't exit". If you have another problem please discuss it in appropriate Issue.

If you do not perform the above actions, then everything corresponds.

@karabaja4
Copy link
Author

This is fixed for me with the qbittorrent from the git master branch.

@msagebiel
Copy link

I have the exit problem on windows 10 and there are several threads. I kind of solved it by going back to openvpn . wireguard interface binding didn't exit qbittorrent and binding left on localhost and vpn ip...process can't be killed, stays days. Ubun WG no issues.

@karabaja4
Copy link
Author

karabaja4 commented Dec 7, 2022

I am closing this issue since the root cause was fixed and further discussion seems to bring this out of focus. Please open new tickets for other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate OS: Linux Issues specific to Linux distributions
Projects
None yet
Development

No branches or pull requests

12 participants