Filter löschen
Filter löschen

Ubuntu 16.04 graphics glitches in profiler

2 Ansichten (letzte 30 Tage)
Jakob Ameres
Jakob Ameres am 1 Mai 2016
Kommentiert: Jakob Ameres am 11 Mai 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;
test=rand(100,1);
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 Kommentar
Jakob Ameres
Jakob Ameres am 11 Mai 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Dave Behera
Dave Behera am 3 Mai 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 Kommentar
Jakob Ameres
Jakob Ameres am 11 Mai 2016
It seems rather to be a problem with a configuration file, rather than access rights. This is the error matlab gives me:
java.io.IOException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom 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(Desktop.java:5018) at com.mathworks.widgets.desk.Desktop$41.call(Desktop.java:4043) at com.mathworks.widgets.desk.Desktop$41.call(Desktop.java:4031) at com.mathworks.widgets.desk.Desktop.deferredCall(Desktop.java:7941) at com.mathworks.widgets.desk.Desktop.saveLayout(Desktop.java:4031) at com.mathworks.widgets.desk.Desktop.close(Desktop.java:4630) at com.mathworks.widgets.desk.Desktop$DeferredCloser.run(Desktop.java:4712) at com.mathworks.mwswing.SynchronousInvokeUtility$SynchronousEventAdapter.executeOnSwingThread(SynchronousInvokeUtility.java:93) at com.mathworks.mwswing.SynchronousInvokeUtility$SynchronousEvent.run(SynchronousInvokeUtility.java:111) at com.mathworks.jmi.AWTUtilities$Invoker$5$1.run(AWTUtilities.java:591) at com.mathworks.mvm.context.ThreadContext$1.call(ThreadContext.java:76) at com.mathworks.mvm.context.ThreadContext.callWithContext(ThreadContext.java:105) at com.mathworks.mvm.context.ThreadContext.runWithContext(ThreadContext.java:73) at com.mathworks.mvm.context.MvmContext.runWithContext(MvmContext.java:107) at com.mathworks.jmi.AWTUtilities$Invoker$5.runWithOutput(AWTUtilities.java:588) at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun(AWTUtilities.java:475) at com.mathworks.jmi.AWTUtilities$WatchedRunnable.run(AWTUtilities.java:436) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by