PDA

View Full Version : Err -32766 and -2098 on Mac OS 10.3.8


Yannouchka
March 31st, 2005, 03:15 PM
Hi,

When I try to run some of the bin exemple from ART 2.70.1, I have got the following error : -32766 and -2098

Here is what I get :


"/simpleTest
2005-03-31 11:46:16.993 simpleTest[368] Camera central already inited - probably duplicate register. Skipping...
Opening sequence grabber 1 of 1.
VDCaptureStateChanging err=-32766
VDCaptureStateChanging err=-32766
VDCaptureStateChanging err=-32766
vid->milliSecPerFrame: 200 forcing timer period to 100ms
Video cType is raw , size is 320x240.
Image size (x,y) = (320,240)
*** Camera Parameter ***
--------------------------------------
SIZE = 320, 240
Distortion factor = 159.250000 131.750000 104.800000 1.012757
350.47574 0.00000 158.25000 0.00000
0.00000 363.04709 120.75000 0.00000
0.00000 0.00000 1.00000 0.00000
--------------------------------------
2005-03-31 11:46:28.112 simpleTest[368] GLUT Warning: glutInit being called a second time.
DecompressSequenceFrameWhen err=-2098
vdgDecompressionSequenceWhen err=-2098
DecompressSequenceFrameWhen err=-2098
vdgDecompressionSequenceWhen err=-2098
DecompressSequenceFrameWhen err=-2098
vdgDecompressionSequenceWhen err=-2098
..."

and so on until I CTRL-C

So, here is my computer infos:
PowerPC G4 667Mhz with Mac OS 10.3.8
Graphic card ATI Rage M6, with 16MB of video MEM.
Web Cam Philips PCVC740K

Every thing work fine with ART 2.61.

Here is what I tried and a few questions :
- output suggests me that camera and glut may be already initialized so I rebooted the Mac...nothing.
- when compiling, I was asked for graphic card settings, first I tried with NO, NO, and then with YES, YES, no change...
- When I start the sample, a windows asks me for WebCam settings, It founds the Philips webcam but show "compress with : none" and can not preview anything, even when I change preview mode. Is there any compatibility issue with webcam or drivers?
- Does this new version of ART needs some Shader processing unit? does it required special graphic card?


I hope someone can help. thanks for reading...

Yannouchka

philip_lamb
April 6th, 2005, 04:25 AM
It looks like an error in the camera driver, which is not being passed on to ARToolKit's video library. We have not tested with this camera before.

Is it a firewire or a USB camera, and which drivers is it using (i.e. did you install any drivers with the camera.)

One of the errors there -2098 indicates also that the camera driver may not be thread safe. Multiple threads are used in the video library and this may be a problem. We could try a workaround for this, but you will need the latest ARToolKit from CVS. There are instructions on how to get ARToolKit from CVS at http://sourceforge.net/docman/display_doc.php?docid=25731&group_id=116280. If this sounds daunting, you will have to wait for the next release. Once you have the latest source, find the file lib/SRC/VideoMacOSX/video.c and uncomment line 94:
//#define AR_VIDEO_SUPPORT_OLD_QUICKTIME // Uncomment to allow use of non-thread safe QuickTime (pre-6.4).

and recompile.

Yannouchka
April 13th, 2005, 02:53 PM
Thanks for the reply, and sorry not to have quickly answered, I was quite busy last days.

Ok, so I downloaded last CVS files, and uncommented the correct line, recompile and get the following errors :

I start optical bin, click ok on the windows poping and get....
"./optical
No.1: cube
No.2: cone
No.3: sphere
No.4: torus
2005-04-13 11:40:20.768 optical[1741] Camera central already inited - probably duplicate register. Skipping...
Opening sequence grabber 1 of 1.
vdgPreflightGrabbing(): VDCaptureStateChanging err=-2147450878 (Ignored.)
vdgPreflightGrabbing(): VDCaptureStateChanging err=-2147450878 (Ignored.)
vdgPreflightGrabbing(): VDCaptureStateChanging err=-2147450878 (Ignored.)
vid->milliSecPerFrame: 200 forcing timer period to 100ms
Video cType is raw , size is 320x240.
Image size (x,y) = (320,240)
*** Camera Parameter ***
--------------------------------------
SIZE = 320, 240
Distortion factor = 159.250000 131.750000 104.800000 1.012757
350.47574 0.00000 158.25000 0.00000
0.00000 363.04709 120.75000 0.00000
0.00000 0.00000 1.00000 0.00000
--------------------------------------
2005-04-13 11:40:26.706 optical[1741] GLUT Warning: glutInit being called a second time.
DecompressSequenceFrameWhen err=-8961
vdgDecompressionSequenceWhen err=-8961
DecompressSequenceFrameWhen err=-8961
vdgDecompressionSequenceWhen err=-8961
DecompressSequenceFrameWhen err=-8961
vdgDecompressionSequenceWhen err=-8961
"

I use a philips PCVC740K ToUCamPRO with driver "macam" found here http://webcam-osx.sourceforge.net/.

I tried PAL/NTSC/SECAM settings, same result. The fact is that I have no preview int the windows, event if I change the preview settings.

Any other idea?

Yannouchka

philip_lamb
April 14th, 2005, 03:59 AM
We haven't tested the toolkit with the macam drivers, but based on the errors I see here, it is a driver problem (an incompatibility between the drivers and ARToolKit somewhere perhaps.)

I will have to get back to you on this.