How to fix MATLABWindow application failed to launch

773 ビュー (過去 30 日間)
Soren Smith
Soren Smith 2024 年 8 月 20 日
回答済み: mohammad dehnavi 2024 年 11 月 17 日 9:04
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
and here
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.

回答 (2 件)

Saurabh
Saurabh 2024 年 8 月 26 日
編集済み: Saurabh 2024 年 8 月 27 日
Hi Soren,
Following the latest Update on the question, it seems you are not able to open any files and encountering the error that says:
Unable to open this file in the current system configuration. For more information, see Requirements.”
I guess 'libXss1' or 'libgconf-2-4' library is missing. In Ubuntu, make sure these are existing in your machine,
Run the following command to check if they exist:
sudo apt search libXss1
sudo apt search libgconf-2-4
If these are missing, install them by the following.
sudo apt-get libXss1
sudo apt-get libgconf-2-4
And relaunch MATLAB to confirm Live Editor is available.
You can refer to this MATLAB Answer that address this issue:
And regarding the issue that was encountered earlier you can refer to this MATLAB Answer:
  1 件のコメント
Jerome MOUNIER-POULAT
Jerome MOUNIER-POULAT 2024 年 10 月 23 日
sudo apt-get libXss1 and libconf-2-4 not valid

サインインしてコメントする。


mohammad dehnavi
mohammad dehnavi 2024 年 11 月 17 日 9:04

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by