qbittorrent slows Ubuntu 13.04 to restart or change users #767

Closed
opened 2026-02-21 15:18:14 -05:00 by deekerman · 16 comments
Owner

Originally created by @SergeyAka on GitHub (Sep 25, 2013).

Ubuntu can't restart as fast as usually if Qbittorent is running.
I just hit Restart in system menu and about 15-20 seconds after that Ubuntu start restarting. Nothing happens at this time.
If I first manually close Qbittorent then Ubuntu restart normally fast.

I've finded similar bug https://bugs.launchpad.net/ubuntu/+source/qbittorrent/+bug/1068057

Qbittorrent ver. 3.0.11 http://s1.ipicture.ru/uploads/20130922/qj4l95Ah.png
Ubuntu 13.04 x64.

Originally created by @SergeyAka on GitHub (Sep 25, 2013). Ubuntu can't restart as fast as usually if Qbittorent is running. I just hit Restart in system menu and about 15-20 seconds after that Ubuntu start restarting. Nothing happens at this time. If I first manually close Qbittorent then Ubuntu restart normally fast. I've finded similar bug https://bugs.launchpad.net/ubuntu/+source/qbittorrent/+bug/1068057 Qbittorrent ver. 3.0.11 http://s1.ipicture.ru/uploads/20130922/qj4l95Ah.png Ubuntu 13.04 x64.
deekerman 2026-02-21 15:18:14 -05:00
  • closed this issue
  • added the
    OS: Linux
    label
Author
Owner

@sledgehammer999 commented on GitHub (Sep 25, 2013):

How many torrents do you have in your transferlist?

@sledgehammer999 commented on GitHub (Sep 25, 2013): How many torrents do you have in your transferlist?
Author
Owner

@sledgehammer999 commented on GitHub (Sep 25, 2013):

Oops, it seems that it is one from the screenshot. Is that a 7GB torrent?
Can you launch qbittorrent from the terminal and:

  1. Exit it through the gui, but count roughly after how many seconds does the terminal return control(indicating that the process ended.
  2. Copy any terminal output here.(wait for the exit)
@sledgehammer999 commented on GitHub (Sep 25, 2013): Oops, it seems that it is one from the screenshot. Is that a 7GB torrent? Can you launch qbittorrent from the terminal and: 1. Exit it through the gui, but count roughly after how many seconds does the terminal return control(indicating that the process ended. 2. Copy any terminal output here.(wait for the exit)
Author
Owner

@SergeyAka commented on GitHub (Sep 25, 2013):

Launch qbittorrent from the terminal and exit it through the gui:
sergey@sergey-pc:$ qbittorrent
Object::connect: No such slot TrackerList::editSelectedTracker()
Object::connect: No such slot TrackerList::editSelectedTracker()
Object::connect: No such slot PropertiesWidget::editWebSeed()
Object::connect: (receiver name: 'PropertiesWidget')
Object::connect: No such slot PropertiesWidget::editWebSeed()
Object::connect: (sender name: 'listWebSeeds')
Object::connect: (receiver name: 'PropertiesWidget')
virtual void RssFeed::refresh() Feed "LostFilm.TV" is already being refreshed, ignoring request
sergey@sergey-pc:
$

It takes about 2 seconds!

Video record of shuting down speed of qbittorrent. It's pretty fast in terminal.

https://docs.google.com/file/d/0B7LlK5UsbHJBR2RUUHp6ZlJxUFk/edit?usp=sharing

My current downloads

https://docs.google.com/file/d/0B7LlK5UsbHJBNHo1OVd1a2RvTVU/edit?usp=sharing

@SergeyAka commented on GitHub (Sep 25, 2013): Launch qbittorrent from the terminal and exit it through the gui: sergey@sergey-pc:~$ qbittorrent Object::connect: No such slot TrackerList::editSelectedTracker() Object::connect: No such slot TrackerList::editSelectedTracker() Object::connect: No such slot PropertiesWidget::editWebSeed() Object::connect: (receiver name: 'PropertiesWidget') Object::connect: No such slot PropertiesWidget::editWebSeed() Object::connect: (sender name: 'listWebSeeds') Object::connect: (receiver name: 'PropertiesWidget') virtual void RssFeed::refresh() Feed "LostFilm.TV" is already being refreshed, ignoring request sergey@sergey-pc:~$ # It takes about 2 seconds! Video record of shuting down speed of qbittorrent. It's pretty fast in terminal. # https://docs.google.com/file/d/0B7LlK5UsbHJBR2RUUHp6ZlJxUFk/edit?usp=sharing My current downloads https://docs.google.com/file/d/0B7LlK5UsbHJBNHo1OVd1a2RvTVU/edit?usp=sharing
Author
Owner

@SergeyAka commented on GitHub (Sep 27, 2013):

Is there any idea why qbittorrent slows Ubuntu?

@SergeyAka commented on GitHub (Sep 27, 2013): Is there any idea why qbittorrent slows Ubuntu?
Author
Owner

@sledgehammer999 commented on GitHub (Sep 27, 2013):

The only thing I can think of is that when the OS is shutting down for some reason qbt is slow to respond and shutdown quickly.

I am not good with linux, is there anyway to observe how long qbt takes to exit during the OS shutdown process?

EDIT: I now, watched your video.

This isn't what I meant. killing a process doesn't count as exiting correctly. In terminal issue "qbittorrent". Wait for qbt to finish loading. At this point the terminal should not have returned. In qbt do a File->Exit and observe how long it takes for the terminal to return.

@sledgehammer999 commented on GitHub (Sep 27, 2013): The only thing I can think of is that when the OS is shutting down for some reason qbt is slow to respond and shutdown quickly. I am not good with linux, is there anyway to observe how long qbt takes to exit during the OS shutdown process? EDIT: I now, watched your video. This isn't what I meant. killing a process doesn't count as exiting correctly. In terminal issue "qbittorrent". Wait for qbt to finish loading. At this point the terminal should not have returned. In qbt do a File->Exit and observe how long it takes for the terminal to return.
Author
Owner

@SergeyAka commented on GitHub (Sep 27, 2013):

My English is not so good.
Hope these videos are exactly what you've asked for:

  1. Shutting down of Ubuntu when qbt is running
    https://docs.google.com/file/d/0B7LlK5UsbHJBVUZxRVJ4aEpGc3M/edit?usp=sharing
  2. Shutting down of Ubuntu when qbt was turned off first:
    https://docs.google.com/file/d/0B7LlK5UsbHJBVXB2b0hWUVNiRGc/edit?usp=sharing
  3. Shutting down of Ubuntu when qbt is running. Show all process:
    https://docs.google.com/file/d/0B7LlK5UsbHJBY1VYaERhS00yQnc/edit?usp=sharing
  4. Launch qbittorrent from the terminal and exit it through the gui:
    https://docs.google.com/file/d/0B7LlK5UsbHJBU2ZZMEhWaVRFWm8/edit?usp=sharing
@SergeyAka commented on GitHub (Sep 27, 2013): My English is not so good. Hope these videos are exactly what you've asked for: 1. Shutting down of Ubuntu when qbt is running https://docs.google.com/file/d/0B7LlK5UsbHJBVUZxRVJ4aEpGc3M/edit?usp=sharing 2. Shutting down of Ubuntu when qbt was turned off first: https://docs.google.com/file/d/0B7LlK5UsbHJBVXB2b0hWUVNiRGc/edit?usp=sharing 3. Shutting down of Ubuntu when qbt is running. Show all process: https://docs.google.com/file/d/0B7LlK5UsbHJBY1VYaERhS00yQnc/edit?usp=sharing 4. Launch qbittorrent from the terminal and exit it through the gui: https://docs.google.com/file/d/0B7LlK5UsbHJBU2ZZMEhWaVRFWm8/edit?usp=sharing
Author
Owner

@Kervius commented on GitHub (Sep 28, 2013):

"Launch qbittorrent from the terminal and exit it through the gui:"

You should quit the qbt first.

In the video #4, the qbt's icon is already in the tray, meaning it is already running. Launch of qbt from terminal did nothing (but to bring the qbt window to the front). Due to this, the speed of shutdown cannot be seen in the terminal.

Try the steps:

  1. Exit qbt. (In terminal, output of "ps wuax | grep qbittorrent" should be empty.)
  2. Open terminal. (And start video recording.)
  3. Type "qbittorrent" and press enter.
  4. Wait for it to start.
  5. Now do File->Exit. (Not just closing the window, since it seems that in your case qbt minimizes to tray instead. Real exit is required.)
  6. Wait for qbt to finish.
  7. The prompt of the shell should reappear now.
@Kervius commented on GitHub (Sep 28, 2013): "Launch qbittorrent from the terminal and exit it through the gui:" You should quit the qbt first. In the video #4, the qbt's icon is already in the tray, meaning it is already running. Launch of qbt from terminal did nothing (but to bring the qbt window to the front). Due to this, the speed of shutdown cannot be seen in the terminal. Try the steps: 1. Exit qbt. (In terminal, output of "ps wuax | grep qbittorrent" should be empty.) 2. Open terminal. (And start video recording.) 3. Type "qbittorrent" and press enter. 4. Wait for it to start. 5. Now do File->Exit. (Not just closing the window, since it seems that in your case qbt minimizes to tray instead. Real exit is required.) 6. Wait for qbt to finish. 7. The prompt of the shell should reappear now.
Author
Owner

@sledgehammer999 commented on GitHub (Sep 28, 2013):

  1. Shutting down of Ubuntu when qbt is running
    https://docs.google.com/file/d/0B7LlK5UsbHJBVUZxRVJ4aEpGc3M/edit?usp=sharing

This shows that qbt exits almost immediately after a "shutdown" has been issued. While this:

  1. Shutting down of Ubuntu when qbt is running. Show all process:
    https://docs.google.com/file/d/0B7LlK5UsbHJBY1VYaERhS00yQnc/edit?usp=sharing

Other processes(like skype) don't exit although the system is shutting down.

I really don't know what the problem is here. But qbt is exiting immediately and shouldn't have any effect on your shutdown. Maybe the bug is in Ubuntu and not qbt?

@sledgehammer999 commented on GitHub (Sep 28, 2013): > 1. Shutting down of Ubuntu when qbt is running > https://docs.google.com/file/d/0B7LlK5UsbHJBVUZxRVJ4aEpGc3M/edit?usp=sharing This shows that qbt exits almost immediately after a "shutdown" has been issued. While this: > 1. Shutting down of Ubuntu when qbt is running. Show all process: > https://docs.google.com/file/d/0B7LlK5UsbHJBY1VYaERhS00yQnc/edit?usp=sharing Other processes(like skype) don't exit although the system is shutting down. I really don't know what the problem is here. But qbt is exiting immediately and shouldn't have any effect on your shutdown. Maybe the bug is in Ubuntu and not qbt?
Author
Owner

@SergeyAka commented on GitHub (Sep 28, 2013):

Kervius, it seems qbt doesn't Exit with menu File->Exit.
Check this video: https://docs.google.com/file/d/0B7LlK5UsbHJBM3NDMlRRUWJXbWc/edit?usp=sharing

After 2 minutes command ps wuax | grep qbittorrent in terminal still have output. It's not empty.

But I can't find proces of qbittorrent in System monitor or utility HTOP.

P.S. I've got this result by following your advice:
https://docs.google.com/file/d/0B7LlK5UsbHJBbGFiOVFRYkU1cUU/edit?usp=sharing

The prompt of the shell:
sergey@sergey-pc:$ qbittorrent
Object::connect: No such slot TrackerList::editSelectedTracker()
Object::connect: No such slot TrackerList::editSelectedTracker()
Object::connect: No such slot PropertiesWidget::editWebSeed()
Object::connect: (receiver name: 'PropertiesWidget')
Object::connect: No such slot PropertiesWidget::editWebSeed()
Object::connect: (sender name: 'listWebSeeds')
Object::connect: (receiver name: 'PropertiesWidget')
virtual void RssFeed::refresh() Feed "LostFilm.TV" is already being refreshed, ignoring request
virtual void RssFeed::refresh() Feed "NovaFiLM.TV" is already being refreshed, ignoring request
sergey@sergey-pc:
$

@SergeyAka commented on GitHub (Sep 28, 2013): Kervius, it seems qbt doesn't Exit with menu File->Exit. Check this video: https://docs.google.com/file/d/0B7LlK5UsbHJBM3NDMlRRUWJXbWc/edit?usp=sharing After 2 minutes command ps wuax | grep qbittorrent in terminal still have output. It's not empty. But I can't find proces of qbittorrent in System monitor or utility HTOP. P.S. I've got this result by following your advice: https://docs.google.com/file/d/0B7LlK5UsbHJBbGFiOVFRYkU1cUU/edit?usp=sharing The prompt of the shell: sergey@sergey-pc:~$ qbittorrent Object::connect: No such slot TrackerList::editSelectedTracker() Object::connect: No such slot TrackerList::editSelectedTracker() Object::connect: No such slot PropertiesWidget::editWebSeed() Object::connect: (receiver name: 'PropertiesWidget') Object::connect: No such slot PropertiesWidget::editWebSeed() Object::connect: (sender name: 'listWebSeeds') Object::connect: (receiver name: 'PropertiesWidget') virtual void RssFeed::refresh() Feed "LostFilm.TV" is already being refreshed, ignoring request virtual void RssFeed::refresh() Feed "NovaFiLM.TV" is already being refreshed, ignoring request sergey@sergey-pc:~$
Author
Owner

@Kervius commented on GitHub (Sep 29, 2013):

@SergeyAka

After 2 minutes command ps wuax | grep qbittorrent in terminal still have output. It's not empty.

Output is not empty because you see the "grep" command itself in it.
You can cancel the effect by either adding "|grep -v grep" to the pipe or using the "pgrep qbittorrent" command instead. ("pgrep" displays only PIDs.)

P.S. I've got this result by following your advice:
https://docs.google.com/file/d/0B7LlK5UsbHJBbGFiOVFRYkU1cUU/edit?usp=sharing

The QBT has finished almost instantaneously.

Sergey, since you are in a mood for the tests. Another one:

  1. Install sysstat package. It provides nice tool called "pidstat".
  2. Start QBT. Let it run for some time.
  3. In terminal #1 start command: iostat -x 5
    Information of interest is: avgqu-sz column showing the size of (pending) IO queue.
  4. In terminal #2 start command: pidstat -d 5
    Information of interest is: the amount of IO the QBT causes.
  5. Let the commands print something at least twice to have the baseline for comparison.
  6. Quit the QBT.
  7. Let the commands print something again twice.
  8. Provide the output of the commands.

The point of the test is to see how much IO QBT causes when it terminates. Linux tends to speculatively delay IO activities. That would make QBT terminate fast even if it causes flurry of IO. But during shutdown, the IO is finalized and disks are synced, making OS (and user) to actually wait for the completion.

If IO is low/moderate, then I think it has nothing to do with IO. (Probably some interaction with the session manager?)

@Kervius commented on GitHub (Sep 29, 2013): @SergeyAka > After 2 minutes command ps wuax | grep qbittorrent in terminal still have output. It's not empty. Output is not empty because you see the "grep" command itself in it. You can cancel the effect by either adding "|grep -v grep" to the pipe or using the "pgrep qbittorrent" command instead. ("pgrep" displays only PIDs.) > P.S. I've got this result by following your advice: > https://docs.google.com/file/d/0B7LlK5UsbHJBbGFiOVFRYkU1cUU/edit?usp=sharing The QBT has finished almost instantaneously. Sergey, since you are in a mood for the tests. Another one: 1. Install sysstat package. It provides nice tool called "pidstat". 2. Start QBT. Let it run for some time. 3. In terminal #1 start command: iostat -x 5 Information of interest is: avgqu-sz column showing the size of (pending) IO queue. 4. In terminal #2 start command: pidstat -d 5 Information of interest is: the amount of IO the QBT causes. 5. Let the commands print something at least twice to have the baseline for comparison. 6. Quit the QBT. 7. Let the commands print something again twice. 8. Provide the output of the commands. The point of the test is to see how much IO QBT causes when it terminates. Linux tends to speculatively delay IO activities. That would make QBT terminate fast even if it causes flurry of IO. But during shutdown, the IO is finalized and disks are synced, making OS (and user) to actually wait for the completion. If IO is low/moderate, then I think it has nothing to do with IO. (Probably some interaction with the session manager?)
Author
Owner

@SergeyAka commented on GitHub (Sep 29, 2013):

Ok, here are the results of commands:
pidstat https://docs.google.com/file/d/0B7LlK5UsbHJBcnE3OURoV01HU28/edit?usp=sharing
iostat https://docs.google.com/file/d/0B7LlK5UsbHJBWGt4NnZrOEVzMkE/edit?usp=sharing

I think analyze text file more convenient than read it on this page.

And video: https://docs.google.com/file/d/0B7LlK5UsbHJBQjdyTHcydGtRbzA/edit?usp=sharing

@SergeyAka commented on GitHub (Sep 29, 2013): Ok, here are the results of commands: pidstat https://docs.google.com/file/d/0B7LlK5UsbHJBcnE3OURoV01HU28/edit?usp=sharing iostat https://docs.google.com/file/d/0B7LlK5UsbHJBWGt4NnZrOEVzMkE/edit?usp=sharing I think analyze text file more convenient than read it on this page. And video: https://docs.google.com/file/d/0B7LlK5UsbHJBQjdyTHcydGtRbzA/edit?usp=sharing
Author
Owner

@Kervius commented on GitHub (Sep 29, 2013):

Ok, here are the results of commands:

Absolutely nothing out of ordinary, what might impact the shutdown in any noticeable fashion.

@Kervius commented on GitHub (Sep 29, 2013): > Ok, here are the results of commands: Absolutely nothing out of ordinary, what might impact the shutdown in any noticeable fashion.
Author
Owner

@SergeyAka commented on GitHub (Sep 29, 2013):

P.S. I see message of recovering of VAR partion every time then Ubuntu starts. Maybe some app can't stop when Ubuntu shutdown. But this issue appeare before I installed QBT, maybe it's ffmpegthumbnailer.

@SergeyAka commented on GitHub (Sep 29, 2013): P.S. I see message of recovering of VAR partion every time then Ubuntu starts. Maybe some app can't stop when Ubuntu shutdown. But this issue appeare before I installed QBT, maybe it's ffmpegthumbnailer.
Author
Owner

@SergeyAka commented on GitHub (Sep 29, 2013):

Don't know it is usefull or not, but here is screenshot of tetminal with iostat -x 5 and pidstat -d 5 commands at the moment when Ubuntu goes to restart.
2013-09-29 17 30 50

@SergeyAka commented on GitHub (Sep 29, 2013): Don't know it is usefull or not, but here is screenshot of tetminal with iostat -x 5 and pidstat -d 5 commands at the moment when Ubuntu goes to restart. ![2013-09-29 17 30 50](https://f.cloud.github.com/assets/1101984/1232905/30f29b90-28f3-11e3-8298-dbcc907e7a33.png)
Author
Owner

@SergeyAka commented on GitHub (Oct 17, 2013):

qbittorrent got update to 3.1.0 version. Now it works perfect. Thanx!

@SergeyAka commented on GitHub (Oct 17, 2013): qbittorrent got update to 3.1.0 version. Now it works perfect. Thanx!
Author
Owner

@sledgehammer999 commented on GitHub (Oct 17, 2013):

Awesome. Closing.

@sledgehammer999 commented on GitHub (Oct 17, 2013): Awesome. Closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#767
No description provided.