Re: [ecasound] major race condition in ECI

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] major race condition in ECI
From: Eric Dantan Rzewnicki (eric_AT_zhevny.com)
Date: Tue Sep 28 2004 - 04:16:37 EEST


Eric Dantan Rzewnicki wrote:
> Jesse Chappell wrote:
>> Hey Kai, it's been a while..... I'm sending this to the list,
>> but I don't think I'm added to it yet, hence the CCs.
>> There was a problem that plagued me years ago, and still does today, so
>> I dove in to debug it. Basically, using the ECI interface through
>> python was often causing read/sync errors in the ecasoundc_sa
>> subsystem when issuing the 'start' command. I turned on debugging
>> in ecasound_sa.c and lo and behold, found the problematic behavior:
>> --- cut --------
>> (ecasoundc_sa) writing command 'start' (cmd-counter=13).
>> (ecasoundc_sa) clearing list, i=(nil)
>> (ecasoundc_sa) found content, loglevel=2, msgsize=36.
>> (ecasoundc_sa) found content, loglevel=2, msgsize=36.
>> (ecasoundc_sa) found content, loglevel=2, msgsize=36.
>> (ecasoundc_sa) found content, loglevel=2, msgsize=36.
>> (ecasoundc_sa) gen-content validated: <<< (eca-engine) Prefi2ll5i6n
>> g0 i-/ >>>
>> (ecasoundc_sa) timeout when reading return values (attempts=1)!
> I've had a problem with my python eci scripts, too. But, I thought I was
> just doing something dumb since I'm pretty new to programming. I have a
> lot of print statements in my python scripts to get last strings and
> last floats and such. When I run a script from the commandline I only
> see each line of output once. But, when I started running them from cron
> with standard out redirected to a file for logging purposes I got many
> instances of each line written to the file and many of them out of
> order. Later I realized this before was only related to the redirection
> and had nothing to do with cron.

ugh ... well I just recompiled ecasound with jesse's suggested fix and
it didn't help my problem. So, I guess it's probably unrelated.

-Eric Rz.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Sep 28 2004 - 04:16:56 EEST