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

Transplant hangs #94

Open
bareil76-code opened this issue Apr 15, 2021 · 3 comments
Open

Transplant hangs #94

bareil76-code opened this issue Apr 15, 2021 · 3 comments

Comments

@bareil76-code
Copy link

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?

@bastibe
Copy link
Owner

bastibe commented Apr 16, 2021

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.

@bareil76-code
Copy link
Author

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.

@bastibe
Copy link
Owner

bastibe commented Apr 20, 2021

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.

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