-
Notifications
You must be signed in to change notification settings - Fork 54
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
runMATLABCommand sometimes stuck. #322
Comments
Hi @Rvh91 can you please check if the same issue is reproducible outside of the Jenkins ? meaning you could just run the same build tool on your batch CLI using matlab -batch command matlab -batch "buildtool testReport" you could run above command on the same host where you see the job is getting stuck and see if its reproducible. |
Hi @nbhoski, This is a bit difficult to troubleshoot, as it does not happen every time. I have tried the command a couple of times from the command line now, but it doesn't happen now. That being said, it could also be related to only having one 'instance' running now? While when Jenkins is active, it frequently happens that we have multiple builds running simultaneously on the same machine. I'm not entirely sure how the Parallel pool works? is that shared between instances? |
One thing I could suggest you is check if your resources are not exosted. try increasing the worker threads on Jenkins and see if this persists. |
@nbhoski, do you mean the number of executors on our agent? |
Yes |
I have currently 4 executors enabled on this agent, so I'm able to run 4 build simultaneously, which hardly ever happens. But I suspect that the parallel pool that is created when using a 'parfor' loop, might somehow be shared between builds? So it wont be able to shut down, as another instance is still using it? Is that possible? |
could you share a similar example which uses PCT keywords like |
Hello, I'm facing a similar issue where our Jenkins As suggested above, I tried to reproduce the issue outside of Jenkins using Here is the prompt that is opened: Further, I tried running the same command with the Here are said warnings:
And here's the tail of the logs of the
I hope these findings are useful in debugging this issue. Happy to help if possible. |
@TylerWeir I too think the prompt window is the cause of hang. are you making any changes to the suggested file in the pop up window ? could you handle it ? |
@TylerWeir could you confirm if the the issue was with pop up window and if you could resolve it? |
Yes, fixing the Simulink Model to avoid the pop up window allowed our build to complete successfully and thus run through CI. |
Hi @Rvh91, I was trying to reproduce the issue in local. to support you better could you please provide with following
This would help me reproduce the issue close to your environment. Regards |
@Rvh91 could you please confirm if this issue is still relevent ? Please let me know if this is still reproducible. |
It is still an issue. We have moved to calling matlab from the commandline via: so without the plugin, however the problem persists. So it might not be directly due to the plugin itself. Also I cant reproduce it consistently, it appears on some builds, but not on others. I have yet to figure out what the root cause is here. |
I've noticed that sometimes a stage is 'stuck'. where I have executed a certain task in the buildtool, it completes but somehow jenkins does not continue, so probably Matlab isn't providing an exit code? I don't really know how to debug this. Not sure if it is relevant, but multiple builds can be running simultaneous on the same windows agent.
I've noticed that on the builds where it does continue I can see the following:
while on those where it seems stuck it only shows the
The text was updated successfully, but these errors were encountered: