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.4.2 on MacOS locking up. #16763

Open
mdedmon opened this issue Mar 28, 2022 · 55 comments
Open

QBittorrent 4.4.2 on MacOS locking up. #16763

mdedmon opened this issue Mar 28, 2022 · 55 comments
Labels
has workaround OS: macOS Issues specific to macOS

Comments

@mdedmon
Copy link

mdedmon commented Mar 28, 2022

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

@viniciusmi00
Copy link

viniciusmi00 commented Mar 28, 2022

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.

@thalieht thalieht added the OS: macOS Issues specific to macOS label Mar 28, 2022
@fpuentegomez
Copy link

fpuentegomez commented Mar 28, 2022

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.

@TheDMV2
Copy link

TheDMV2 commented Mar 29, 2022

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.

@rovo79
Copy link

rovo79 commented Mar 31, 2022

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.

@WPrintz
Copy link

WPrintz commented Apr 3, 2022

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

@OneMadCow
Copy link

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.

@TheDMV2
Copy link

TheDMV2 commented Apr 4, 2022

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.

@barhom
Copy link
Contributor

barhom commented Apr 4, 2022

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?

@rovo79
Copy link

rovo79 commented Apr 5, 2022

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.

@viniciusmi00
Copy link

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.

@barhom
Copy link
Contributor

barhom commented Apr 5, 2022

qbittorrent.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

@rursache
Copy link

rursache commented Apr 7, 2022

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

@briankendall
Copy link
Contributor

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.

@barhom
Copy link
Contributor

barhom commented Apr 16, 2022

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

@TheDMV2
Copy link

TheDMV2 commented Apr 17, 2022

(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.

@briankendall
Copy link
Contributor

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.

@konstantinosftw
Copy link

konstantinosftw commented Apr 17, 2022

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.

@TheDMV2
Copy link

TheDMV2 commented Apr 19, 2022

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

@barhom
Copy link
Contributor

barhom commented May 6, 2022

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 :(

@MrDzmitry
Copy link

  • 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.

@rovo79
Copy link

rovo79 commented May 9, 2022

@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

@TheDMV2
Copy link

TheDMV2 commented May 9, 2022

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.

@mdedmon
Copy link
Author

mdedmon commented May 23, 2022

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. :)

@OneMadCow
Copy link

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

@briankendall
Copy link
Contributor

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.

@hanselsin
Copy link

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.

@barhom
Copy link
Contributor

barhom commented May 25, 2022

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

@barhom
Copy link
Contributor

barhom commented May 26, 2022

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"?

@briankendall
Copy link
Contributor

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.

@barhom
Copy link
Contributor

barhom commented May 28, 2022

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.

@TheDMV2
Copy link

TheDMV2 commented May 29, 2022

Well, I just found out why QBittorrent has been running so well for me. With high CPU usage (high than it should be, I thought). No crashes, no lock ups, just higher CPU.

It's been running through Rosetta.

quit, turn off 'always rosetta', restart. AAannd. it beach balls on load. Unresponsive.

Force quit, turn on 'always rosetta', restart QBT. AAand it works perfectly again.

MacOS 12.4, M1Max, 64GB ram, QBT 4.4.3

@barhom
Copy link
Contributor

barhom commented May 29, 2022

It's been running through Rosetta.
quit, turn off 'always rosetta', restart. AAannd. it beach balls on load. Unresponsive.

Where do I find this "always rosetta" setting?

@TheDMV2
Copy link

TheDMV2 commented May 29, 2022

Where do I find this "always rosetta" setting?

Screen Shot

Applications -> Qbittorrent -> Get Info -> Open with Rosetta

(sorry for the shorthand)

@TheDMV2
Copy link

TheDMV2 commented May 29, 2022

Welp. I broke it. Ever since I changed that Rosetta setting, it went from bad to worse. First, no network connections would go. Then it started locking up. Now, it won't load. Either with or without Rosetta. Completely borked.

@r3a1d3a1
Copy link

I really wonder how an app can mess up the system so bad that you can't even restart. Whenever this happens, I've to force shutdown the system (pressing the power button 5 secs).
Only thing I can imagine is that it acquires a low level lock for a file which doesn't get released. Because safe ejecting the external hdd isn't possible even after force quitting the app.
Same qb version with the same hdd work flawlessly on windows 100% of the time.

@kambala-decapitator
Copy link

Sometimes I also experience the freeze when starting to download a torrent, might have started after upgrading from 4.4.2 to 4.4.3 (not sure). GUI becomes frozen as well as web UI doesn't work (the URL doesn't load in browser). But using Activity Monitor I see that downloading actually works, and as soon as it finishes, GUI becomes usable again.

Now made a manual build against Qt 5.15.2, will see how it goes.

There's also another issue that the app sometimes hangs on quit (either manually or when shutting down the Mac), not sure if it's related to this issue or not.

@geekmaster64
Copy link

Just here to pile on that this is occurring for me, Mac Studio M1 Max, 32GB. SMB network share, constantly asking for network file access even though "full-access" has been previously granted. After sometime, immediately starts spinning beachball of death and locks the entire system.

I was able to SSH from another machine, but unable to sudo reboot the host, unable to do a TOP command so I could kill the process.

@kambala-decapitator
Copy link

I must say that Qt 5 build is way more stable.

Sometimes I also experience the freeze when starting to download a torrent, might have started after upgrading from 4.4.2 to 4.4.3 (not sure). GUI becomes frozen as well as web UI doesn't work (the URL doesn't load in browser). But using Activity Monitor I see that downloading actually works, and as soon as it finishes, GUI becomes usable again.

never had it any more with Qt 5

There's also another issue that the app sometimes hangs on quit (either manually or when shutting down the Mac), not sure if it's related to this issue or not.

with Qt 5 it happens quite rarely, with Qt 6 it was a rather common thing

@mdedmon
Copy link
Author

mdedmon commented Oct 11, 2022 via email

@mdedmon
Copy link
Author

mdedmon commented Oct 11, 2022 via email

@mdedmon
Copy link
Author

mdedmon commented Oct 11, 2022 via email

@lethargosapatheia
Copy link

I have the same issue. Had it on Monterey and previously. Now on Ventura. I've had it for more than a year, I think.

@14thDay
Copy link

14thDay commented Dec 3, 2022

I have this issue on and off for years now. Lockup on start and won't progress if I wait or if I quit and try to restart.
All files will be stuck in verifying mode.
First had it on Intel Macs and now M1 Max Mac as well.
Same issue on Windows but less because on there it will actually verify the file and resume. On Mac it's just stuck.
I have never shut it down improperly, always with the quit function by right clicking the dock. No forced quit. I didn't bother stopping everything beforehand though which could be the cause of the problem. But it's a bit ridiculous if you have lots of torrents you have to click an extra button every time you want to quit.

Anyway I have found a temporary fix.
Go to /Users/YOUR USER NAME/Library/Application Support/qBittorrent/BT_backup
Delete all.fastresume files there
If you want to keep your old list you'd have to add all the torrents there back. If it says missing files click Force Verify. If Force Verify is stuck you have to Force Resume it.

@lethargosapatheia
Copy link

I've switched to Transmission. Same functionality. Works perfectly. No commercials. qbittorrent is ridiculous on mac os.

@14thDay I've already done that once and it did work for a while. I can't be expected to remember that or do that each time it freezes.

@Ravenstine
Copy link

Still happening on M1 Mac.

Not sure if this is truly a workaround, but this seemed to at least temporarily dislodge the problem:

  1. Make sure qBittorrent is closed.
  2. Move ~/Library/Application\ Support/qBittorrent/BT_backup to another location.
  3. Open qBittorrent. Expect the list of torrents to be empty.
  4. Close qBittorrent.
  5. Move the BT_backup folder back to its original location.
  6. Reopen qBittorrent. Expect the list of torrents to be restored.

Having done that after numerous freezes, the program stopped freezing and allowed me to finish the download I was attempting.

Makes me think qBittorrent is crashing on some kind of bad memory reference but inadvertently clears it after being tricked into thinking those torrents aren't there. IDK. I just know it seems to have helped me for now.

@bbonvi
Copy link

bbonvi commented Jan 29, 2023

Tried downgrading to 4.3.2 and it still happens. What interesting is that even if the client is closed, the Activity Monitor shows a constant disk write at about 15 MB/s from kernel_task process. I've observed the behaviour for awhile now and am sure that qbittorrent is the reason for this write. It only happens when qbittorrent locks up. At first i thought it was flushing the cache, but the amount of data is far bigger than the file i was downloading.

@kambala-decapitator
Copy link

There's also another issue that the app sometimes hangs on quit (either manually or when shutting down the Mac), not sure if it's related to this issue or not.

here's process sampling at the moment of freeze: Sample of qBittorrent.txt

@franciscojs12
Copy link

I'm having the same error. Getting the spining cursor and app freezes after updating to 4.5.2. MacBook Pro 14 with M2 and Ventura.
Deleting /Users/YOUR USER NAME/Library/Application Support/qBittorrent/BT_backup folder did the trick. But lost torrents.

@14thDay
Copy link

14thDay commented Mar 6, 2023

I'm having the same error. Getting the spining cursor and app freezes after updating to 4.5.2. MacBook Pro 14 with M2 and Ventura. Deleting /Users/YOUR USER NAME/Library/Application Support/qBittorrent/BT_backup folder did the trick. But lost torrents.

You can get them back by adding the old torrents if you have them.
They are in the BT_backup folder as well so you can just readd all the torrents there after removing the fastresume files.

@Ravenstine
Copy link

Although my workaround probably still works, I ultimately ended up downgrading to 4.1.9 some time ago and that's been working great for me. I tried every minor version before latest and that's the one I landed upon where the issue stopped. Definitely appears to be a regression for Apple Silicon arch, and it seems to lie somewhere between 4.1.9 and 4.2.x.

For now, I think using 4.1.9 is the best workaround if qBittorrent is freezing on an M1/2 Macbook. There isn't anything about the latest qBittorrent that I've missed.

@CamilleHbp
Copy link

Still happening on M1 Mac.

Not sure if this is truly a workaround, but this seemed to at least temporarily dislodge the problem:

  1. Make sure qBittorrent is closed.
  2. Move ~/Library/Application\ Support/qBittorrent/BT_backup to another location.
  3. Open qBittorrent. Expect the list of torrents to be empty.
  4. Close qBittorrent.
  5. Move the BT_backup folder back to its original location.
  6. Reopen qBittorrent. Expect the list of torrents to be restored.

Having done that after numerous freezes, the program stopped freezing and allowed me to finish the download I was attempting.

Makes me think qBittorrent is crashing on some kind of bad memory reference but inadvertently clears it after being tricked into thinking those torrents aren't there. IDK. I just know it seems to have helped me for now.

Sorry to say that this does not work on my M1. It freezes again when restoring the original BT_Backup. Me sad 😞

@Inclushe
Copy link

Deleting the folder ~/Library/Application\ Support/qBittorrent/ worked on my end.

@barhom
Copy link
Contributor

barhom commented Apr 26, 2023

Deleting the folder ~/Library/Application\ Support/qBittorrent/ worked on my end.

All of this is temporary fixes, its not fixing the underying issues which no one have figured out yet.
I only ever have 1 torrent active at the same time, seems to work most of the times. When it hangs I force-quit and then simply restart. It works somewhat...

@bbonvi
Copy link

bbonvi commented Apr 27, 2023

Tried to go to as low as 4.1.2 version and it still locked up

@pedrosimao
Copy link

  1. Make sure qBittorrent is closed.
  2. Move ~/Library/Application\ Support/qBittorrent/BT_backup to another location.
  3. Open qBittorrent. Expect the list of torrents to be empty.
  4. Close qBittorrent.
  5. Move the BT_backup folder back to its original location.
  6. Reopen qBittorrent. Expect the list of torrents to be restored.

This works great for me!

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

No branches or pull requests