MATLAB.jl icon indicating copy to clipboard operation
MATLAB.jl copied to clipboard

MATLAB.jl crashing when used with Julia 1.10

Open donkuettel opened this issue 2 years ago • 4 comments

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 avatar Jan 25 '24 01:01 donkuettel

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

donkuettel avatar Jan 25 '24 02:01 donkuettel

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?

rekabrnalla avatar May 08 '24 12:05 rekabrnalla

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.

mkitti avatar May 08 '24 19:05 mkitti