Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Parallel Toolbox, Matlab Exit Status: 0x00000001 #212

Open
blubbsy opened this issue Jan 26, 2022 · 3 comments
Open

Using Parallel Toolbox, Matlab Exit Status: 0x00000001 #212

blubbsy opened this issue Jan 26, 2022 · 3 comments
Labels
not bug This is not a bug

Comments

@blubbsy
Copy link

blubbsy commented Jan 26, 2022

Hello,

i have several Unittests and at least one of them checks if everything works properly using the parallel toolbox. The test is not failing after all, but Jenkins returns "ERROR: MATLAB error Exit Status: 0x00000001". The reports itself tell me that the test went sucessfull, so it must happen somehow after the test. I could also narrow down the problem to this one test, because i started to deactivate all other tests until only the ones with the parallel toolbox were left.

I assume that Jenkins just kills the process, because the window of the simulation manager closes on it's own, maybe this has to do with the problem. Do you have an idea how to solve this problem? I'm shutting down the pool within the script, so i'm not sure what exactly the problem is.

Thanks!
Adrian

Starting parallel pool (parpool) using the 'local' profile ...
Preserving jobs with IDs: 1 2 3 4 5 6 7 because they contain crash dump files.
You can use 'delete(myCluster.Jobs)' to remove all jobs created with profile local. To create 'myCluster' use 'myCluster = parcluster('local')'.
Connected to the parallel pool (number of workers: 6).
[26-Jan-2022 16:31:32] Checking for availability of parallel pool...
[26-Jan-2022 16:31:33] Starting Simulink on parallel workers...
[26-Jan-2022 16:31:40] Configuring simulation cache folder on parallel workers...
[26-Jan-2022 16:31:41] Loading model on parallel workers...
[26-Jan-2022 16:31:45] Running simulations...
[26-Jan-2022 16:31:47] Completed 1 of 1 simulation runs
[26-Jan-2022 16:31:47] Cleaning up parallel workers...
Unsupported file format for export.
Cleared PLECS module
Parallel pool using the 'local' profile is shutting down.
   Done UnitTest_Debugging/RunModel_MultiCore in 55.8235 seconds
  Tearing down UnitTest_Debugging
  Done tearing down UnitTest_Debugging in 0 seconds
 Done UnitTest_Debugging in 89.689 seconds
__________

ERROR: MATLAB error Exit Status: 0x00000001
Build step 'Run MATLAB Tests' changed build result to FAILURE
Finished: FAILURE
@blubbsy
Copy link
Author

blubbsy commented Jan 27, 2022

Okay, the error happens when the Simulation Manager window opens during the unit test, passing to the parsim "'ShowSimulationManager', 'off'" solves the problem.

Is this a problem that is known when doing unit tests that include GUI elements or is it a problem exclusively with the Simulation Manager?

@nbhoski
Copy link
Member

nbhoski commented Mar 10, 2022

Thanks for reporting this. This seems to be an -batch mode issue. I shall look into it and forward it to appropriate MATLAB component if required.

@nbhoski nbhoski added the not bug This is not a bug label Mar 31, 2023
@nbhoski
Copy link
Member

nbhoski commented Nov 11, 2024

Hi @blubbsy could you please confirm if this is still persistent to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not bug This is not a bug
Projects
None yet
Development

No branches or pull requests

2 participants