qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

QBittorrent 4.4.2 on MacOS locking up.

Open mdedmon opened this issue 2 years ago • 44 comments

qBittorrent & operating system versions

qBittorrent 4.4.2 MacOS: 10.15.7

What is the problem?

After upgrading the app will freeze, when clicking within the app. I can add torrents fine, but if I click on a column header to sort, or try to move from the "HTTP Sources" to the "Peers" section, the app freezes.

The freeze is really bad too. I can force quit the app and it locks up finder. And/or it won't lock up finder, but the app no longer shows up in the "force quit" menu, but the display is still present on my desktop with the beach ball spinning when you hover over it. If I try to shut down the system, it just won't. I can access the finder menu to do shutdown, but then it just hangs there. I have to physically power it off.

I've reverted to the 4.3.9 version and it's working great again.

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

No response

mdedmon avatar Mar 28 '22 16:03 mdedmon

qBittorrent 4.4.2 MacOS: 12.3

I'm not having freezes with the friend's steps above, but I also face freezes in this version of qBittorrent in another step. When selecting multiple torrents and clicking "Set Location" with the intention of moving the torrents to other hard drives, qBittorrent freezes the main window and does not open the window to choose which location to move the torrents. I can still see the status bar updating the Down/Up values, but I can't move the window anymore. Note: I can hear the discs waking up when selecting the option, but the main window freezes. I have 7 disks linked to qBittorrent.

Edit: It is not necessary to select multiple torrents. When clicking on any torrent and "Set Location", qBittorrent freezes.

viniciusmi00 avatar Mar 28 '22 18:03 viniciusmi00

I suffer application lock as well after upgrading. In my case it happens when I select the option "Set Location" after right clicking on a torrent.

Also, if I select "Open Destination Folder", qBittorrent crashes completely.

I have a MacBook Pro Mid 2012 with MacOS Catalina 10.15.7.

fpuentegomez avatar Mar 28 '22 19:03 fpuentegomez

Also affected; can add torrents, but any click, anywhere on it, causes it to beachball freeze. Can only force quit. No problem or interference with Finder.

I tried "always open in Rosetta", and it made no difference.

qBittorrent 4.4.2 Macbook Pro 14 M1 Max, 64GB ram, Monterey 12.3

Rolled back to 4.3.9, and is working fine again.

TheDMV2 avatar Mar 29 '22 15:03 TheDMV2

qBittorrent 4.4.2 Macbook Pro 14 M1 Max, 64GB ram, Monterey 12.3

Rolled back to 4.3.9, and is working fine again.

Thanks for the context of the device you are running it on.

rovo79 avatar Mar 31 '22 02:03 rovo79

I'm having exactly the same issue as original poster. I have to reboot the laptop to recover. Apple M1 Pro Macbook Pro w 16GB RAM. MacOS Monterey 12.3

WPrintz avatar Apr 03 '22 01:04 WPrintz

qBittorrent & operating system versions

qBittorrent 4.4.2 MacOS: 10.15.7

Same OS version and same issue after installing the 4.4.2 update. Will start downloads and then freezes. Force quit, doesn't. Try to kill the process and it locks the finder. After about 3-5 minutes it reboots the system.

OneMadCow avatar Apr 03 '22 02:04 OneMadCow

Soon after my last comment (rolled back to 4.3.9) the same problem continued. No forced reboot problems, just qBT freezing and requiring a force close. It would work fine, unless I clicked on it in any way (with 4.3.9 as well as 4.4.2).

What is interesting is that, unlike most people here, 4.3.9 is showing the same behavior after installing and rolling back from 4.4.2 for me.

NOTE: I do have an RSS feed set up, if that makes a difference.

I've switched to Transmission for the time being; qBT simply isn't functional at the moment.

TheDMV2 avatar Apr 04 '22 00:04 TheDMV2

This happens for me as well, I've reported this several times in the Apple Silicon thread.

Is everyone here having this issue on Apple Silicon?

barhom avatar Apr 04 '22 22:04 barhom

Yes, this had started happening to me also; completely stops working. I thought it was an issue with my VPN or or network binding. Spent a day troubleshooting it thinking it was something I messed up. Then for the heck of it, tried out Transmission and it worked fine.

rovo79 avatar Apr 05 '22 13:04 rovo79

This happens for me as well, I've reported this several times in the Apple Silicon thread.

Is everyone here having this issue on Apple Silicon?

I have 3 macOS Monterey 12.3 installed. 1 Apple Silicon, 1 Mac Pro 2013 Intel Xeon, 1 Hackintosh Intel i7. All 3 have these problems.

viniciusmi00 avatar Apr 05 '22 13:04 viniciusmi00

https://user-images.githubusercontent.com/1337696/161774846-77589b8c-4fc8-4bf3-ab19-56c274edcae6.mp4

See low resolution recording on how qbittorrent "hangs". I try to click around but no reaction. What isnt visible in the screen recording in the apple loading logo that is visible while I cannot click around.

download

barhom avatar Apr 05 '22 14:04 barhom

same issue here on a hackintosh (intel), a intel MBP and a m1x MBP (all on macOS 12.3.1).

qbittorrent 4.4.2 just hangs when selecting "Set Location". seems like the window appears but it's hidden and you can't click anything inside the main window. however you can control the torrents from the macOS menu bar. clicking "Open Destination Folder" crashes qbittorrent completely with

qbittorrent(24808,0x11912e600) malloc: Heap corruption detected, free list is damaged at 0x6000030b16e0
*** Incorrect guard value: 117312962762463
abort() called

rursache avatar Apr 07 '22 13:04 rursache

This is affecting me as well. Running 4.4.2 on macOS 10.14 and 10.13. (The latter required me to make my own build.) So it seems to happen across all versions of macOS.

I can confirm this bug was present in 4.4.1, though it's hard to say with 4.4.0. The "Set Location..." menu item isn't present in it.

briankendall avatar Apr 09 '22 04:04 briankendall

@sledgehammer999 can you confirm the same issue when trying to use "set location" ?

barhom avatar Apr 16 '22 21:04 barhom

(my) SOLUTION:

  1. I reinstalled (because I had removed it via 'send to bin')
  2. then used "Appcleaner" to uninstall and remove every file associated with it
  3. installed again fresh - no hangs and much faster responses than before

So, problem lies with one of those old, extra files.

TheDMV2 avatar Apr 17 '22 03:04 TheDMV2

I tried the same and on one of my (less essential) systems trashed every data file associated with qBittorrent, including in ~/.config, ~/Library/Application Support, ~/Library/Preferences, and more, but the problem didn't go away.

Further, for those of us that are seeding a multitude of torrents, this isn't a solution. Preferences need to be maintained.

briankendall avatar Apr 17 '22 12:04 briankendall

I am also getting the "Set Location" freeze and the "Open Destination Folder" crash.

A workaround that worked for me to relocate the torrent contents folder was to:

  1. Right click
  2. Torrent options...
  3. Uncheck "Automatic Torrent Management" - if it was checked
  4. Manually change the "Save at" location to the correct one (you can do it by clicking the folder icon or by typing)

Hope this gets fixed with the new version.

konstantinosftw avatar Apr 17 '22 20:04 konstantinosftw

I found another way to break it.

So, it's not properly signed, right? When you first want to open it, you have to manually open it to tell MacOS it's okay. Then, every time you run it, it asks if you want to access/bypass the firewall. AND everytime it asks permission to access your downloads folder.

If you self-sign it, it works for a little while, and then breaks completely. Only way to get it back is a clean install.

$ sudo codesign --force --deep --sign - /Applications/qbittorrent.app $ codesign -dvvvv /Applications/qbittorrent.app $ codesign --verify -vv /Applications/qbittorrent.app

TheDMV2 avatar Apr 19 '22 07:04 TheDMV2

I found another way to break it.

So, it's not properly signed, right? When you first want to open it, you have to manually open it to tell MacOS it's okay. Then, every time you run it, it asks if you want to access/bypass the firewall. AND everytime it asks permission to access your downloads folder.

If you self-sign it, it works for a little while, and then breaks completely. Only way to get it back is a clean install.

$ sudo codesign --force --deep --sign - /Applications/qbittorrent.app $ codesign -dvvvv /Applications/qbittorrent.app $ codesign --verify -vv /Applications/qbittorrent.app

so this fixes the issue and it doesn't lock up on mac os anymore? It is unusable for me right now, Im using transmission :(

barhom avatar May 06 '22 20:05 barhom

  • Right click

  • Torrent options...

  • Uncheck "Automatic Torrent Management" - if it was checked

  • Manually change the "Save at" location to the correct one (you can do it by clicking the folder icon or by typing)

It helpful, thanks.

$ sudo codesign --force --deep --sign - /Applications/qbittorrent.app $ codesign -dvvvv /Applications/qbittorrent.app $ codesign --verify -vv /Applications/qbittorrent.app

Mac os 12.2.1 iMac 5k 2019 Intel Core i9 32gb, codesign didn't help.

MrDzmitry avatar May 08 '22 17:05 MrDzmitry

@briankendall

I tried the same and on one of my (less essential) systems trashed every data file associated with qBittorrent, including in ~/.config, ~/Library/Application Support, ~/Library/Preferences, and more, but the problem didn't go away.

Further, for those of us that are seeding a multitude of torrents, this isn't a solution. Preferences need to be maintained.

I found some additional files here:

/Users/NAME/Library/Saved Application State/org.qbittorrent.qBittorrent.savedState /Users/NAME/Library/Preferences/org.qbittorrent.qBittorrent.plist /Users/NAME/Library/Caches/qBittorrent

NAME = replace with your userName

rovo79 avatar May 09 '22 14:05 rovo79

More data/information:

After a wipe and clean install, everything was good for a while, and then it started hanging, as we've all experienced.

All my torrents had either finished (were seeding) or hadn't started and were paused. Probably only about 7 or 8 in total. I deleted all three?four? of my completed torrents, and when I deleted one of them, it immediately started working perfectly.

I haven't had any locking up issues since. Just in case, I've been removing torrents before they get too numerous.

Obviously, this isn't a perfect solution, but it could help the devs in narrowing down the problem.

TheDMV2 avatar May 09 '22 14:05 TheDMV2

I see that 4.4.3 was released, but didn't see any mention of this in the changelog. Anyone been brave enough to try it and see if it works now in this new version? I'm sticking with my current version for now. :)

mdedmon avatar May 23 '22 19:05 mdedmon

Well, just downloaded on MacOS Catalina. I'll post back if it takes another dump like 4.4.2 did.

OneMadCow avatar May 23 '22 19:05 OneMadCow

I see that 4.4.3 was released, but didn't see any mention of this in the changelog.

I think there is mention of it:

MACOS: Fix main window freezing after opening a files dialog (glassez)

I haven't tried 4.4.3 yet, though.

briankendall avatar May 23 '22 22:05 briankendall

I am using 4.4.3 now and so far it has been working on Monterey 12.4 for over an hour now. Fingers crossed.

hanselsin avatar May 23 '22 22:05 hanselsin

4.4.3 is showing the same issue for me, still locking up

barhom avatar May 25 '22 22:05 barhom

4.4.3 is showing the same issue for me, still locking up

Is it really only me who cannot use qbittorrent on m1 14"?

barhom avatar May 26 '22 19:05 barhom

Is it really only me who cannot use qbittorrent on m1 14"?

@barhom I've tested it in macOS 12.4 on an M1 Mac Mini, as well as on Intel macs running macOS 10.13.6 and 10.14.6. In all three cases the UI no longer locks up when I open a dialog, including when picking "Set location" which is what consistently didn't work for me before.

Might be worth seeing what happens if you temporarily rename qBittorrent's settings folders (located at ~/.config/qBittorrent and ~/Library/Application Support/qBittorrent) so that it reverts to its default settings, and seeing if that clears things up.

briankendall avatar May 26 '22 19:05 briankendall

I completely "reinstalled" everything by deleting all mentions of qBittorrent systemwide as well as the folders you suggested. It seems to run now however it still sometimes "freeze" (spinning bar shows up) and then continues. At least its useable right now.

barhom avatar May 28 '22 21:05 barhom