MATLAB Answers

Ubuntu 16.04 graphics glitches in profiler

2 views (last 30 days)
Jakob Ameres
Jakob Ameres on 1 May 2016
Commented: Jakob Ameres on 11 May 2016
With Intel Sky Lake Integrated Graphics (i915_bpo) and Ubuntu 16.04 i get "weird" graphics glitches when using the profiler. An example is
profile on;
profile viewer;
Nevertheless the problem seems to disappear when switching to the default java version shipped with ubuntu:
MATLAB_JAVA=/usr/lib/jvm/default-java/jre matlab
or the openjdk
MATLAB_JAVA=/usr/lib/jvm/java-8-openjdk-amd64/jre/ matlab
I prefer Oracle java, so the following works also
MATLAB_JAVA=/usr/lib/jvm/java-8-oracle/jre matlab
But now matlab complains
The desktop configuration was not saved successfully
First I want to share this information and ask how I could debug the problem stemming from the JAVA version shipped with matlab. Also switching to software opengl didn't change anything. The problem definitely stems from java.
  1 Comment
Jakob Ameres
Jakob Ameres on 11 May 2016
When switching to java-1.7 the desktop configuration file can be read again, but the glitches are back again. For java-1.8 graphics work, but MATLAB does not support this version entirely. So it is a java-1.7 problem, and not MATLABs fault, although it would be nice to have java-1.8 support.

Sign in to comment.

Answers (1)

Dave Behera
Dave Behera on 3 May 2016
The error you mentioned usually comes when MATLAB does not have permissions to write to a particular folder. Try running your command as root user. It should help.
  1 Comment
Jakob Ameres
Jakob Ameres on 11 May 2016
It seems rather to be a problem with a configuration file, rather than access rights. This is the error matlab gives me: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: java.util.ServiceConfigurationError: javax.xml.xpath.XPathFactory: jar:file:/opt/matlab_R2016a/java/jarext/saxon9-xpath.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax at com.mathworks.widgets.desk.Desktop.saveLayout( at com.mathworks.widgets.desk.Desktop$ at com.mathworks.widgets.desk.Desktop$ at com.mathworks.widgets.desk.Desktop.deferredCall( at com.mathworks.widgets.desk.Desktop.saveLayout( at com.mathworks.widgets.desk.Desktop.close( at com.mathworks.widgets.desk.Desktop$ at com.mathworks.mwswing.SynchronousInvokeUtility$SynchronousEventAdapter.executeOnSwingThread( at com.mathworks.mwswing.SynchronousInvokeUtility$ at com.mathworks.jmi.AWTUtilities$Invoker$5$ at com.mathworks.mvm.context.ThreadContext$ at com.mathworks.mvm.context.ThreadContext.callWithContext( at com.mathworks.mvm.context.ThreadContext.runWithContext( at com.mathworks.mvm.context.MvmContext.runWithContext( at com.mathworks.jmi.AWTUtilities$Invoker$5.runWithOutput( at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun( at com.mathworks.jmi.AWTUtilities$ at java.awt.event.InvocationEvent.dispatch( at java.awt.EventQueue.dispatchEventImpl( at java.awt.EventQueue.access$500( at java.awt.EventQueue$ at java.awt.EventQueue$ at Method) at$JavaSecurityAccessImpl.doIntersectionPrivilege( at java.awt.EventQueue.dispatchEvent( at java.awt.EventDispatchThread.pumpOneEventForFilters( at java.awt.EventDispatchThread.pumpEventsForFilter( at java.awt.EventDispatchThread.pumpEventsForHierarchy( at java.awt.EventDispatchThread.pumpEvents( at java.awt.EventDispatchThread.pumpEvents( at

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!