[argyllcms] Re: Spotread stalling sometimes under Windows

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Tue, 17 Nov 2015 18:04:37 +1100

François Simond wrote:

Sounds like a race condition - the thread doing the stdin read
probably got killed just as the character arrived. I don't have any
clever ideas for solving this at the moment, since stdin has
to be poll-able and also readable in other ways in other places in
the code.

Yes it appears to be that.
Do you think it would be possible to add in the stdout or stderr debug
output an equivalent of "take_emis_measurement called" that would be
the same for all sensor drivers ?

Maybe.

I've come up with another approach though, that may work better
for programmatic operation. Try this spotread binary:
<http://www.argyllcms.com/spotread_win32.zip>
and see if it's any better.

(It's more flakey when driven from the console with
ARGYLL_NOT_INTERACTIVE=1 though.)

Graeme Gill.


Other related posts: