OSX Mountain Lion 10.8 Python Crash

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.
mrechonet
Newbie
Newbie
Posts: 1
Joined: August 12th, 2012, 4:10 pm

OSX Mountain Lion 10.8 Python Crash

Post by mrechonet »

Ever since I have updated to 10.8 SABnzbd has crashed after 24-48 hours of running. Even with just 1-2 downloads over that time. It does not crash while in the process of downloading or processing.

Version: 0.7.3
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8a371686 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff8a370c42 mach_msg + 70
2 com.apple.CoreFoundation 0x00007fff89feaf23 __CFRunLoopServiceMachPort + 195
3 com.apple.CoreFoundation 0x00007fff89ff0606 __CFRunLoopRun + 1078
4 com.apple.CoreFoundation 0x00007fff89fefdd2 CFRunLoopRunSpecific + 290
5 com.apple.HIToolbox 0x00007fff9028c774 RunCurrentEventLoopInMode + 209
6 com.apple.HIToolbox 0x00007fff9028c512 ReceiveNextEventCommon + 356
7 com.apple.HIToolbox 0x00007fff9028c3a3 BlockUntilNextEventMatchingListInMode + 62
8 com.apple.AppKit 0x00007fff89206fa3 _DPSNextEvent + 685
9 com.apple.AppKit 0x00007fff89206862 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
10 com.apple.AppKit 0x00007fff891fdc03 -[NSApplication run] + 517
11 com.apple.AppKit 0x00007fff891a2656 NSApplicationMain + 869
12 _AppKit.so 0x000000010506020f 0x10505f000 + 4623
13 org.python.python 0x0000000102ae8d77 PyEval_EvalFrameEx + 13861
14 org.python.python 0x0000000102aebcd8 PyEval_EvalCodeEx + 1996
15 org.python.python 0x0000000102aebe6c PyEval_EvalCode + 341
16 org.python.python 0x0000000102ae8e0a PyEval_EvalFrameEx + 14008
17 org.python.python 0x0000000102aebcd8 PyEval_EvalCodeEx + 1996
18 org.python.python 0x0000000102aebd4d PyEval_EvalCode + 54
19 org.python.python 0x0000000102b0308f Py_CompileString + 62
20 org.python.python 0x0000000102b0314f PyRun_FileExFlags + 157
21 org.python.python 0x0000000102ae11f6 _PyBuiltin_Init + 4630
22 org.python.python 0x0000000102ae8d77 PyEval_EvalFrameEx + 13861
23 org.python.python 0x0000000102aebcd8 PyEval_EvalCodeEx + 1996
24 org.python.python 0x0000000102aebe6c PyEval_EvalCode + 341
25 org.python.python 0x0000000102ae8e0a PyEval_EvalFrameEx + 14008
26 org.python.python 0x0000000102aebcd8 PyEval_EvalCodeEx + 1996
27 org.python.python 0x0000000102aebd4d PyEval_EvalCode + 54
28 org.python.python 0x0000000102b0308f Py_CompileString + 62
29 org.python.python 0x0000000102b0314f PyRun_FileExFlags + 157
30 org.python.python 0x0000000102b042a2 PyRun_SimpleFileExFlags + 392
31 org.sabnzbd.team 0x000000010286fb10 0x10286d000 + 11024
32 org.sabnzbd.team 0x000000010286df21 main + 1401
33 org.sabnzbd.team 0x000000010286d9a0 start + 52
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: OSX Mountain Lion 10.8 Python Crash

Post by shypike »

No idea, but I'd say: blame Apple.
We haven't done extensive testing on Mountain Lion yet.
One crude work-around could be to schedule a restart every 12 hours or so, in SABnzbd's own scheduler.
Also, you could disable the OSX top menu entry.
Set 'osx_menu' off in Config->Special and restart.
fafoulon
Newbie
Newbie
Posts: 16
Joined: November 8th, 2010, 10:06 am

Re: OSX Mountain Lion 10.8 Python Crash

Post by fafoulon »

Hi,

I'm also having the exact same problem, crash when doing nothing with mountain lion on a mac mini.
I tried your suggestion (osx_menu) but without success

Any other ideas?

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

Re: OSX Mountain Lion 10.8 Python Crash

Post by shypike »

We're investigating this.
It seems that Lion Python might not be fully compatible with Mountain Lion.
What we do know for sure is that running a SABnzbd version built on Mountain Lion will not run on Lion.
Thank you Apple, for not understanding the concept of compatibility.
Can I invite you as a guinea pig when we have a dedicated MountainLion version for testing?
fafoulon
Newbie
Newbie
Posts: 16
Joined: November 8th, 2010, 10:06 am

Re: OSX Mountain Lion 10.8 Python Crash

Post by fafoulon »

Thanks for you answer.

And yes, no problem to test anything, with pleasure :-)
fafoulon
Newbie
Newbie
Posts: 16
Joined: November 8th, 2010, 10:06 am

Re: OSX Mountain Lion 10.8 Python Crash

Post by fafoulon »

Hi,

I updated to 0.7.4beta2, and I had two crashes during the night.

Here is one log : https://dl.dropbox.com/u/8454875/SABnzbd.crash

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

Re: OSX Mountain Lion 10.8 Python Crash

Post by shypike »

Can you try the other two variants?
They aren't completely functional, but they may give more info about stability.
The Lion version will miss standby-prevention and Notification Center support.
The SL version will also miss the menu icon and will report a crash on exit.
Very few stability problems have been reported by other people and I
have never been able to get a crash with any of the builds on ML,
so possibly there's something "special" with your system.
What kind of hardware do you have exactly?
BTW: I have read quite a few complaints about 10.8.1, but I haven't had any of those problems either.
fafoulon
Newbie
Newbie
Posts: 16
Joined: November 8th, 2010, 10:06 am

Re: OSX Mountain Lion 10.8 Python Crash

Post by fafoulon »

Yes, I will try the two other ones.

For info, I have 10.8.1 running on a late 2011 Mac Mini, and there is also other Python processes on the same mac : CouchPotato and Headphones.
I also have Plex Media Server, iTeleport running all the time.
OSX Server is installed and running.

I try the two other ones and I get back to you.

(In the meantine, I have script that checks every minute if Sabnzbd is running, and if not, starting it again)
fafoulon
Newbie
Newbie
Posts: 16
Joined: November 8th, 2010, 10:06 am

Re: OSX Mountain Lion 10.8 Python Crash

Post by fafoulon »

So I tried both, and both are also crashing the same way.

Crash report Lion : https://dl.dropbox.com/u/8454875/SABnzb ... ulon.crash
Crash report Snow Leopard : https://dl.dropbox.com/u/8454875/SABnzb ... ulon.crash

Also I noticed that since yesterday that I upgraded to the new beta, whatever version (ML, L & SL) is always running around 90-120% of processor use, even when the queue is empty.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: OSX Mountain Lion 10.8 Python Crash

Post by shypike »

I cannot even reproduce the high CPU load in rest.
When I have one browser window with a 1-sec refresh rate, the CPU usage is 4%.
(Hardware: miniMac of mid-2010).
What happens if you set logging to debug and look at the debug file a minute later (while in rest).
Is anything logged?
If you close down all browser windows and any utility interfacing with SABnzbd, does it quiet down (CPU)?
Do you have a "security suite" installed (other than just the built-in firewall)?
jackie_shan
Newbie
Newbie
Posts: 8
Joined: September 4th, 2010, 2:37 pm

Re: OSX Mountain Lion 10.8 Python Crash

Post by jackie_shan »

fafoulon wrote: (In the meantine, I have script that checks every minute if Sabnzbd is running, and if not, starting it again)
Hi,

I got the same issue than you (Mountain Lion on Mac Mini 2011 + Sabnzbd+ 0.7.3)

Could you share this script who check and launch Sabnzbd please ?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: OSX Mountain Lion 10.8 Python Crash

Post by shypike »

jackie_shan wrote: I got the same issue than you (Mountain Lion on Mac Mini 2011 + Sabnzbd+ 0.7.3)
This issue was solved in 0.7.5, but please upgrade to 0.7.6Beta2.
Krustyx
Newbie
Newbie
Posts: 10
Joined: November 21st, 2012, 12:31 pm

Re: OSX Mountain Lion 10.8 Python Crash

Post by Krustyx »

I got the same issue (Mountain Lion on Mac Mini 208 + Sabnzbd+ 0.7.6)
Any ideas?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: OSX Mountain Lion 10.8 Python Crash

Post by shypike »

Krustyx wrote:I got the same issue (Mountain Lion on Mac Mini 208 + Sabnzbd+ 0.7.6)
Any ideas?
None, except remarking that people too quickly say "same problem".
Please describe the scenario(s) that lead to the issue on your system.
Krustyx
Newbie
Newbie
Posts: 10
Joined: November 21st, 2012, 12:31 pm

Re: OSX Mountain Lion 10.8 Python Crash

Post by Krustyx »

I installed 0.7.6 on my Mac Mini 2008 with Lion (not Mountain Lion, sorry for that).
I don't know how long SABnzbd stays in idle-mode, but after 10-20h after the last download SABnzbd ist shut down.
I have migrated my programms from snow leo to Lion. After migration I installed the lion version of SABnzbd. Can this be the problem?

Where can I find the log files of SABnzbd?
Post Reply