Keep getting this error: ZeroDivisionError: division by zero

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
bobrap
Newbie
Newbie
Posts: 13
Joined: March 17th, 2008, 11:30 am

Keep getting this error: ZeroDivisionError: division by zero

Post by bobrap »

I've been getting this error on all versions after V3.6.1:
Traceback (most recent call last):
File "SABnzbd.py", line 1762, in <module>
File "SABnzbd.py", line 1571, in main
File "sabnzbd\__init__.py", line 516, in check_all_tasks
File "sabnzbd\nzbqueue.py", line 601, in update_sort_order
File "sabnzbd\decorators.py", line 54, in call_func
File "sabnzbd\nzbqueue.py", line 594, in sort_queue
File "sabnzbd\nzbqueue.py", line 588, in <lambda>
ZeroDivisionError: division by zero

No problems at all on 3.6.1 running on Win 11. Thanks for any help.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Keep getting this error

Post by safihre »

And when do you get that? Do you click something?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
bobrap
Newbie
Newbie
Posts: 13
Joined: March 17th, 2008, 11:30 am

Re: Keep getting this error

Post by bobrap »

Downloading files. I switch to another window and when I go back to SAB, the error is there and downloads stop.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Keep getting this error

Post by safihre »

In Config Switches, what Auto Sort Queue option do you have set?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
bobrap
Newbie
Newbie
Posts: 13
Joined: March 17th, 2008, 11:30 am

Re: Keep getting this error

Post by bobrap »

Sort by % downloaded most -least. In 3.6.1 it is set to default. Should I switch it to default?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Keep getting this error: ZeroDivisionError: division by zero

Post by safihre »

Setting it to Default or empty will prevent the error from occurring indeed. But it's something we need to fix clearly!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Puzzled
Full Member
Full Member
Posts: 160
Joined: September 2nd, 2017, 3:02 am

Re: Keep getting this error: ZeroDivisionError: division by zero

Post by Puzzled »

If you have a Github account you can get a (hopefully) fixed version here: https://github.com/sabnzbd/sabnzbd/acti ... 3657331955
bobrap
Newbie
Newbie
Posts: 13
Joined: March 17th, 2008, 11:30 am

Re: Keep getting this error: ZeroDivisionError: division by zero

Post by bobrap »

Thanks very much!
Post Reply