Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xclust3 analysis buttons (acorr, behav, avg, etc) don't work #2

Closed
imalsogreg opened this issue Feb 28, 2013 · 3 comments
Closed

xclust3 analysis buttons (acorr, behav, avg, etc) don't work #2

imalsogreg opened this issue Feb 28, 2013 · 3 comments
Assignees

Comments

@imalsogreg
Copy link
Contributor

Solution is to

sudo apt-get install csh

But a better fix would be to rely on bash instead of csh for running those external analysis programs. I'll try to figure out how the shell calling is done, and how to change it to bash.

@ghost ghost assigned imalsogreg Feb 28, 2013
@slayton
Copy link
Contributor

slayton commented Feb 28, 2013

For xclust3 the commands are executed using a macro SYSTEM (see clust_menu.c lines 2193 - 2197). Which is defined at the top of clust_menu.c as:

  #define SYSTEM(S) System(S)

Replacing this macro should be all you need to do

@imalsogreg
Copy link
Contributor Author

Thanks for the tip! I am monkeying with this and having some trouble. System() command uses csh by default. As far as I can tell, System() first forks and then executes its argument is sh using the execl() command (execl doesn't assume csh).

But when I try to fork() I'm getting xlib errors:

Executing command: spikeavg *.tt -tstart 0:0 -tend 0:0 -if @tmpclust@ | xplot -title "0227.pxyabw cluster 1" ->command "/global ; /color 0 ; /stepthrough 1"&
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
xclust3: ../../src/xcb_io.c:273: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)

Of course I tried adding XInitThreads() as the first call in main(). But it returns me an error code and I haven't found out the meaning yet. Anyway, still trying things.

@slayton
Copy link
Contributor

slayton commented Mar 4, 2013

This problem can also be solved by issue: #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants