transplant icon indicating copy to clipboard operation
transplant copied to clipboard

Transplant hangs

Open bareil76-code opened this issue 3 years ago • 3 comments

I have a long running loop in python calling a Matlab codes that takes 2-3 minutes to execute. After about 20 of those loops, the whole thing just hangs. Matlab is not runing as CPU is 0%. It seems like zmq is waiting for a message that is never received.. any idea?

bareil76-code avatar Apr 15 '21 17:04 bareil76-code

If Matlab is idling, it probably crashed out of the Transplant loop. Regrettably, some Matlab errors can't be caught in a try-catch, and don't trigger onCleanup. It's a crying shame. If that happens, there's nothing you can do about it.

You can try instrumenting your 2-3 minute function and see if it crashes before reaching the end.

bastibe avatar Apr 16 '21 06:04 bastibe

It seems that it locks when getting out of the function msg = decode_values(msg); in the transplant_remote.m.

I have place a disp(msg) outside this function and when Matlab locks, the display does not show anything.

How can I debug the Matlab file using transplant? I would like to pause matlab to check the problem.

bareil76-code avatar Apr 19 '21 14:04 bareil76-code

How can I debug the Matlab file using transplant? I would like to pause matlab to check the problem.

Interactive debugging is not possible. But you can just print intermediary values, or debug from a live Matlab session.

bastibe avatar Apr 20 '21 15:04 bastibe