JuliaInterop / MATLAB.jl

Calling MATLAB in Julia through MATLAB Engine
MIT License
270 stars 63 forks source link

MATLAB.jl crashing when used with Julia 1.10 #220

Open donkuettel opened 5 months ago

donkuettel commented 5 months ago

I receive the following error when trying to lot using the MATLAB engine and Julia 1.10:

[31763] signal (11.1): Segmentation fault in expression starting at /home/dkuettel/Documents/cr3bp/LowThrustOpt/testing/CRTBP_Multishoot_indirect_demo.jl:138 Allocations: 18782664 (Pool: 18765867; Big: 16797); GC: 27 Segmentation fault (core dumped)

My matlab code essentially looks like

mat""" plot($x, $y) """

I am using : -Linux Ubuntu 18.04.2 LTS (Bionic Beaver) -Julia Version 1.9.0 (Julia version managed with Jill) -MATLAB.jl v0.8.4 (https://github.com/JuliaInterop/MATLAB.jl/blob/master/README.md) -MATLAB version R2023b

Everything works fine with Julia version 1.9

donkuettel commented 5 months ago

This error does not persist when using MATLAB version R2021a and Julia 1.10.

rekabrnalla commented 2 months ago

Any thoughts on why this is happening or what it takes to fix it? I don't have enough disk space for multiple versions of MATLAB and I think I need the latest versions. What can I do to help?

mkitti commented 2 months ago

We need way more debugging information in order to make progress here. Starting with an empty environment, what are the minimal steps to reproduce?

If MATLAB.jl alone is in the environment, do you still have the problem? If other packages have to be loaded to have the problem, what are they?

If you can run a debugger, please do.

If you have a longer stack trace, please provide the entire thing.