[SOLVED] Seemingly random crashes

Linux specific questions, problems.
Post Reply
elendrilex

[SOLVED] Seemingly random crashes

Post by elendrilex »

So long time user of qBittorrent but fairly new to Linux. Running Arch and have had no issues with qbittorrent until a couple of weeks ago.
Not sure what the problem is but it runs fine the majority of the time but then just crashes - gui stays open and isn't frozen, any clicks on torrents (removing etc) results in them being removed but any click on menu items results with the gui closing. When I start qbittorrent again, any of the torrents I have removed have reappeared, then it continues to work with no issues for a while longer, seems to be crashing 1/2 times per day.

Running qbittorrent 4.0.4 and installed from Repos. Did a fresh install of qbittorrent yesterday also removed all related files in ~/.local and ~/.config - hasn't made any difference

Have got the stack trace from when it seems to crash (though it actually seems to crash before this but when the gui is interacted with it then throws these errors)

https://pastebin.com/MRexRjAD

If anyone has any ideas on a fix to this, would love to hear them! Thanks

**UPDATE: So after the reinstall of qbittorrent, it actually started keeping log files which I checked to find it was a I/O error - to many open files. Found more info on it here: https://github.com/qbittorrent/qBittorrent/issues/8296

The old file descriptor limits were 1024(soft) and 4096(hard) and whenever qbittorrent hit the soft limit all torrents would stop downloading/seeding and the app would crash, then as soon as you tried to interact with qbittorrent it would force close.
Was a pretty easy fix, just had to edit /etc/systemd/user.conf and /etc/systemd/system.conf and uncomment and adjust value for this line: DefaultLimitNOFILE=
Reboot was required after this and problem now seems to be sorted. *Note this fix only works for systems using systemd.

You can just put one number here (I used 204800 but any number should do) or you can use seperate numbers for soft/hard limits if you wish. ie: DefaultLimitNOFILE=204800 will make soft and hard limit the same value of 204800 and DefaultLimitNOFILE=102400:204800 will give you a soft limit of 102400 and hard limit of 204800
Last edited by elendrilex on Sun Mar 18, 2018 2:10 am, edited 1 time in total.
Post Reply