[Mac OS X] TBB par2 gets stuck in aio

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
BahamutZER0
Newbie
Newbie
Posts: 3
Joined: April 19th, 2009, 6:57 pm

[Mac OS X] TBB par2 gets stuck in aio

Post by BahamutZER0 »

Hello.

I was troubleshooting an issue where a download would hang forever in "repairing". It turned out that the modified par2 binary that is distributed with SABnzbd 0.4.9 for Mac OS X was stuck waiting for aio (at least that's my best guess based on the stack traces I got sampling the process). Manually moving aside the par2 binary and soft-linking par2 to par2-classic fixed the problem.

In general, aio is rather finicky on Mac OS X and should be avoided. If there's a place where I could get the source for the modified par2 binary, I would submit a patch, but I'm not sure there that is.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [Mac OS X] TBB par2 gets stuck in aio

Post by shypike »

I'll let rAf (our OSX maintainer) contact you.
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

Re: [Mac OS X] TBB par2 gets stuck in aio

Post by rAf »

Hi,

The par2 ttb binary comes from chuchusoft.com, sources are availables on the site.
I've tried to build but it's complicated... read carefully the README included in sources.

What's your hardware config (CPU G5/G4/Intel Core2Duo or CoreDuo) ?
Is SABnzbd hanging on every downloads ?
BahamutZER0
Newbie
Newbie
Posts: 3
Joined: April 19th, 2009, 6:57 pm

Re: [Mac OS X] TBB par2 gets stuck in aio

Post by BahamutZER0 »

I have a MacPro1,1 (2.66 GHz dual-code Merom Xeons) with 9G55 (10.5.6 GM).

I have only reproduced the hang with one specific download, but it reproduced every time I tried.

In any case, thanks for the link. I'll have a look at the source and see if I can figure out what's causing the program to hang in aio.
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

Re: [Mac OS X] TBB par2 gets stuck in aio

Post by rAf »

Nice hardware for SAB ;)
Could you please pm me the nzb that hangs or the newzbin id (if available) ?
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

Re: [Mac OS X] TBB par2 gets stuck in aio

Post by rAf »

Hi BahamutZER0,

I've tested with your nzb and repairing with ttb works...
FYI, I'm using a macbook pro late 2007 (2.4Ghz 4Go) 10.5.6 with all updates.
BahamutZER0
Newbie
Newbie
Posts: 3
Joined: April 19th, 2009, 6:57 pm

Re: [Mac OS X] TBB par2 gets stuck in aio

Post by BahamutZER0 »

I'll test again in a few days with a debug build of par2, see if I can reproduce and gather more info.
rAf
Moderator
Moderator
Posts: 546
Joined: April 28th, 2008, 2:35 pm
Location: France
Contact:

Re: [Mac OS X] TBB par2 gets stuck in aio

Post by rAf »

I've made some tests with differents par2 binaries.
I get bad results with par2 ttb in my tests.
If you want to test just grab http://osx.boiboite.net/downloads/par2tests.zip (par2 binaries are included)
Put your par2/rar files on datas folders, edit the launch.sh (replace MYFILENAME by your set filename) and launch in a terminal...

I don't know if par2 ttb is very useful.
Post Reply