[Etherlab-users] Random Matlab crashes with Stateflow
Merkel, Amos
Amos.Merkel at ifas.rwth-aachen.de
Wed Aug 31 10:00:09 CEST 2022
Dear Andreas,
Thanks a lot for your input! You definitely put me on the right track – the crash did not occur with the grt Target, so I searched for differences and found we had the classic call interface activated by default in our templates. That is what caused the crashes – without both grt and etherlab work, with Classic Call Interface activated, grt fails with an error message and etherlab crashes all of Matlab.
When I was wrote about messages, I meant the Simulink messages (https://de.mathworks.com/help/simulink/ug/simulink-messages-overview.html). We use them to implement communication between state machines in our Controls.
Best regards and thanks again,
Amos
--
Amos Merkel, M.Sc.
Gruppenleiter
Digitalisierung
ifas – Institut für fluidtechnische Antriebe und Systeme
RWTH Aachen University
Campus-Boulevard 30
52074 Aachen
Tel: +49 241 80-47737
Fax: +49 241 80-647712
www.ifas.rwth-aachen.de<http://www.ifas.rwth-aachen.de/> | Twitter<https://twitter.com/IFAS_RWTH> | Facebook<https://www.facebook.com/IFAS-Institut-f%C3%BCr-fluidtechnische-Antriebe-und-Steuerungen-260714043957873/> | YouTube<https://www.youtube.com/channel/UC0vIq8jtra8E_--Sx8DALkQ> | LinkedIn<http://www.linkedin.com/company/ifas-rwth/>
Von: Etherlab-users <etherlab-users-bounces at etherlab.org> Im Auftrag von Andreas Stewering-Bone
Gesendet: Mittwoch, 31. August 2022 08:36
An: etherlab-users at etherlab.org
Betreff: Re: [Etherlab-users] Random Matlab crashes with Stateflow
Dear Amos,
The matlab library dependencies under linux are very specific and critical.
You talked about an system upgrade, this can cause the crash because of an library incompatibility.
Etherlab itself has nearly no influence on the code generation and compilation.
A failure in Etherlab can only cause a compilation failure or a runtime failure in the included S-Functions.
Try to generate the code for the grt-Target. I think you will get the same result.
You talk about messages in a stateflow chart, Etherlab messages??
Best regards
Andreas
Am Dienstag, dem 30.08.2022 um 15:35 +0000 schrieb Merkel, Amos:
Hi,
correction: While the problem described below exists, the current crashes are not random but related to the use of messages in “Chart” stateflow blocks in Simulink.
The whole thing seems like a bug, I just cannot say if it is Matlab or Etherlab. The problem didn’t exist a week or two ago, now a Chart containing a message crashes Matlab when compiling with the etherlab target. As I didn’t change my Matlab installation, but pulled an update for my system some time ago, I guess the problem is caused by some change in the etherlab toolchain.
If you are interested, you will find two minimum examples attached, one that crashes and one that doesn’t crash. Note that once Matlab crashed, it will crash every time until all compile files are deleted (folders slprj and <model>_etl_hrt). I am using openSUSE 15.2 with Linux 5.3.18-lp152.3.14-rt, the current etherlab environment from the openSUSE repository and Matlab R2020a.
All the best,
Amos
--
Amos Merkel, M.Sc.
Gruppenleiter
Digitalisierung
ifas – Institut für fluidtechnische Antriebe und Systeme
RWTH Aachen University
Campus-Boulevard 30
52074 Aachen
Tel: +49 241 80-47737
Fax: +49 241 80-647712
www.ifas.rwth-aachen.de<http://www.ifas.rwth-aachen.de/> |Twitter<https://twitter.com/IFAS_RWTH> |Facebook<https://www.facebook.com/IFAS-Institut-f%C3%BCr-fluidtechnische-Antriebe-und-Steuerungen-260714043957873/> | YouTube<https://www.youtube.com/channel/UC0vIq8jtra8E_--Sx8DALkQ> |LinkedIn<http://www.linkedin.com/company/ifas-rwth/>
Von: Etherlab-users <etherlab-users-bounces at etherlab.org<mailto:etherlab-users-bounces at etherlab.org>>Im Auftrag von Merkel, Amos
Gesendet: Dienstag, 30. August 2022 13:41
An: etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>
Betreff: [Etherlab-users] Random Matlab crashes with Stateflow
Hi everyone,
I am using the Etherlab environment together with the etherlab Simulink library. For the actual program procedure, I rely mostly on the Stateflow blocks in Simulink. Usually this works quite well, but I have encountered random crashes while compiling several times now. Typically it is an working Simulink file, you do a small change and encounter the crashes. Reverting the change does not solve the issue, however deleting the stateflow block does. Copy & pasting the stateflow block to another model crashes that one as well, reprogramming the stateflow block exactly the same, but from scratch without copy+pasting anything works without problem.
Does anybody now this effect, or a better solution than programming everything anew?
All the best,
Amos
--
Amos Merkel, M.Sc.
Group leader
Digitalization
ifas – Institute for Fluid Power Drives and Systems
RWTH Aachen University
Campus-Boulevard 30
52074 Aachen
Tel: +49 241 80-47737
Fax: +49 241 80-647712
www.ifas.rwth-aachen.de<http://www.ifas.rwth-aachen.de/> | Twitter<https://twitter.com/IFAS_RWTH> | Facebook<https://www.facebook.com/IFAS-Institut-f%C3%BCr-fluidtechnische-Antriebe-und-Steuerungen-260714043957873/> | YouTube<https://www.youtube.com/channel/UC0vIq8jtra8E_--Sx8DALkQ> | LinkedIn<https://www.linkedin.com/company/ifas-rwth/>
--
Amos Merkel, M.Sc.
Gruppenleiter
Digitalisierung
ifas – Institut für fluidtechnische Antriebe und Systeme
RWTH Aachen University
Campus-Boulevard 30
52074 Aachen
Tel: +49 241 80-47737
Fax: +49 241 80-647712
www.ifas.rwth-aachen.de<http://www.ifas.rwth-aachen.de/> |Twitter<https://twitter.com/IFAS_RWTH> |Facebook<https://www.facebook.com/IFAS-Institut-f%C3%BCr-fluidtechnische-Antriebe-und-Steuerungen-260714043957873/> | YouTube<https://www.youtube.com/channel/UC0vIq8jtra8E_--Sx8DALkQ> |LinkedIn<http://www.linkedin.com/company/ifas-rwth/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20220831/1f4dc026/attachment-0001.htm>
More information about the Etherlab-users
mailing list