Error opening socket on specified port. Please choose a different port.

66 views
Skip to first unread message

Gabe Mott

unread,
Apr 24, 2011, 3:55:14 PM4/24/11
to tryplex...@googlegroups.com
Hi:

I have been getting this message since I've been using tryplex the last couple of weeks. 
It is explained in the documentation as happening when you open a second OSCeleton composition and you just need to restart Quartz Composer.
I've done that and it has worked in the past.

But now, I can't get beyond it. I get three window popups with the error message:
"Error opening socket on specified port. Please choose a different port."

And while osceleton in the terminal finds a new user, the quartz composition never jumps to life. 

I have:
1. restarted the computer
2. tried 5 different compositions. this started when i tried the elusive hit test that nicholas and sebastian made. i thought it was this comp that was causing the trouble, but then i tried the original 01 file that comes with the download (and a few others- all after doing the following)
3. restarted sendOSC, osceleton terminal, qc and the computer.
4. switched my usb port
5. and checked and run kinect.qtz to see if the kinect was working for that and it was- both the rgb and the depth.

so now I don't know what to do. I'm glad this is happening now i suppose because i'll be (hopefully) doing a demo on friday of this stuff. 

is there some terminal command that flushes the socket? or some other solution?
any ideas?

it was working last night and i can't think of what i changed in my system that caused this to happen.

thanks,
gabe

Gabe Mott

unread,
Apr 25, 2011, 10:45:41 PM4/25/11
to tryplex...@googlegroups.com
OK, I think I sorted this out with some trial and error. 
I started going through my plugins and patches and taking them out to see if one of them was giving me the error socket issue.

I had put in "ImageWithKinect.plugin" in my HD>Library>Graphics>Quartz Composer Plug-Ins Folder. And when I took it out, it got me down to just one Error Socket window.

That's too bad because it looks like that was going to be a useful plugin. But onwards with OSCeleton.

I still had one error, and I don't know why but I took out "01s_Kinect Skeleton OSC to SkeletonStruct.qtz" from my HD>Library>Graphics>Quartz Composer Patches Folder. I don't know if it was supposed to be in there in the first place, but hopefully not. 

Anyway, I got the stickman alive again... 
Thanks

Sebastian Kox (gMail)

unread,
Apr 26, 2011, 4:31:29 AM4/26/11
to tryplex...@googlegroups.com
Hi Gabe,

This is actually an issue with Hexler's qcOSC plugin. It's not related to the kinect/osceleton/drivers etc.
qcOSC can't open two of the same OSC ports at one time. This happens when you open a second composition with the OSC receiver in it. To fix quit and restart QC, and open one composition (with only one skeleton osc receiver) at the same time.
I don't think the image with kinect plugin could cause any conflicts with the tryplex patches. It can't be run at the same time though because the kinect can only accessed by one program any time.

Sebastian.

Gabe Mott

unread,
Apr 26, 2011, 3:28:56 PM4/26/11
to tryplex...@googlegroups.com
Thanks Sebastian. 
I had restarted QC so many times and even the computer (a dozen?) over the 48 hours. It finally only worked when I took out "ImageWithKinect.plugin". 
So I don't know...
And just to be clear, osceleton needs qcOSC in there to run right?
I'm so grateful for you guys building this!
Thanks,
Gabe

Sebastian Kox (gMail)

unread,
Apr 26, 2011, 5:48:52 PM4/26/11
to tryplex...@googlegroups.com
Strange, I'll try the imagewithkinect plugin tomorrow.
qcOSC is essential for the toolkit to work.

Gabe Mott

unread,
Apr 29, 2011, 5:43:14 PM4/29/11
to tryplex...@googlegroups.com
You know, I'm discovering that when I have the finder open and an osc qtz file was selected, not opened but the way the finder tries to run things within the finder, that I can't open another osc qtz file. That may have been the problem. Thanks.

vanakaru

unread,
May 25, 2011, 6:42:58 AM5/25/11
to tryplex toolkit for Quartz Composer
I get rid of that error message by not having any Finder windows open.

Sebastian Kox (gMail)

unread,
May 25, 2011, 7:39:55 AM5/25/11
to tryplex...@googlegroups.com
The problem is that qcOSC (the plugin we use to receive the data from osceleton) can only open a osc port once at a time/session.

Another thing is that OSX standard generates previews for most files, including qc compositions. (meaning that it tries to run the composition inside the finder, tries to open qcOSC and that'll slow down your system as well) It's handy to put the files inside a folder where the generate preview option is turned off in the finder, of turn off the preview through your whole system.

If you get the message again, run only one composition using the osc receiver at a time, and quit/restart qc.

Sebastian.

Reply all
Reply to author
Forward
0 new messages