-
Notifications
You must be signed in to change notification settings - Fork 96
clear potential hang conditions #13
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
Comments
I think that both of these issues can be solved by adding stuff here, https://github.com/arokem/python-matlab-bridge/blob/master/pymatbridge/pymatbridge.py#L84 both a call to On Tue, Jan 15, 2013 at 8:25 PM, Steven Pav [email protected]:
|
oh, I see, put it in the python call. that might work. I'm not sure what the overloaded |
An alternative is to use that empty That would still allow debugging things from the Matlab command line, and On Wed, Jan 16, 2013 at 10:18 AM, Steven Pav [email protected]:
|
in a large matlab install (uh, like the one I am taming), it is likely that the |
I agree that we don't necessarily want to assume that this would run as a Thinking about this a bit more maybe we should name this file something I am just thinking that we might want to avoid additional complication to On Wed, Jan 16, 2013 at 2:55 PM, Steven Pav [email protected]:
|
one 'solution' we had to running Matlab in headless mode was to create a directory of all the functions which had to be overridden (overrode?). I don't remember what was in it besides If there was such a directory below the one containing |
That seems like a good solution. For example, adding a directory called On Thu, Jan 17, 2013 at 8:24 PM, Steven Pav [email protected]:
|
Some Matlab code passed to the server could cause it to hang indefinitely. For example, calling a
keyboard
statement. Also, it is common practice to have adbstop if error
in one's
startup.m
file. This has the same effect as%pdb
in iPython: when an error is encountered, the Matlab interpreter waits for user input. This would be bad in the 'headless' environment of the web server.At the very least we should have a
dbclear all
inwebserver.m
We should also try to overload
keyboard.m
I have done this before, and it works, but it may depend on the order in which paths are added.
There may be other lurking such gotchas, but these are the principal ones, I think.
The text was updated successfully, but these errors were encountered: