setup-matlab icon indicating copy to clipboard operation
setup-matlab copied to clipboard

Workflows crash with a segmentation violation after `matlab-actions/[email protected]` finishes and before `matlab-actions/[email protected]` starts

Open zaikunzhang opened this issue 2 years ago • 8 comments

Recently, it has been happening from time to time (but not always) that my workflows crash with a segmentation violation right after matlab-actions/[email protected] finishes and before matlab-actions/[email protected] starts.

Here are two examples:

crash1.log workflow1

crash2.log workflow2

Since the crash happens randomly, I do not expect it will be trivial to debug. But it will still be great if you could have a look.

Thanks.

zaikunzhang avatar Mar 12 '23 01:03 zaikunzhang

Can you give matlab-actions/setup-matlab@v2-beta a try? It may increase the time required to set up MATLAB (particularly with older releases) but it may also help address this crash.

Note: with setup-matlab v2, you need to explicitly specify the products required for your build with the products input like so:

- name: Install MATLAB
  uses: matlab-actions/setup-matlab@v2-beta
  with:
    release: latest
    products: |
      Simulink
      Deep_Learning_Toolbox

See the v2 README for more details.

mcafaro avatar Mar 13 '23 13:03 mcafaro

Thank you @mcafaro . I will try it.

zaikunzhang avatar Mar 13 '23 13:03 zaikunzhang

Hi @mcafaro ,

Recently, it has been happening from time to time (but not always) that my workflows crash with a segmentation violation right after matlab-actions/[email protected] finishes and before matlab-actions/[email protected] starts.

Here are two examples:

crash1.log workflow1

crash2.log workflow2

The problem comes back. It has been happening randomly that workflows crash with a segmentation violation right after matlab-actions/setup-matlab@v2-beta finishes and before matlab-actions/run-command starts. The syndrom is identical to what I reported before.

It would be nice if you could take a look. Thanks!

Best regards, Zaikun

zaikunzhang avatar Sep 11 '23 00:09 zaikunzhang

Hi Zaikun,

Is this happening on all workflows where you use setup-matlab or just particular workflows? How frequently is the crash occurring?

Thanks, Mark

mcafaro avatar Sep 11 '23 14:09 mcafaro

Hi Mark,

It seems to be happening randomly on all my MATLAB workflows. I have not identified a pattern yet. It happens about every 1 out of 10~20 times.

Thank you very much!

Best regards, Zaikun

zaikunzhang avatar Sep 11 '23 15:09 zaikunzhang

This seems to be happening more and more frequently now. Am I the only one who observes this?

I run ver at the very beginning of my run-command. This crash happens before the version information is printed.

Thanks.

zaikunzhang avatar Sep 16 '23 07:09 zaikunzhang

Hi @zaikunzhang,

We have changed the way we start MATLAB in the new v2 releases of our actions (is it different from how MATLAB started using setup-matlab@v2-beta as well). I haven't seen this yet on v2 so I am curious if you will still experience it after upgrading to v2 for all matlab-actions. If we leave this issue open for a little while, can you update us here if you continue to see it?

Thanks, David

davidbuzinski avatar Feb 06 '24 20:02 davidbuzinski

Hi @davidbuzinski , sure, I will keep this in mind. If you don't receive my report in a month, then it will mean that the problem has been resolved by the new release.

zaikunzhang avatar Feb 06 '24 23:02 zaikunzhang

Hi @zaikunzhang , have you still been seeing these errors sporadically? Is it okay if we close this issue?

Thanks, David

davidbuzinski avatar Apr 11 '24 13:04 davidbuzinski

Hi @davidbuzinski David,

Many thanks for keeping this in mind.

I haven't observed this recently. It should be fine now.

Zaikun

zaikunzhang avatar Apr 11 '24 14:04 zaikunzhang