Page 1 of 1
[Mac OS X] TBB par2 gets stuck in aio
Posted: April 19th, 2009, 7:01 pm
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.
Re: [Mac OS X] TBB par2 gets stuck in aio
Posted: April 20th, 2009, 1:25 am
by shypike
I'll let rAf (our OSX maintainer) contact you.
Re: [Mac OS X] TBB par2 gets stuck in aio
Posted: April 21st, 2009, 9:14 am
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 ?
Re: [Mac OS X] TBB par2 gets stuck in aio
Posted: April 22nd, 2009, 2:29 pm
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.
Re: [Mac OS X] TBB par2 gets stuck in aio
Posted: April 22nd, 2009, 2:49 pm
by rAf
Nice hardware for SAB

Could you please pm me the nzb that hangs or the newzbin id (if available) ?
Re: [Mac OS X] TBB par2 gets stuck in aio
Posted: April 23rd, 2009, 10:58 am
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.
Re: [Mac OS X] TBB par2 gets stuck in aio
Posted: April 23rd, 2009, 11:31 am
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.
Re: [Mac OS X] TBB par2 gets stuck in aio
Posted: April 23rd, 2009, 11:44 am
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.