LuLu icon indicating copy to clipboard operation
LuLu copied to clipboard

QBitTorrent freeze if started with LuLu active

Open elecenet opened this issue 1 year ago • 7 comments

Mac OS Ventura 13.2.1, Mac Mini M1 LuLu 2.4.2 QBitTorrent 4.5.2 (happening from 4.0.0)

How to reproduce: LuLu enabled add ▪ /Applications/qbittorrent.app "allow" rule open QBT QBT freezes out = not downloading, not reacting on any clicks, colour wheel over QBT window

How to fix: force quit QBT disable LuLu open QBT again and everything works You can reactivate LuLu once QBT is working

elecenet avatar Mar 15 '23 20:03 elecenet

Same here but... much worse. Qbittorrent now opens with all files on status "Checking resume data" and almost immediately freezes. Tried restarting, disabling, deleting LuLu. It completely wrecked Qbittorrent. Really sorry to say this for a free app but I can't trust it if this is a possible outcome with any other app. It's just to risky to have it on my computer.

Cicalinarrot avatar Mar 26 '23 15:03 Cicalinarrot

+1 on the issue, also experiencing the same as the original poster.

decodering avatar Jun 02 '23 20:06 decodering

I downloaded the latest version of LuLu (2.5.0) and qbittorrent (4.5.3) and had no issues. When starting qbittorrent it makes a series of connections, but as the intention is to allow them all, I simply check to allow the process to access everything. I didn't create the rule before opening it, I waited for the alert to appear to allow access. I started a torrent and everything worked.

Can you test with the latest versions? If the problem happens, you can generate the LuLu debug logs (just run this command in the terminal log stream --level debug --predicate="subsystem='com.objective-see.lulu'" and save the output)

qbittorrent

mdjunior avatar Jun 03 '23 11:06 mdjunior

Hi Manoel, Also installed last version of both apps* and deleted the QBT rule to create it fresh on app start. Oh! And Mac OS Ventura 13.4 Same problem. Netiquette shows connections (QBT has A LOT of connections!) but the app is frozen in the main screen. Once you force-quit and disable LuLu (and open again QBT) it start working instantly. I generated a log with your instructions, closing other apps (browsers and all, to prevent lots of output) and started QBT with error.

* LuLu keeps indicating "Installed version 2.4.x is the latest" so I discovered of v 2.5 in your comment! Lulu log QBT.txt

elecenet avatar Jun 03 '23 19:06 elecenet

OK reading QBT log I discovered it can not write in the log file (which is located in you user ~Library/Application Support/qBittorrent/logs/qbittorrent.log). The last entry on the log was in April. So I deleted the .log file, Lulu enabled, started QBT and voilà! App working and new .log file created. I suspect of incorrect permissions or a corrupted file, anyway, I'll keep an eye to see if the problem reappears. Cicalinarrot, decoder247, can you try this?

elecenet avatar Jun 03 '23 20:06 elecenet

Still doesn't seem to be working for me :/ As soon as I open qbittorrent w Lulu enabled, the application hangs w/ the mac pointer becoming a spinning wheel and I can't interact at all with the qbittorrent window.

I've removed the qbittorrent.log as @elecenet suggested by renaming it to qbittorrent.log.old. A new file generates on opening qbittorrent (and subsequently immediately hanging) but it seems to log fine and the file permissions appear the same to the original from what I can see. I can also still read the original log via cat, so not sure if it's a corrupt / incorrect permissions issue in my case:

image

Can provide the log messages in qbittorrent.log as well if it seems useful but will need to censor out my ip references, although all seems normal (the last line is usually a qBittorrent termination initiated after I force quit the app from hanging).

decodering avatar Jun 05 '23 11:06 decodering

OK - I think I may have fixed it! 😃 - I think the old existing torrents (i.e. completed / seeding / otherwise) that existed pre Lulu installation and its enabling may have confused Lulu (how, I am not sure). The following seems to have fixed it for me:

  1. Disable Lulu
  2. Open qbittorrent and remove all existing torrents (completed or otherwise) so that it's clean and not downloading / uploading anything. If there are any incomplete or in progress torrents it might be wise to backup their torrent files or original hash first before doing this so you can restart it again after.
  3. Enable Lulu
  4. qbittorrent shouldn't hang now and work for all new torrents after this

See a new download being initiated now with Lulu enabled (note: w Lulu rule enabling all connections for qbittorrent process ofc):

image

I think a clean qbittorrent install with no pre-existing connections was why it worked for you @mdjunior 😉

decodering avatar Jun 05 '23 12:06 decodering