The error messages you're encountering, such as "corrupted double-linked list" and "corrupted unsorted chunks," suggest memory-related issues. Running MATLAB in the background with nohup on a remote machine might lead to problems with the X11 display.
To run MATLAB in the background and prevent issues with the X11 display, you can use the matlab -batch option instead. Also, it's a good practice to use the -singleCompThread option when running MATLAB remotely to avoid potential parallel computing issues.
nohup matlab -nodisplay -nosplash -singleCompThread -batch "run('opt_main.m'); exit" > output.log 2>&1 &
Explanation of changes:
- -batch is used instead of invoking the MATLAB command prompt directly.
- -singleCompThread is added to disable multithreading, which can sometimes cause issues when MATLAB is run in the background.
This command should help in running MATLAB in the background on your Linux machine without encountering the X11 display-related issues. Additionally, make sure that your MATLAB script (opt_main.m) is set up to handle any necessary dependencies and paths correctly when running in batch mode.
------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Feel free to contact me.