Help hang and starting error message with R2018b

5 views (last 30 days)
Peter
Peter on 8 Oct 2018
Edited: Yumeng on 29 May 2019
We recently updated from R2018a to R2018b and since that time have been seeing the following error message on initial startup
Exception in thread "IPC Process Thread": java.lang.UnsatisfiedLinkError: com.teamdev.jxbrowser.chromium.internal.SharedMemoryLibrary.getCurrentProcessId()J at com.teamdev.jxbrowser.chromium.internal.SharedMemoryLibrary.getCurrentProcessId(Native Method) at com.teamdev.jxbrowser.chromium.internal.ipc.ChromiumProcess.start(Unknown Source) at com.teamdev.jxbrowser.chromium.internal.ipc.d.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
We have also had the Help documentation hang problem.
Setting the html renderer to 'basic' seems to work but the functionality isn't great so we'd like to actually find and solve the underlying issue.
We have looked at the permissions for the temp folder and they seem OK. Running some of our standard scripts that query a networked SQL database and produce analysis plots seem to work fine.
Running 64-bit R2018b on Windows 7 SP1 64-bit

Answers (1)

Yumeng
Yumeng on 29 May 2019
Edited: Yumeng on 29 May 2019
My friend had exactly the same error (UnsatisfiedLinkError - getCurrentProcessId). It's an R2019a installed on Ubuntu 18.04.
The UnsatisfiedLinkError says Matlab doesn't have permission to call a Java library. It is JxBrowser that comes with the Matlab install. I had to install Matlab as root, but later run it with a regular user account. So the Java library is not accessible.
I verified this by looking at the permission setup in the Java library folders. First, I need to get the library path by running the following command in Matlab
java.lang.System.getProperty('java.library.path')
which gives me two folders; when I check the ownership of these folders and subfolders and files, they all belong to root.
The fix is easy - just change the ownership to the user account.
In a Windows machine it should be a similar task; you change the ownership by looking into the folder property.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!