matlab-actions / setup-matlab

Set up your GitHub Actions workflow with a specific version of MATLAB.
BSD 3-Clause "New" or "Revised" License
76 stars 10 forks source link

Workflows crash with a segmentation violation after `matlab-actions/setup-matlab@v1.2.4` finishes and before `matlab-actions/run-command@v1.1.3` starts #59

Closed zaikunzhang closed 6 months ago

zaikunzhang commented 1 year ago

Recently, it has been happening from time to time (but not always) that my workflows crash with a segmentation violation right after matlab-actions/setup-matlab@v1.2.4 finishes and before matlab-actions/run-command@v1.1.3 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.

mcafaro commented 1 year ago

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.

zaikunzhang commented 1 year ago

Thank you @mcafaro . I will try it.

zaikunzhang commented 1 year ago

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/setup-matlab@v1.2.4 finishes and before matlab-actions/run-command@v1.1.3 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

mcafaro commented 1 year ago

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

zaikunzhang commented 1 year ago

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 commented 1 year ago

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.

davidbuzinski commented 8 months ago

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

zaikunzhang commented 8 months ago

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.

davidbuzinski commented 6 months ago

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

Thanks, David

zaikunzhang commented 6 months ago

Hi @davidbuzinski David,

Many thanks for keeping this in mind.

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

Zaikun