Open ujhelyiz opened 5 years ago
Most likely this is also caused by the missing massif-functions.m issue first defined in #156 - but I have to check it again.
Makes sense that adding the massif_functions.m to the path does not help, as it is already added to the installation folder (https://github.com/viatra/massif/issues/156#issuecomment-505832285)...
I found this: https://diffplug.github.io/matconsolectl/javadoc/4.4.2/matlabcontrol/MatlabProxy.html
Function Handles and Non-Built-In Classes MATLAB function_handles and all non-built-in classes (such as the Map class or user defined classes) are converted to an instance of com.mathworks.jmi.types.MLArrayRef that is not Serializable which prevents it from being transferred to a Java application running outside MATLAB (more information on this can be found in the exception section below).
This could be better handled in https://github.com/viatra/massif/blob/master/plugins/br.com.embraer.massif.commandevaluation.server/src/br/com/embraer/massif/commandevaluation/server/MatlabRemoteImpl.java by checking for Serializable
and even special cases.
When trying to import simulink models using Matlab2019a with the latest Massif 0.8.0 CI build, it failed with the following exception:
When looking at the partial model created, the issue comes at the very start. I am also attaching the debug log and the created file for future reference.
massif_080_matlab_2019a.zip