On 08/29/2014 04:18 PM, Richard Kirk wrote:
Hi.I was not expecting anythig, but having got everything working on a Mac, I thought I would try the same on my Centos 6.4 machine. It almost works. I have tried the binaries, and I have built from source, and I get the same thing...- it finds the probe - it connects and sets it up ok - but I can't take a reading.
More results... It works when I 'su root'. It does not work when I run it with 'sudo' Here's the errors with 'sudo'... richard@gallardo$ sudo ./Argyll_V1.6.3/bin/spotread -D9I won't attach all of the dump as it is enormous and I don't want to plague everyone with it. But here is the bit starting just before my attempt at a measurement...
avg_multi: overall avg = 1857.421875, minavg = 1857.421875, maxavg = 1857.421875, variance 0.000000, THR 0.050000 (darkth 5000.000000)
Saving adaptive black calib to similar modes Done adaptive interpolated black calibration urb_reaper: poll returned -1 and events 0 0 urb_reaper: shutdown or too many failure urb_reaper: cleared requests urb_reaper: thread done coms_usb_transaction: reap - 0 left coms_usb_transaction: returning err 0x20000 and 0 bytes icoms_usb_rw: returning 0 bytes, ICOM err 0x20000 munki_waitfor_switch_th: read failed with ICOM err 0x20000 Switch thread failed with 0x72 munki_waitfor_switch_th: Read 8 bytes from switch hit port icoms_usb_transaction: req type 0x1 ep 0x83 size 8 icoms_usb_rw: returning 0 bytes, ICOM err 0x20000 munki_waitfor_switch_th: read failed with ICOM err 0x20000 Switch thread failed with 0x72 munki_waitfor_switch_th: Read 8 bytes from switch hit port icoms_usb_transaction: req type 0x1 ep 0x83 size 8 icoms_usb_rw: returning 0 bytes, ICOM err 0x20000 munki_waitfor_switch_th: read failed with ICOM err 0x20000 munki_save_calibration saving to file '/root/.cache/ArgyllCMS' Switch thread failed with 0x72 munki_waitfor_switch_th: Read 8 bytes from switch hit port icoms_usb_transaction: req type 0x1 ep 0x83 size 8 icoms_usb_rw: returning 0 bytes, ICOM err 0x20000 munki_waitfor_switch_th: read failed with ICOM err 0x20000 Switch thread failed with 0x72 munki_waitfor_switch_th: Read 8 bytes from switch hit port icoms_usb_transaction: req type 0x1 ep 0x83 size 8 icoms_usb_rw: returning 0 bytes, ICOM err 0x20000 munki_waitfor_switch_th: read failed with ICOM err 0x20000 Switch thread failed with 0x72 Switch thread returning munki_save_calibration failed to open file for writing Finished cal with dark_valid = 1, cal_valid = 1 Calibrate returned calt 0x0, calc 0x60, ev 0x0 Calibration complete inst_handle_calibrate done 0x0 Place instrument on spot to be measured, and hit [A-Z] to read white and setup FWA compensation (keyed to letter) [a-z] to read and make FWA compensated reading from keyed reference 'r' to set reference, 's' to save spectrum, 'f' to report cal. refresh rate, 'F' to measure refresh rate 'h' to toggle high res., 'k' to do a calibrationHit ESC or Q to exit, instrument switch or any other key to take a reading: munki_imp_measure called
Taking 1 measurments in Emission Adaptive mode called ############# triggered ############## munki_getstatus: called icoms_usb_control: message c0, 87 0000 0000 0002 icoms_usb_control_msg: type 0xc0 req 0x87 size 2 icoms_usb_transaction: req type 0x0 ep 0x0 size 10 icoms_usb_control_msg: returning err 0x20000 and -8 bytes icoms_usb_control: returning ICOM err 0x20000 read data 00 00 munki_getstatus: failed with ICOM err 0x20000 munki_imp_measure getstatus failed Spot read failed due to communication problem. Hit Esc or Q to give up, any other key to retry:There was trouble saving to '/root/.cache/ArgyllCMS' and there is no sign of the file.
We copied all the Argyll files onto the local disc, as it was running off a local disc, but that didn't help.
We then changed to root using 'su root' rather than using 'sudo' and it ran...
> root@gallardo$ ./bin/spotread -e -v Connecting to the instrument .. Instrument Type: ColorMunki Serial Number: 2066000 Firmware version: 288 Chip ID: 01-9059EF15000046 Version string: 'colormunki FW V1.32 Build Nr. 1303' Calibration Ver.: 6 Production No.: 101549 Init instrument success ! Spot read needs a calibration before continuing Set instrument sensor to calibration position, and then hit any key to continue, or hit Esc or Q to abort: Calibration complete Place instrument on spot to be measured, and hit [A-Z] to read white and setup FWA compensation (keyed to letter) [a-z] to read and make FWA compensated reading from keyed reference 'r' to set reference, 's' to save spectrum, 'f' to report cal. refresh rate, 'F' to measure refresh rate 'h' to toggle high res., 'k' to do a calibration Hit ESC or Q to exit, instrument switch or any other key to take a reading:Result is XYZ: 69.232993 73.390863 57.265370, D50 Lab: 88.633797 -3.275202 3.313283
I have just repeated this using 'spotread' with a full path in both cases. It works when I 'su root'. It does not work when I run it with 'sudo' Dang. 5:30 on Friday. I will have to leave it there. Weekend cliff-hanger! Cheers. Richard Kirk -- FilmLight Ltd. Tel: +44 (0)20 7292 0400 or 0409 224 (direct) Artists House, Fax: +44 (0)20 7292 0401 14-15 Manette Street London W1D 4AP