How to fix MATLABWindow application failed to launch
I have just finished doing a fresh install of MATLAB R2024a on a Ubuntu 22.04 based operating system, and have replicated the problem with R2023b. To begin, the install script would fail with the following error:
terminate called after throwing an instance of ‘std::runtime_error’
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was:
1
Aborted
I was able to rectify this issue by appending the following line to the install script before the final line:
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30"
Now that I have installed MATLAB, the issue nonetheless persists. When I try to open the add on window, I get the error:
Error using matlab.internal.cef.webwindow (line 403)
MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 1
I have tried the instructions listed here
https://au.mathworks.com/matlabcentral/answers/1978579-why-do-some-matlab-features-fail-on-ubuntu-23-04-and-debian-12-with-exit-code-127-in-matlab-r2022b-a
and here
https://au.mathworks.com/matlabcentral/answers/364551-why-is-matlab-unable-to-run-the-matlabwindow-application-on-linux?s_tid=ta_ans_results
but I have had no luck.
Update: MATLAB is completely broken, and I cannot open any files. I am met with the following error:
Unable to open this file in the current system configuration. For more information, see Requirements.
For now, I will be reverting back to a previous system snapshot, as I have wasted enough time trying to fix this issue.I have just finished doing a fresh install of MATLAB R2024a on a Ubuntu 22.04 based operating system, and have replicated the problem with R2023b. To begin, the install script would fail with the following error:
terminate called after throwing an instance of ‘std::runtime_error’
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was:
1
Aborted
I was able to rectify this issue by appending the following line to the install script before the final line:
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30"
Now that I have installed MATLAB, the issue nonetheless persists. When I try to open the add on window, I get the error:
Error using matlab.internal.cef.webwindow (line 403)
MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 1
I have tried the instructions listed here
https://au.mathworks.com/matlabcentral/answers/1978579-why-do-some-matlab-features-fail-on-ubuntu-23-04-and-debian-12-with-exit-code-127-in-matlab-r2022b-a
and here
https://au.mathworks.com/matlabcentral/answers/364551-why-is-matlab-unable-to-run-the-matlabwindow-application-on-linux?s_tid=ta_ans_results
but I have had no luck.
Update: MATLAB is completely broken, and I cannot open any files. I am met with the following error:
Unable to open this file in the current system configuration. For more information, see Requirements.
For now, I will be reverting back to a previous system snapshot, as I have wasted enough time trying to fix this issue. I have just finished doing a fresh install of MATLAB R2024a on a Ubuntu 22.04 based operating system, and have replicated the problem with R2023b. To begin, the install script would fail with the following error:
terminate called after throwing an instance of ‘std::runtime_error’
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was:
1
Aborted
I was able to rectify this issue by appending the following line to the install script before the final line:
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30"
Now that I have installed MATLAB, the issue nonetheless persists. When I try to open the add on window, I get the error:
Error using matlab.internal.cef.webwindow (line 403)
MATLABWindow application failed to launch. Unable to launch the MATLABWindow application. The exit code was: 1
I have tried the instructions listed here
https://au.mathworks.com/matlabcentral/answers/1978579-why-do-some-matlab-features-fail-on-ubuntu-23-04-and-debian-12-with-exit-code-127-in-matlab-r2022b-a
and here
https://au.mathworks.com/matlabcentral/answers/364551-why-is-matlab-unable-to-run-the-matlabwindow-application-on-linux?s_tid=ta_ans_results
but I have had no luck.
Update: MATLAB is completely broken, and I cannot open any files. I am met with the following error:
Unable to open this file in the current system configuration. For more information, see Requirements.
For now, I will be reverting back to a previous system snapshot, as I have wasted enough time trying to fix this issue. installation, matlab, matlab gui, error MATLAB Answers — New Questions