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

MATLAB code does not run / fails silently #201

Open
CharFox1 opened this issue Apr 8, 2022 · 5 comments
Open

MATLAB code does not run / fails silently #201

CharFox1 opened this issue Apr 8, 2022 · 5 comments

Comments

@CharFox1
Copy link

CharFox1 commented Apr 8, 2022

Environment:
Windows 10
Julia 1.6.2
MATLAB 2022a academic

I have been unable to run any code in julia that uses matlab successfully. Running the following code will open the matlab command window if it is not already but does nothing else. Furthermore, the print at the end does not show in the terminal or in matlab.

using MATLAB

mat"1+1"

println("done")

I tried running matlab -batch "comserver('register')" since I am on Windows but this results in a long error (I can include if needed) that always starts with com.mathworks.util.ShutdownRuntimeException: Java is shutting down. Really not sure what is going wrong or what I can do to fix it. Any help would be appreciated.

@musm
Copy link
Collaborator

musm commented Apr 8, 2022

Same issue as #200
Not sure how to debug this. It looks like Matlab 2022a changed the engine internally and somehow that doesn't cooperate well with the package..

@CharFox1
Copy link
Author

CharFox1 commented Apr 8, 2022

Strange. Have you tried an older version already? I think I'll try that next

@musm
Copy link
Collaborator

musm commented Apr 8, 2022

Older versions should work, I'm not sure which is the latest version that works, but this library used to work with older version of MATLAB just fine.

@CharFox1
Copy link
Author

Previous version (2021b) works as expected so far. I guess this should remain open since things aren't working with current version of MATLAB though.

@musm
Copy link
Collaborator

musm commented Apr 11, 2022

Interesting, we should find a channel were to report the bug with MATLAB. It looks like they might have changed some internals that lead to the library failures on 2022b.

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