[0.7.0b5] traceback after downloader timeout?

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
jcfp
Release Testers
Release Testers
Posts: 1005
Joined: February 7th, 2008, 12:45 pm

[0.7.0b5] traceback after downloader timeout?

Post by jcfp »

With todays downloads, there were some timeouts during downloading, probably as a result of issue with my isp. This caused the following traceback to show up a couple of times:
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/share/sabnzbdplus/sabnzbd/downloader.py", line 308, in run
if nw.nntp.error_msg or (nw.timeout and time.time() > nw.timeout):
AttributeError: 'NoneType' object has no attribute 'error_msg'
Everything seemed to continue normally otherwise.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.0b5] traceback after downloader timeout?

Post by shypike »

Hmmm, sloppy programming.
Or the result of a race condition. I'll look into it.
The exception itself is easy to work around.
Was this an "optional" server?
User avatar
jcfp
Release Testers
Release Testers
Posts: 1005
Joined: February 7th, 2008, 12:45 pm

Re: [0.7.0b5] traceback after downloader timeout?

Post by jcfp »

shypike wrote:Was this an "optional" server?
Yes, must have been since all servers are set optional in my install.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [0.7.0b5] traceback after downloader timeout?

Post by shypike »

For optional I now have a hunch about what can go wrong, only so far I haven't been able to reproduce the scenario.
I will fix the crashing code anyway.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1005
Joined: February 7th, 2008, 12:45 pm

Re: [0.7.0b5] traceback after downloader timeout?

Post by jcfp »

Probably not easy to reproduce indeed. Some background info: turns out my provider thought I had been uploading "excessive" amounts of data, and figured it would be a good "punishment" to limit my upstream to 128 kbit/s (down from 100 mbit/s). That resulted in a sab install setup for high speed downloading now being insanely cut off by limited upload bandwidth, and even then this traceback happened only a few times after hours of downloading.
Post Reply