Cannot start Matlab from Xshell
PROBLEM DESCRIPTION
This article explains how you can fix the problem with opening Matlab from Xshell. You get the following error message when opening Matlab from Xshell:
X connection to localhost:12.0 broken (explicit kill or server shutdown).
RESOLUTION
This problem occurs because Matlab uses a script file to start the application and while opening the application, it makes multiple connections to Xmanager. And, when the Terminate at reset feature is enabled in Xmanager, connection is terminated after the first connection is closed.
To resolve this problem, disable the Terminate at rest option and use the Local Only mode for Window Mode. To dot his:
- Open Xconfig and double click on the profile you use (by default, the Default Profile is used).
- Make sure Auto detect is selected from the Window Mode section.
- Make sure the Terminate at Reset option is disabled.
- Click on the Settings... button from the Window Mode section.
RESULT: Window Mode Settings dialog box opens. - Click on the Multiple Window Mode tab.
- Select Local Only from the Window Manager list.
- Click OK to save the changes.