Server crash on quit

Hi Chris,

I mentioned that if we quit MWServer, it sometimes crashes.
Specifics:
I start MWServer w/ the MWORKS_WRITE_MESSAGES_TO_STDERR. Start Client. Load an expt (It’s RetinotopyMap2Stim in our ExperimentXML repo). Hitting Cmd-Q in MWServer generates these messages nonstop and the server never quits.

best!
Mark

ERROR: Cannot receive event on IPC socket
ERROR: Cannot receive on ZeroMQ socket: Context was terminated
ERROR: Cannot receive event on IPC socket
ERROR: Cannot receive on ZeroMQ socket: Context was terminated
ERROR: Cannot receive event on IPC socket
ERROR: Cannot receive on ZeroMQ socket: Context was terminated
ERROR: Cannot receive event on IPC socket
ERROR: Cannot receive on ZeroMQ socket: Context was terminated
ERROR: Cannot receive event on IPC socket
ERROR: Cannot receive on ZeroMQ socket: Context was terminated
ERROR: Cannot receive event on IPC socket
ERROR: Cannot receive on ZeroMQ socket: Context was terminated
ERROR: Cannot receive event on IPC socket
ERROR: Cannot receive on ZeroMQ socket: Context was terminated
ERROR: Cannot receive event on IPC socket

Hi Mark,

Those messages are coming from the Server-side Event Conduit. I can reproduce the problem by loading an experiment with a server-side conduit and then trying to quit MWServer without closing the experiment first. Is that what you’re doing, too?

Some things just don’t shut down correctly if you don’t close the experiment before quitting the server. Probably we should handle that automatically (not sure why we don’t already, but maybe there are complications). Until then, try not to do it :wink:

Cheers,
Chris