Author Topic: My Program shuts down after each download is completed.  (Read 5881 times)

gpc111

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
My Program shuts down after each download is completed.
« on: March 23, 2013, 08:38:36 AM »
Ever since I updated to version 3.0.9 the program stops after each torrent completes. The remaining torrents are in a "stalled" status and will not download. I have to exit the program, bring up task manager and kill off the Qbittorrent process, and then restart the program. It then works fine until the next torrent completes and I have to repeat the above process. I have not made any changes to the default settings in the options so I am not sure why it is acting like this. How can I restore the program to complete a torrent and continues with the rest of my downloads? BTW, I am XP SP2 still. Thank you

Johnsau

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #1 on: March 23, 2013, 09:14:28 AM »
I have the same problem. I have to restart the program after every download is completed, and I check with task manger , which show the qbittorrent not completely shutdown when I closed the program, it took 3 to 5 minutes completely shutdown, during this period if you start your qbittorrent , you will have I/O error, since the the last qbittorrent still running in the background, and I can't kill the qbittorrent process until 3 to 5 mins later. I think this version really have problem, I might going back to 3.08.

100%

  • Veteran
  • ***
  • Posts: 88
  • Karma: +4/-0
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #2 on: March 23, 2013, 02:03:02 PM »
@Johnsau

What's your OS? I'm on Win 7 x64 and I don't have that problem...

gpc111

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #3 on: March 24, 2013, 01:08:08 AM »
I see I am not the only one with this problem. I too am considering going back to 3.0.8 or a different torrent program. That would be a shame as I really like this one but it is too annoying having to exit the program and use task manager to kill the program after each download. I hope this issue can be addressed.

gpc111

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #4 on: March 24, 2013, 01:35:32 AM »
I have just went back to 3.0.8. I have tested it and everything is back to normal and working great. It is easy to do. just visit this link...

http://sourceforge.net/projects/qbittorrent/files/qbittorrent-win32/.

Download 3.0.8. The installation will be the same as an upgrade. You will be prompted to uninstall the current version and in this case, install the old version. You will be back to a working 3.0.8.

Nemo

  • qBittorrent Forum
  • Administrator
  • Forum addict
  • *****
  • Posts: 1469
  • Karma: +90/-0
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #5 on: March 24, 2013, 01:42:20 AM »
Hmm.. Im not sure whats going wrong there to be honest. Be careful though with 3.0.8. There was a bug with big files causing I/O errors or corruption which was fixed with 3.0.9 release. Not with all big torrents its very random. See here for more information about this: http://qbforums.shiki.hu/index.php?topic=1729.0.
Forum Rules and Guidelines

Forum Admin.
Dutch & Turkish Translator.




Tomaso

  • Veteran
  • ***
  • Posts: 266
  • Karma: +18/-0
  • Norwegian translator
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #6 on: March 24, 2013, 09:19:14 AM »
From reading this thread, it looks like my fear might have come true:
http://qbforums.shiki.hu/index.php?topic=1747.msg5880#msg5880

kcaldwel

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #7 on: March 25, 2013, 07:02:32 PM »
I have the problem too with 3.0.9 on XP SP3. 3.0.8 works fine.

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #8 on: March 25, 2013, 07:13:51 PM »
@ all having this problem
I am currently rebuilding 3.0.9 with libtorrent 0.16.8 (used in qbt 3.0.8 ). I will make a new topic in this forum and post the installer in a few minutes(maybe an hour).

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #10 on: April 05, 2013, 11:51:31 PM »
It seems that now I hit the same bug too. After a while a perfectly working torrent will go to the "stalled" status. Newly added torrents will not work even though the swarm is huge. The same happens for the "Stalled" torrent, even though there are more than enough peers available for some reason it doesn't connect. If you close the program, the window is destroyed but the process remains in the task manager, and you have to kill it resulting in a recheck the next time the app is launced. More over, when qbt is in this state if I delete a torrent and tell it to delete the files from the disk too, the files never get deleted even though the torrent is removed. My hunch is that somehow libtorrent enters a dirty state that the program needs to take some specific action to return libtorrent in a working state but the current code either fails to do so or ignores the error completely.

I did not do any update to my system nor did I poke around with my qbt installation. I think that this bug manifests itself depending on the moon phase and the position of the stars[/sarcasm]. I am afraid to try different qbt versions, in case I cannot trigger this bug again :S

Also I don't have any idea how I should debug this...

tekko

  • Guest
Re: My Program shuts down after each download is completed.
« Reply #11 on: April 06, 2013, 12:18:27 AM »
I am not seeing it in the newest alpha(x86) yet... maybe it has to do with the extra updates that 3.0.9 contains.
« Last Edit: April 06, 2013, 12:25:37 AM by tekko »

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #12 on: April 06, 2013, 01:02:44 AM »
Oh yeah I forgot. I am using 3.0.9 official.

QBitt

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #13 on: April 06, 2013, 06:19:36 AM »
Same behavior here Win 8 64bit running 3.0.9 32bit.

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile
Re: My Program shuts down after each download is completed.
« Reply #14 on: April 06, 2013, 08:22:42 PM »
I have made some progress.
For the shutdown hang: The destructor of the libtorrent::session() class blocks for some reason. Probably a deadlock. I cannot understand the libtorrent code, but I think it waits for some background thread to finish(maybe disk thread or network thread).
1. I noticed that the save_resume_data doesn't return an alert with the fastresume data, probably indicating that the responsible thread is busy(deadlocked?) doing something else. This means that progress would be lost, even if the libtorrent::session()'s destrcuctor returned. This probably explains some bug reports that "qbt forgets the progress during exit/shutdown", since qbt wouldn't actually save the progress.
2. For the stalling issue: Probably the same thread(and problem) is responsible as in above. I also observed a lot of udp_error_alert with the message "UDP error: No connection could be made because the target machine actively refused it from: x.x.x.x ". This error is observed in 0.16.8 but it happens a lot less. Probably explains other bug reports of "stalled torrents". Maybe some system limit is hit with that many errors(too many ports/connections opened?)
3. This happens even with git master + libtorrent 0.16.9 on my machine. But libtorrent 0.16.8 doesn't exhibit this problem. Next step is to test with RC_0_16 branch and svn trunk of libtorrent

I will do a bug report in libtorrent after number 3 testing.