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 slows Ubuntu 13.04 to restart or change users #938

Closed
SergeyAka opened this issue Sep 25, 2013 · 16 comments
Closed

qbittorrent slows Ubuntu 13.04 to restart or change users #938

SergeyAka opened this issue Sep 25, 2013 · 16 comments
Labels
OS: Linux Issues specific to Linux distributions

Comments

@SergeyAka
Copy link

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.

@sledgehammer999
Copy link
Member

How many torrents do you have in your transferlist?

@sledgehammer999
Copy link
Member

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)

@SergeyAka
Copy link
Author

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 SergeyAka reopened this Sep 25, 2013
@SergeyAka
Copy link
Author

Is there any idea why qbittorrent slows Ubuntu?

@sledgehammer999
Copy link
Member

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.

@SergeyAka
Copy link
Author

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

@Kervius
Copy link

Kervius commented 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.

@sledgehammer999
Copy link
Member

  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?

@SergeyAka
Copy link
Author

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

@Kervius
Copy link

Kervius commented 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 i reported a bug in launchpad but i thought i can fix it too ;) "bad tra... #1 start command: iostat -x 5
    Information of interest is: avgqu-sz column showing the size of (pending) IO queue.
  4. In terminal Fix build with gcc 4.7. #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?)

@SergeyAka
Copy link
Author

@Kervius
Copy link

Kervius commented Sep 29, 2013

Ok, here are the results of commands:

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

@SergeyAka
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

@sledgehammer999
Copy link
Member

Awesome. Closing.

@qbittorrent qbittorrent locked and limited conversation to collaborators Feb 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
OS: Linux Issues specific to Linux distributions
Projects
None yet
Development

No branches or pull requests

3 participants