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
Items missing from the system tray icon right click menu #18074
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Out of curiosity can you also test with official AppImage (download on mainstite)? |
@sledgehammer999, with the AppImage file the right click menu doesn't work at all. |
The system tray icon right click menu is not working also in qBittorrent v4.5.0 installed from PPA on Ubuntu 22.04. |
Which DE are you using? Were you using another qbt version before on the same OS? Did it work correctly? |
Both versions (22.04 and 22.10) use Ubuntu's default DE - aka gnome.
I did. I used v4.4.5 (and older) on the same OS, and it did work correctly. |
What does the following return?
|
|
Is anyone able to do their own compilations? If so, can you try with this patch? patch->#18108 |
I don't think this patch can fix this issue. I'm thinking on possible solution... Of course it would be nice if someone affected could test it when I'm done. |
I have the same problem. |
In the update dated December 4, 2022, the problem persists. qBittorrent: 4.5.0 x64 |
It looks like there is incompatibility with some DE (tray icon providers used by them). I'll try to find a workaround as soon as I get a similar environment. |
I can't reproduce it on Linux Mint (neither on Cinnamon, nor on Xfce, nor on Mate).
qt5ct What does it return for you on mentioned above desktops? |
@MrComexs
@Rootdiv
What Qt version they are linked with? |
qBittorrent v4.5.0 (64-bit) OS: Artix 6.0.7
I not sure if this matter but here anyway
So for me I only have the exit option in the context menu on the task bar |
@glassez, I'm edited comment #18074 (comment) |
This issue is reproducible when starting is slow. I successfully reproduced the problem in a clean VM using Arch Linux + MATE after adding a torrent with 43000 small files. The version of Qt does not matter. I tried to recompile qBittorrent with Qt5 and Qt6 — the behavior is slightly different, but both are broken. |
I'm not very familiar with Linux world, but apparently there are different backends providing the tray icon functionality, and the problem is with some of them, regardless of the DE itself.
Didn't test with real torrent but I added extra delay of 10 secs to emulate it. First the reduced menu is shown while torrents are being loaded (delay isn't expired) and then it is replaced with full menu as expected. |
@glassez it's not replaced in my clean VM Click meqbittorrent-tray.mp4 |
So what kind of software is responsible for top panel of your desktop? |
@glassez mate-panel |
Same behavior here (missing tray menu items). Have not noticed any particular slowness or any change in behavior after some time; the menu items simply do not appear. This was an upgrade of an existing install, and so I do have several torrents in the app already. Workaround in original post (Behavior -> "Show qBittorrent in notification area", toggle off, click "Apply", toggle it on, click "Apply") seems to work and causes the menu items to appear properly until the app is restarted. Fedora 37, with the GNOME Shell DE under Wayland. Version info, per the "about" dialog box: (I'm using the qBittorrent from the official Fedora repos, which appears to be this build, in case you need more info on what it's built/linked against.) System tray is the standard
(i.e. the env var is not set) a subset of output from
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
its on the Community arch repo which sould be enabled by default
I made a VM but I wasn't able to make the same problem happen. I got rid of the Status Tray Plugin and then re-added it to my panel and now I see all of the menu options but when I quit qbit and re launch it I get the same problem as before. I have also unchecked Show qBittorrent minimized in the Behavior Preferences and when I recheck it I see the all of the menu options but when I quit qbit it goes back to the same problem. I might reinstall qbittorrent later today to see if that fixes it but I'm not sure since I haven't been able to find a way to replicate my problem tell me what I should do. I don't mind keeping this bug until we get it fixed? |
@MrComexs try to add some torrents, preferably with a large number of files (as I mentioned before) |
Well, I seem to have noticed some regularity that I was able to reproduce on two different Linux systems:
Can anyone confirm this behavior? |
This comment was marked as off-topic.
This comment was marked as off-topic.
@glassez in my PC and clean VM, the menu does not work correctly even on first start. I guess my torrents are "big enough" to consistently trigger some race condition |
@andreymal |
@glassez running a separate instance with a empty home directory works well qbittorrent-empty-home.mp4 |
@andreymal |
@glassez I tried to use this simple Python script to generate many small files: from pathlib import Path
d = Path("many-files")
d.mkdir(exist_ok=True)
for num in range(10000):
(d / f"{num}.txt").write_text(f"File #{num}\n", "utf-8") Then I just created and added a torrent in qBittorrent (no need to download it, you can even delete the original files). The more files created, the greater the chance of triggering this bug. 10000 files are enough for me to trigger this bug, but note that I'm using an HDD (I guess the behavior may be different on SSD) (I also tried to create a torrent with 500000 files, but it failed with |
Note: I moved the .torrent and .fastresume file out of the BT_backup and add 5 torrents at a time until I got the bug to occur. I still left the downloaded files in there respective categories folder but only moved the .torrent and .fastresume files out of the BT_backup folder so I don't have to re-download the torrents content. |
Well, after agonizing attempts to figure out what's what, I came to understand that the problem is hidden somewhere in the depths of Qt (platform plugin), so I won't be able to achieve a "clean" solution to this problem. P.S. I explain for those who have not understood this so far that since version 4.5, the application startup (restoring existing torrents) process has been significantly optimized, one of the aspects of which is that the main UI (including the regular tray icon menu) becomes available only at the end of the startup, and during the startup there is only minimal UI functionality displaying the current progress and allowing you to interrupt it, i.e. close the application. |
I was able to get the menu to (kinda) work again for me but all I did was give qBittorrent more ram. |
I wonder how it will behave after restarting qBittorrent? |
qBittorrent & operating system versions
qBittorrent: 4.5.0 x64
Operating system: Ubuntu 22.10
Qt: 5.15.6
libtorrent-rasterbar: 2.0.8.0
What is the problem?
In the right click menu of the system tray icon in the notification area, all the items are missing except the
Exit
button, like this:Steps to reproduce
Exit
button.Additional context
The menu should be like this:
Possible workaround: disable the
Show qBittorrent in notification area
option and than re-enable it. For me all items appears, until next restart of the app.Log(s) & preferences file(s)
No response
The text was updated successfully, but these errors were encountered: