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

Can only be run once before crashing matlab #57

Open
rayset opened this issue Jan 29, 2018 · 0 comments
Open

Can only be run once before crashing matlab #57

rayset opened this issue Jan 29, 2018 · 0 comments

Comments

@rayset
Copy link

rayset commented Jan 29, 2018

I get this quite particular bug.

Basically, I can only run one script containing any call to julia, as the second I call crashes matlab itself.

the strange thing is that if in my script I call 1000+ times julia everything is fine, the problem comes when I launch it again.

this makes me think that when I "clear all" at the beginning and then call "jl.include" somehow it initializes a new instance of julia without closing the previous one.

example:

clear all
jl.include("initialize.jl") %a random julia file

calling this script 2 time crashes matlab (both matlab and julia updated to their latest release)

but doing

clear all
for i=1:100000
jl.include("initialize.jl") %a random julia file
end

works perfectly fine. Any idea on what could be the cause? I'll try to provide any relevant log.

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

1 participant