[OS X 10.8] Mac falls asleep during download, doesn't resume

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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
mahrain
Newbie
Newbie
Posts: 5
Joined: June 22nd, 2012, 3:25 am

[OS X 10.8] Mac falls asleep during download, doesn't resume

Post by mahrain »

In the changelog for 0.7.3 I read "- Try to keep OSX Mountain Lion awake as long as downloading and postprocessing run" well, SABnzbd fails here. During a download at the set time the Mac will go in standby mode, then when waking SABnzbd will be stalled. I have to manually close and restart it in order for my downloads to resume.

This is a regression from the 0.6.x series (and I'm not sure for 0.7.0-0.7.2 since I didn't use those much.)

The test case is simple, set your standby time to 15 minutes or so, start a download which takes longer to complete. See the Mac go into standby. Upon waking the menu bar icon will show "------ B/s" until SABnzbd is restarted.
mahrain
Newbie
Newbie
Posts: 5
Joined: June 22nd, 2012, 3:25 am

Re: [OS X 10.8] Mac falls asleep during download, doesn't re

Post by mahrain »

Workaround: I use the utility "Caffeine" (not Apple's cli program but the menu bar utility) to keep the Mac awake indefinitely.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [OS X 10.8] Mac falls asleep during download, doesn't re

Post by shypike »

0.7.3 runs OSX's caffeinate periodically.
It works fine on my system, but that's a mac Mini and not one of the new laptops.
The next release will use the official system calls to keep the Mac awake.
Power management is a bitch on OSX (and likewise on Windows).
mahrain
Newbie
Newbie
Posts: 5
Joined: June 22nd, 2012, 3:25 am

Re: [OS X 10.8] Mac falls asleep during download, doesn't re

Post by mahrain »

It may be related to the interval then, on my Mac mini (late 2009) the system falls asleep still. My "computer sleep" is set to 10 minutes, perhaps this is too short an interval for the caffeinate tool?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [OS X 10.8] Mac falls asleep during download, doesn't re

Post by shypike »

Maybe.
SABnzbd runs it for 5 minutes and it may take up to 30 sec before it's relaunched.
So it shouldn't be an issue, but you never know.
10 minutes is a bit aggressive for a desktop system.
brayman
Newbie
Newbie
Posts: 3
Joined: September 11th, 2012, 11:45 am

Re: [OS X 10.8] Mac falls asleep during download, doesn't re

Post by brayman »

I am having a lot of trouble since I updated to o.7.3
My D/l keep stopping and I have to restart it every time.
Can anyone help me ?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [OS X 10.8] Mac falls asleep during download, doesn't re

Post by shypike »

Set your OSX power settings less aggressive.
Or wait for 0.7.4, which has (hopefully) a working solution.
The problem isn't caused by SABnzbd itself but by OSX and more
"background" programs suffer from this.
brayman
Newbie
Newbie
Posts: 3
Joined: September 11th, 2012, 11:45 am

Re: [OS X 10.8] Mac falls asleep during download, doesn't re

Post by brayman »

Thank you
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [OS X 10.8] Mac falls asleep during download, doesn't re

Post by shypike »

You could downgrade to 0.7.2 or whatever version you used before.
If the problem goes away then I would be very interested to know
because that would mean that SABnzbd itself is a factor as well.
Post Reply