Cannot editing plots in Linux system with two monitors

1 visualización (últimos 30 días)
Chunling
Chunling el 23 de Nov. de 2011
Hi, As the title says, I can not edit the plot in matlab, when I double click the plot to edit, the plot is killed with these error messages on the browser:
java.lang.IllegalArgumentException: adding a container to a container on a different GraphicsDevice
at java.awt.Component.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.checkGD(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at com.mathworks.mwswing.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:370)
at com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:198)
at com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:349)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:6144)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5913)
at com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1527)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.mathworks.mwswing.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7234)
at $Proxy0.setClientDocked(Unknown Source)
at com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1434)
at com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:684)
at com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:305)
at com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2648)
at com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:914)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:228)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runNotThese(HGPeerQueue.java:260)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:276)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)|*
Does anyone have a solution? Thanks a lot
  3 comentarios
Chunling
Chunling el 25 de Nov. de 2011
No, I tried that too, but still the same problem, I even tried to install matlab again, now the problem is like this:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.mwswing.desk.DTMaximizedPane.show(DTMaximizedPane.java:214)
at com.mathworks.mwswing.desk.DTMaximizedPane.remove(DTMaximizedPane.java:85)
at com.mathworks.mwswing.desk.DTDocumentContainer.remove(DTDocumentContainer.java:427)
at com.mathworks.mwswing.desk.DTGroupFrame.remove(DTGroupFrame.java:235)
at com.mathworks.mwswing.desk.DTMultipleClientFrame.removeClient(DTMultipleClientFrame.java:428)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:6190)
at com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5913)
at com.mathworks.mwswing.desk.Desktop.removeClient(Desktop.java:5869)
at com.mathworks.mwswing.desk.DTClient.close(DTClient.java:843)
at com.mathworks.mwswing.desk.DTCloseTransaction.close(DTCloseTransaction.java:124)
at com.mathworks.mwswing.desk.DTGroup$GroupCloseTransaction.close(DTGroup.java:1130)
at com.mathworks.mwswing.desk.DTCloseTransaction.query(DTCloseTransaction.java:97)
at com.mathworks.mwswing.desk.DTCloseTransaction.start(DTCloseTransaction.java:65)
at com.mathworks.mwswing.desk.DTGroup$GroupCloseTransaction.start(DTGroup.java:1118)
at com.mathworks.mwswing.desk.DTMultipleClientFrame.attemptClose(DTMultipleClientFrame.java:1883)
at com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener.windowClosing(DTMultipleClientFrame.java:2552)
at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at com.mathworks.mwswing.MJFrame.processWindowEvent(MJFrame.java:837)
at java.awt.Window.processEvent(Unknown Source)
at com.mathworks.mwswing.MJFrame.processEvent(MJFrame.java:433)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Daniel Shub
Daniel Shub el 25 de Nov. de 2011
What Linux distribution (e.g., Ubunutu and Fedora) are you using? What desktop environment are you using (e.g., Gnome and KDE)? What version of Java are you using?
You may want to post this the answers to these questions in your new thread. The problem, at this point, has nothing to do with dual monitors.

Iniciar sesión para comentar.

Respuestas (1)

Soner Ulun
Soner Ulun el 26 de Dic. de 2012
If you docked the figures to the figures to the desktop of matlab it might have created the issue, at least it did it for me.
You might use "set(0,'DefaultFigureWindowStyle','normal')" to set it back right.

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by