[cpia] Happy Report

Nick Holloway Nick.Holloway@alfie.demon.co.uk
18 Jan 2000 19:45:30 -0000


Chris@informinteractive.com (Chris Whiteford) writes:
> Well I have just finished running through my usually little hardness script
> and i am happy to report that this version is working wounderfully with a
> v1.02 camera.  I opened and closed the camera 1600 times and every picture
> was ok (execpt for the fact that my camera was out of focus) :-)

I've not had the same luck.  I've got a v1.20 camera, and with compression
enabled, I'm getting I/O errors about 1/4 of the time when first opening
the camera with gqcam. 

The errors are from parse_picture, and relate to problems decoding
the lines:

    line length was not 1 but -1 after 757/194241 bytes 
    line length was not 1 but 0 after 278/194449 bytes 
    line length was not 1 but 0 after 762/203617 bytes 
    EOL not found giving up after 751/201537 bytes 
    line length was not 1 but -1 after 761/202289 bytes 
    line length was not 1 but 0 after 70/2705 bytes 
    EOL not found giving up after 215/38049 bytes 
    line length was not 1 but 0 after 142/132065 bytes 
    EOL not found giving up after 211/77889 bytes 
    line length was not 1 but 0 after 70/74801 bytes 
    line length was not 1 but -1 after 233/174465 bytes 
    line length was not 1 but 0 after 162/51889 bytes 
    line length was not 1 but 0 after 70/2257 bytes 
    line length was not 1 but -1 after 145/88145 bytes 
    line length was not 1 but -2 after 292/12369 bytes 
    EOL not found giving up after 159/117057 bytes 
    line length was not 1 but -2 after 136/200161 bytes 
    EOL not found giving up after 159/173713 bytes 
    EOL not found giving up after 107/5057 bytes 
    EOL not found giving up after 111/194305 bytes 
    line length was not 1 but -1 after 141/198817 bytes 
    line length was not 1 but -2 after 104/162897 bytes 
    line length was not 1 but -2 after 108/141265 bytes 
    line length was not 1 but 0 after 102/58753 bytes 
    line length was not 1 but -1 after 121/58097 bytes 
    line length was not 1 but -2 after 664/20353 bytes 
    line length was not 1 but -2 after 768/203569 bytes 
    line length was not 1 but -1 after 765/164993 bytes 

I found that if I arranged for cpia_read to call fetch_frame again on
error (with a nasty goto), then everything continued.  I've added some
further debug, and it appears to happen on the first frame.  The camera
status has vpStatus==e0, and errorCode==97.

I'm at a bit of a loss as to what to look at next.  Any ideas?

-- 
 `O O'  | Nick.Holloway@alfie.demon.co.uk
// ^ \\ | http://www.alfie.demon.co.uk/