Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
"figure properties" Java exception on Linux

Subject: "figure properties" Java exception on Linux

From: Lin

Date: 9 May, 2008 21:54:02

Message: 1 of 34

I'm using Matlab 7.6.0 on Linux (x86). I get a Java
exception once I click on the Edit|Figure Properties menu
item in a plot window. Does anybody know why? The older
versions used to work fine. Thanks!!

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:48)
at
com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:361)
at
com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:186)
at
com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:328)
at
com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5660)
at
com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5435)
at
com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:5840)
at
com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1472)
at
com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:680)
at
com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:320)
at
com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2606)
at com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:840)
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)
Exception in thread "AWT-EventQueue-0"
java.lang.NullPointerException
at
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
at
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
at
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
at
com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
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)
Exception in thread "AWT-EventQueue-0"
java.lang.NullPointerException
at
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
at
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
at
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
at
com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
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)

Subject: Re:

From: Timothy Glotch

Date: 20 May, 2008 18:49:04

Message: 2 of 34

I am having the same problem. I did some searching and
apparently this error is related to using dual monitors,
which I am. Are you also? I don't know how to fix this, but
if anyone has any suggestions, I'm all ears.

Thanks

"Lin " <shao@msg.ucsf.edu> wrote in message
<g02h5q$obq$1@fred.mathworks.com>...
> I'm using Matlab 7.6.0 on Linux (x86). I get a Java
> exception once I click on the Edit|Figure Properties menu
> item in a plot window. Does anybody know why? The older
> versions used to work fine. Thanks!!
>
> 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:48)
> at
>
com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:361)
> at
>
com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:186)
> at
>
com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:328)
> at
>
com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5660)
> at
>
com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5435)
> at
>
com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:5840)
> at
>
com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1472)
> at
>
com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:680)
> at
>
com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:320)
> at
>
com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2606)
> at
com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:840)
> 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)
> Exception in thread "AWT-EventQueue-0"
> java.lang.NullPointerException
> at
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> at
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> at
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> at
>
com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> 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)
> Exception in thread "AWT-EventQueue-0"
> java.lang.NullPointerException
> at
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> at
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> at
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> at
>
com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> 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)

Subject: Re:

From: Marc

Date: 28 May, 2008 11:42:04

Message: 3 of 34

I am also having this problem (dual monitors, Linux, NVidia
drivers, 2008a). A workaround is to dock the figure, hit the
figure properties button then undock the figure.

I hope somebody from the Mathworks can fix this issue - it
drives me insane.

"Timothy Glotch" <tglotch@gmail.com> wrote in message
<g0v6f0$rvc$1@fred.mathworks.com>...
> I am having the same problem. I did some searching and
> apparently this error is related to using dual monitors,
> which I am. Are you also? I don't know how to fix this, but
> if anyone has any suggestions, I'm all ears.
>
> Thanks
>
> "Lin " <shao@msg.ucsf.edu> wrote in message
> <g02h5q$obq$1@fred.mathworks.com>...
> > I'm using Matlab 7.6.0 on Linux (x86). I get a Java
> > exception once I click on the Edit|Figure Properties menu
> > item in a plot window. Does anybody know why? The older
> > versions used to work fine. Thanks!!
> >
> > 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:48)
> > at
> >
>
com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:361)
> > at
> >
>
com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:186)
> > at
> >
>
com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:328)
> > at
> >
>
com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5660)
> > at
> >
>
com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5435)
> > at
> >
>
com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:5840)
> > at
> >
>
com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1472)
> > at
> >
>
com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:680)
> > at
> >
>
com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:320)
> > at
> >
>
com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2606)
> > at
> com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:840)
> > 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)
> > Exception in thread "AWT-EventQueue-0"
> > java.lang.NullPointerException
> > at
> >
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> > at
> >
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> > at
> >
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> > at
> >
>
com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> > 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)
> > Exception in thread "AWT-EventQueue-0"
> > java.lang.NullPointerException
> > at
> >
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> > at
> >
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> > at
> >
>
com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> > at
> >
>
com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> > 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)
>

Subject: "figure properties" Java exception on Linux

From: Levi Kilcher

Date: 8 Feb, 2009 23:47:02

Message: 4 of 34

I am also having this problem. Linux (Ubuntu), nVidia drivers, dual monitors. A fix would be REALLY nice!

Subject: "figure properties" Java exception on Linux

From: Marc

Date: 9 Feb, 2009 07:23:06

Message: 5 of 34

A fix would be good - but you can work around this easily enough. If you keep the figure window on the same monitor as the main matlab window during the whole edit operation, the crash doesn't happen.

"Levi Kilcher" <levi.kilcher@gmail.com> wrote in message <gmnqtm$a8j$1@fred.mathworks.com>...
> I am also having this problem. Linux (Ubuntu), nVidia drivers, dual monitors. A fix would be REALLY nice!

Subject: "figure properties" Java exception on Linux

From: Levi Kilcher

Date: 24 Feb, 2009 03:18:02

Message: 6 of 34

I assumed this would work as well, but it did not. I still get the error when all of my figures are on the same monitor as the main matlab window.
Even if this did work though, it would defeat one of the greatest perks of having two monitors. i.e. Having matlab in one monitor and figures in the other!

"Marc" <myfirstname.brooker@gmail.com> wrote in message <gmolkq$7gg$1@fred.mathworks.com>...
> A fix would be good - but you can work around this easily enough. If you keep the figure window on the same monitor as the main matlab window during the whole edit operation, the crash doesn't happen.
>
> "Levi Kilcher" <levi.kilcher@gmail.com> wrote in message <gmnqtm$a8j$1@fred.mathworks.com>...
> > I am also having this problem. Linux (Ubuntu), nVidia drivers, dual monitors. A fix would be REALLY nice!

Subject: "figure properties" Java exception on Linux

From: Stanley

Date: 16 Mar, 2009 22:41:02

Message: 7 of 34

Same problem. Printing or 3D operations fail unless the figure is docked within the matlab IDE.

Ubuntu H
Dual Mon
NVidia drivers
MATLAB 2009a (but same prob on 2008a)

Subject: "figure properties" Java exception on Linux

From: Brad

Date: 1 Apr, 2009 22:39:01

Message: 8 of 34

I get the same error as well. I'm using dual monitors and Ubuntu.

Brad

"Lin " <shao@msg.ucsf.edu> wrote in message <g02h5q$obq$1@fred.mathworks.com>...
> I'm using Matlab 7.6.0 on Linux (x86). I get a Java
> exception once I click on the Edit|Figure Properties menu
> item in a plot window. Does anybody know why? The older
> versions used to work fine. Thanks!!
>
> 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:48)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:361)
> at
> com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:186)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:328)
> at
> com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5660)
> at
> com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5435)
> at
> com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:5840)
> at
> com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1472)
> at
> com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:680)
> at
> com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:320)
> at
> com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2606)
> at com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:840)
> 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)
> Exception in thread "AWT-EventQueue-0"
> java.lang.NullPointerException
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> 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)
> Exception in thread "AWT-EventQueue-0"
> java.lang.NullPointerException
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> 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)

Subject: "figure properties" Java exception on Linux

From: Samuel Cheng

Date: 17 Jul, 2009 20:13:02

Message: 9 of 34

It seems that the bug doesn't happen when a plot is drawn to the figure of the same type (will explain below) or to a new figure.

So a possible workaround is to force matlab to always draw to a new figure. More precisely, one can add

set(gcf,'nextplot','new');

before all plot commands. One may ask why we just use the command

figure;

to generate new figure. However, the workaround doesn't always work since the new figure generated by the "figure" command only matches with "plot" figure but not with "mesh" figure.

Now, if one wants to override a previous figure, one has to make sure the new plot is the same type of the old one (e.g., a "mesh" figure can't be drawn to a "plot" figure and vice versa). For example, to override my previous mesh figure,

set(gcf,'nextplot','new'); % force new figure
mesh(rand(100)); % mesh something
handle=gcf; % store figure handle

% some operations...

% override previous figure
figure(handle);
mesh(rand(100));

The above workaround seems to work for Matlab 7.7 (R2008b) under linux ubuntu 9.04. However, it would be really NICE if matlab can give a real fix for this annoying bug.

 

"Brad " <lipovsky@ucr.edu> wrote in message <gr0qe5$d2q$1@fred.mathworks.com>...
> I get the same error as well. I'm using dual monitors and Ubuntu.
>
> Brad
>
> "Lin " <shao@msg.ucsf.edu> wrote in message <g02h5q$obq$1@fred.mathworks.com>...
> > I'm using Matlab 7.6.0 on Linux (x86). I get a Java
> > exception once I click on the Edit|Figure Properties menu
> > item in a plot window. Does anybody know why? The older
> > versions used to work fine. Thanks!!
> >
> > 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:48)
> > at
> > com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:361)
> > at
> > com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:186)
> > at
> > com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:328)
> > at
> > com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5660)
> > at
> > com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5435)
> > at
> > com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:5840)
> > at
> > com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1472)
> > at
> > com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:680)
> > at
> > com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:320)
> > at
> > com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2606)
> > at com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:840)
> > 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)
> > Exception in thread "AWT-EventQueue-0"
> > java.lang.NullPointerException
> > at
> > com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> > at
> > com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> > at
> > com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> > at
> > com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> > 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)
> > Exception in thread "AWT-EventQueue-0"
> > java.lang.NullPointerException
> > at
> > com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> > at
> > com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> > at
> > com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> > at
> > com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> > 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)

Subject: "figure properties" Java exception on Linux

From: dnquark

Date: 27 Jul, 2009 01:23:22

Message: 10 of 34

I am confirming this bug (Ubuntu 9.04 64 bit, Nvidia drivers, dual
monitors, Matlab R2008a). Can someone at Mathworks please address
this bug in the core functionality?.. It's really becoming quite
annoying.

Subject: "figure properties" Java exception on Linux

From: Steven Lord

Date: 27 Jul, 2009 14:11:14

Message: 11 of 34


"dnquark" <dnquark@gmail.com> wrote in message
news:5afeb39c-3bdc-4dfb-aae8-0a0b124f2ffd@r2g2000yqm.googlegroups.com...
>I am confirming this bug (Ubuntu 9.04 64 bit, Nvidia drivers, dual
> monitors, Matlab R2008a). Can someone at Mathworks please address
> this bug in the core functionality?.. It's really becoming quite
> annoying.

Please contact Technical Support with the following information:

1) The exact text of the Java exception you receive
2) The exact steps you need to follow to generate the Java exception from
step 1
3) The full "uname -a" output from your machine
4) The exact version of the NVidia graphics drivers you're using
5) The exact version of MATLAB you're using

Most of this information you've provided above, but because the person in
Technical Support that you'll speak to may not have read this thread, it'll
be useful to include all that information at once. They can work with you
to enter it into our bug database so that the developers can investigate and
determine the cause and possibly a workaround, and determine how to fix it.

To contact Technical Support, use the form linked to on this page:

http://www.mathworks.com/company/aboutus/contact_us/?s_cid=docframe_aboutus_contact_us

--
Steve Lord
slord@mathworks.com

Subject: "figure properties" Java exception on Linux

From: karumba eiligio

Date: 14 Sep, 2009 09:14:02

Message: 12 of 34

same problem here (suse 10.2, nvidia, dual monitor). we have the following fix:

(1) start matlab with " -nodisplay"
(2) open a figure & try to edit

it produces the following output:
-------------------------------------------------
>> NVIDIA: could not open the device file /dev/nvidiactl (Permission denied).
NVIDIA: Direct rendering failed; attempting indirect rendering.
-------------------------------------------------

so what we did is chmod "/dev/nv*" to "o+rw".
notes:
- you have to be root
- maybe you have to redo that after a reboot, i'm not sure.

Subject: "figure properties" Java exception on Linux

From: Franco

Date: 12 Oct, 2009 16:28:04

Message: 13 of 34

Was this problem solved?
I encountered the same issue.
Thank you!
F-

"Steven Lord" <slord@mathworks.com> wrote in message <h4kchn$c7r$1@fred.mathworks.com>...
>
> "dnquark" <dnquark@gmail.com> wrote in message
> news:5afeb39c-3bdc-4dfb-aae8-0a0b124f2ffd@r2g2000yqm.googlegroups.com...
> >I am confirming this bug (Ubuntu 9.04 64 bit, Nvidia drivers, dual
> > monitors, Matlab R2008a). Can someone at Mathworks please address
> > this bug in the core functionality?.. It's really becoming quite
> > annoying.
>
> Please contact Technical Support with the following information:
>
> 1) The exact text of the Java exception you receive
> 2) The exact steps you need to follow to generate the Java exception from
> step 1
> 3) The full "uname -a" output from your machine
> 4) The exact version of the NVidia graphics drivers you're using
> 5) The exact version of MATLAB you're using
>
> Most of this information you've provided above, but because the person in
> Technical Support that you'll speak to may not have read this thread, it'll
> be useful to include all that information at once. They can work with you
> to enter it into our bug database so that the developers can investigate and
> determine the cause and possibly a workaround, and determine how to fix it.
>
> To contact Technical Support, use the form linked to on this page:
>
> http://www.mathworks.com/company/aboutus/contact_us/?s_cid=docframe_aboutus_contact_us
>
> --
> Steve Lord
> slord@mathworks.com
>

Subject: "figure properties" Java exception on Linux

From: Batuhan

Date: 12 Feb, 2010 13:36:21

Message: 14 of 34

Hi All,
I'm getting Java exception when I try to use subplot, using a dual monitor setup on ubuntu 9.10, 32-bit intel graphics card.

My workaround is:
set(0, 'DefaultFigureRendererMode', 'manual')
set(0,'DefaultFigureRenderer','zbuffer')

Seems to work for me.
Cheers,
Batu.
"Franco " <fp2190@brain.riken.jp> wrote in message <havlek$im4$1@fred.mathworks.com>...
> Was this problem solved?
> I encountered the same issue.
> Thank you!
> F-
>
> "Steven Lord" <slord@mathworks.com> wrote in message <h4kchn$c7r$1@fred.mathworks.com>...
> >
> > "dnquark" <dnquark@gmail.com> wrote in message
> > news:5afeb39c-3bdc-4dfb-aae8-0a0b124f2ffd@r2g2000yqm.googlegroups.com...
> > >I am confirming this bug (Ubuntu 9.04 64 bit, Nvidia drivers, dual
> > > monitors, Matlab R2008a). Can someone at Mathworks please address
> > > this bug in the core functionality?.. It's really becoming quite
> > > annoying.
> >
> > Please contact Technical Support with the following information:
> >
> > 1) The exact text of the Java exception you receive
> > 2) The exact steps you need to follow to generate the Java exception from
> > step 1
> > 3) The full "uname -a" output from your machine
> > 4) The exact version of the NVidia graphics drivers you're using
> > 5) The exact version of MATLAB you're using
> >
> > Most of this information you've provided above, but because the person in
> > Technical Support that you'll speak to may not have read this thread, it'll
> > be useful to include all that information at once. They can work with you
> > to enter it into our bug database so that the developers can investigate and
> > determine the cause and possibly a workaround, and determine how to fix it.
> >
> > To contact Technical Support, use the form linked to on this page:
> >
> > http://www.mathworks.com/company/aboutus/contact_us/?s_cid=docframe_aboutus_contact_us
> >
> > --
> > Steve Lord
> > slord@mathworks.com
> >

Subject: "figure properties" Java exception on Linux

From: zbot one

Date: 15 Apr, 2010 00:42:04

Message: 15 of 34

+1 to the list. Ubuntu 9.10. Nvidia drivers. Dual monitors. R2007b.

I tried a couple of the suggested fixes (including the one posted above about set(0,...). Either hit or miss. The one that worked best is plotting on the same monitor where MATLAB's command window is running (I know it's a pain, but oh well).

2D figures are ok, only ran into trouble with 3D, so for a 3D figure 'f' then:

scrsz=get(0,'ScreenSize');
f = figure('Position',[0 scrsz(4)/2 500 500]);

No need for it to be docked! (in my case)

-zbot1

Subject: "figure properties" Java exception on Linux

From: Alan B

Date: 22 Jul, 2010 20:24:04

Message: 16 of 34

"zbot one" <zbot.one@gmail.com> wrote in message <hq5ncs$fe7$1@fred.mathworks.com>...
> +1 to the list. Ubuntu 9.10. Nvidia drivers. Dual monitors. R2007b.
>
> I tried a couple of the suggested fixes (including the one posted above about set(0,...). Either hit or miss. The one that worked best is plotting on the same monitor where MATLAB's command window is running (I know it's a pain, but oh well).
>
> 2D figures are ok, only ran into trouble with 3D, so for a 3D figure 'f' then:
>
> scrsz=get(0,'ScreenSize');
> f = figure('Position',[0 scrsz(4)/2 500 500]);
>
> No need for it to be docked! (in my case)
>
> -zbot1

I have had this problem for a while as well - I was hoping it would go away when we upgraded recently, but it has not. I've seen it on RHEL 5/R2009b, RHEL 5/R2006b, and RHEL 4/2006b. My machines are 64 bit, with ATI cards. I can usually put the figure on the same monitor as the command window as a workaround, but a real fix would be nice.

Subject: "figure properties" Java exception on Linux

From: Georg Fuss

Date: 28 Jul, 2010 14:48:05

Message: 17 of 34

(i) Kill your ~/.matlab directory.

(ii) After starting matlab again you see the IDE and the window with the
graphic output on the same monitor.

Now, DO NOT move the window to the other monitor.

Maybe better, dock the graphic window to the IDE.
On the top of the graphic window is a button DESKTOP to do this.

(iii) If you get the error message again, repeat step (i).

Step (i) seems important. This also explains, why some of my fellows here have the impression, that older versions do not have this failure.

"Lin " <shao@msg.ucsf.edu> wrote in message <g02h5q$obq$1@fred.mathworks.com>...
> I'm using Matlab 7.6.0 on Linux (x86). I get a Java
> exception once I click on the Edit|Figure Properties menu
> item in a plot window. Does anybody know why? The older
> versions used to work fine. Thanks!!
>
> java.lang.IllegalArgumentException: adding a container to a
> container on a different GraphicsDevice

Subject: "figure properties" Java exception on Linux

From: Aurelien Queffurust

Date: 15 Nov, 2010 15:39:03

Message: 18 of 34

dnquark <dnquark@gmail.com> wrote in message <5afeb39c-3bdc-4dfb-aae8-0a0b124f2ffd@r2g2000yqm.googlegroups.com>...
> I am confirming this bug (Ubuntu 9.04 64 bit, Nvidia drivers, dual
> monitors, Matlab R2008a). Can someone at Mathworks please address
> this bug in the core functionality?.. It's really becoming quite
> annoying.

FYI, there is a bug report concerning the error message : "adding a container to a container on a different GraphicsDevice"
http://www.mathworks.com/support/bugreports/383414

You could add this bug report to your watch list , and receive emails when it is updated.

Aurélien
http://blog.developpez.com/matlab4geek/

Subject: "figure properties" Java exception on Linux

From: LP

Date: 27 Apr, 2011 04:49:05

Message: 19 of 34

I can confirm i have a similar problem with docked figures on a dual monitor ubuntu 10.10 with Matlab 2010a

assuming there are no real workarounds for this where additional code is not required?

hope they fix this one....

thanks, lp

Subject: "figure properties" Java exception on Linux

From: Miguel

Date: 26 Oct, 2011 07:26:14

Message: 20 of 34

"LP" wrote in message <ip8780$23n$1@fred.mathworks.com>...
> I can confirm i have a similar problem with docked figures on a dual monitor ubuntu 10.10 with Matlab 2010a
>
> assuming there are no real workarounds for this where additional code is not required?
>
> hope they fix this one....
>
> thanks, lp

Hi all

I work with dual monitor with Nvidia card, ubuntu 10.04 64 with Matlab 2010b.

Today I've found the same problem as described at the beginning of this thread. I was surprised because I've been working with this setup for months and I never suffered any issue like this one.

After that I've realized that this time I had initialized Matlab directly clicking in the icon, i.e., the standard way to initialize Matlab. I usually work in the console and I launch Matlab with the next command:

>> matlab -nodesktop -nosplash

I've checked that even repeating the same steps and commands if I launch Matlab in "nodesktop mode" I can edit figures without problem in a two monitors environment.

I hope that this information could be useful for somebody

Regards from La Mancha :)

Miguel

Subject: "figure properties" Java exception on Linux

From: Junaid

Date: 13 Dec, 2011 09:23:15

Message: 21 of 34

On Oct 26, 4:26 pm, "Miguel " <miguel.ca...@uclm.es> wrote:
> "LP" wrote in message <ip8780$23...@fred.mathworks.com>...
> > I can confirm i have a similar problem with docked figures on a dual monitor ubuntu 10.10 with Matlab 2010a
>
> > assuming there are no real workarounds for this where additional code is not required?
>
> > hope they fix this one....
>
> > thanks, lp
>
> Hi all
>
> I work with dual monitor with Nvidia card, ubuntu 10.04 64 with Matlab 2010b.
>
> Today I've found the same problem as described at the beginning of this thread. I was surprised because I've been working with this setup for months and I never suffered any issue like this one.
>
> After that I've realized that this time I had initialized Matlab directly clicking in the icon, i.e., the standard way to initialize Matlab. I usually work in the console and I launch Matlab with the next command:
>
> >> matlab -nodesktop -nosplash
>
> I've checked that even repeating the same steps and commands if I launch Matlab in "nodesktop mode" I can edit figures without problem in a two monitors environment.
>
> I hope that this information could be useful for somebody
>
> Regards from La Mancha :)
>
> Miguel

Dear all and Miguel,

Thanks for your help. There are two ways to solve the problem. One is
which Miguel mentioned and second is whenever you have to edit the
figure keep open this in main system. Usually when you display two
monitors then there is option to select one as main. I was also
encountered with this problem. But when I edit in main screen window
then it is solved. I hope it might benefit someone in this discussion.

Subject: "figure properties" Java exception on Linux

From: Fabio Veronese

Date: 24 Jan, 2012 16:00:10

Message: 22 of 34

Same issue, solved without performance loss with:

set(0,'DefaultFigureRenderer','OpenGL')

@ matlab startup

Cheers

Junaid <junaids.baber@gmail.com> wrote in message <a6ffb707-771c-4d45-b7f1-4e96059d6a8a@b14g2000prn.googlegroups.com>...
> On Oct 26, 4:26 pm, "Miguel " <miguel.ca...@uclm.es> wrote:
> > "LP" wrote in message <ip8780$23...@fred.mathworks.com>...
> > > I can confirm i have a similar problem with docked figures on a dual monitor ubuntu 10.10 with Matlab 2010a
> >
> > > assuming there are no real workarounds for this where additional code is not required?
> >
> > > hope they fix this one....
> >
> > > thanks, lp
> >
> > Hi all
> >
> > I work with dual monitor with Nvidia card, ubuntu 10.04 64 with Matlab 2010b.
> >
> > Today I've found the same problem as described at the beginning of this thread. I was surprised because I've been working with this setup for months and I never suffered any issue like this one.
> >
> > After that I've realized that this time I had initialized Matlab directly clicking in the icon, i.e., the standard way to initialize Matlab. I usually work in the console and I launch Matlab with the next command:
> >
> > >> matlab -nodesktop -nosplash
> >
> > I've checked that even repeating the same steps and commands if I launch Matlab in "nodesktop mode" I can edit figures without problem in a two monitors environment.
> >
> > I hope that this information could be useful for somebody
> >
> > Regards from La Mancha :)
> >
> > Miguel
>
> Dear all and Miguel,
>
> Thanks for your help. There are two ways to solve the problem. One is
> which Miguel mentioned and second is whenever you have to edit the
> figure keep open this in main system. Usually when you display two
> monitors then there is option to select one as main. I was also
> encountered with this problem. But when I edit in main screen window
> then it is solved. I hope it might benefit someone in this discussion.

Subject: "figure properties" Java exception on Linux

From: Fabio Veronese

Date: 25 Jan, 2012 07:38:10

Message: 23 of 34

Actually the best thing to do is to:

edit matlabrc.m

and append:

% Needed to fix dual monitor setup:
set(0,'DefaultFigureRenderer','OpenGL')
set(0,'DefaultFigureRendererMode', 'manual')

This will set those options automatically on Matlab startup.
I added the second line since it improves rendering timings (at least with my config)

Cheers

"Fabio Veronese" <fveronese85@gmail.com> wrote in message <jfmkia$n6a$1@newscl01ah.mathworks.com>...
> Same issue, solved without performance loss with:
>
> set(0,'DefaultFigureRenderer','OpenGL')
>
> @ matlab startup
>
> Cheers
>
> Junaid <junaids.baber@gmail.com> wrote in message <a6ffb707-771c-4d45-b7f1-4e96059d6a8a@b14g2000prn.googlegroups.com>...
> > On Oct 26, 4:26 pm, "Miguel " <miguel.ca...@uclm.es> wrote:
> > > "LP" wrote in message <ip8780$23...@fred.mathworks.com>...
> > > > I can confirm i have a similar problem with docked figures on a dual monitor ubuntu 10.10 with Matlab 2010a
> > >
> > > > assuming there are no real workarounds for this where additional code is not required?
> > >
> > > > hope they fix this one....
> > >
> > > > thanks, lp
> > >
> > > Hi all
> > >
> > > I work with dual monitor with Nvidia card, ubuntu 10.04 64 with Matlab 2010b.
> > >
> > > Today I've found the same problem as described at the beginning of this thread. I was surprised because I've been working with this setup for months and I never suffered any issue like this one.
> > >
> > > After that I've realized that this time I had initialized Matlab directly clicking in the icon, i.e., the standard way to initialize Matlab. I usually work in the console and I launch Matlab with the next command:
> > >
> > > >> matlab -nodesktop -nosplash
> > >
> > > I've checked that even repeating the same steps and commands if I launch Matlab in "nodesktop mode" I can edit figures without problem in a two monitors environment.
> > >
> > > I hope that this information could be useful for somebody
> > >
> > > Regards from La Mancha :)
> > >
> > > Miguel
> >
> > Dear all and Miguel,
> >
> > Thanks for your help. There are two ways to solve the problem. One is
> > which Miguel mentioned and second is whenever you have to edit the
> > figure keep open this in main system. Usually when you display two
> > monitors then there is option to select one as main. I was also
> > encountered with this problem. But when I edit in main screen window
> > then it is solved. I hope it might benefit someone in this discussion.

Subject: "figure properties" Java exception on Linux

From: Jens Olav

Date: 7 Feb, 2012 09:14:11

Message: 24 of 34

Actually the best thing to do is to:
>
> edit matlabrc.m


Hey, thanks a lot for the tip, seems to have solved my problem!

But - where do you find matlabrc.m?! I would like to avoid having to type this in automatically all the time, but cannot find a matlabrc.m on my system. Tried to put one first in ~./R2008a, and then in my home directory, but neither was used by Matlab during startup...

J.

Subject: "figure properties" Java exception on Linux

From: Jens Olav

Date: 7 Feb, 2012 09:38:10

Message: 25 of 34

Ok, was a bit quick to post there - found the file in the /usr hierarchy... :-)

J.

Subject: "figure properties" Java exception on Linux

From: Nick Steinmetz

Date: 4 Jul, 2012 00:21:08

Message: 26 of 34

Thanks Fabio, this solved it for me too. Really appreciate it!

"Fabio Veronese" <fveronese85@gmail.com> wrote in message <jfobh2$ftl$1@newscl01ah.mathworks.com>...
> Actually the best thing to do is to:
>
> edit matlabrc.m
>
> and append:
>
> % Needed to fix dual monitor setup:
> set(0,'DefaultFigureRenderer','OpenGL')
> set(0,'DefaultFigureRendererMode', 'manual')
>

Subject: "figure properties" Java exception on Linux

From: German

Date: 1 Aug, 2012 16:54:14

Message: 27 of 34

Matlab R2012a still suffers from the same bug

Subject: "figure properties" Java exception on Linux

From: Javier

Date: 17 Aug, 2012 15:33:08

Message: 28 of 34

I have tried all the differents workarounds here and it worked for some time but now when i try to open the plot browser in a figure it breaks down again without any possible solution.
I'm pretty dissapointed with Mathworks support because this error is happening since 5 years ago and there is no fix yet. And this is so annoying and so absurd, because i have two small screens in my desktop and i can't work with only one.
What is the point of using commercial software if you don't get support in 5 years?

Subject: "figure properties" Java exception on Linux

From: Steven_Lord

Date: 17 Aug, 2012 16:58:26

Message: 29 of 34



"Javier " <mekonto@yahoo.es> wrote in message
news:k0lo7k$ovc$1@newscl01ah.mathworks.com...
> I have tried all the differents workarounds here and it worked for some
> time but now when i try to open the plot browser in a figure it breaks
> down again without any possible solution.
> I'm pretty dissapointed with Mathworks support because this error is
> happening since 5 years ago and there is no fix yet. And this is so
> annoying and so absurd, because i have two small screens in my desktop and
> i can't work with only one.
> What is the point of using commercial software if you don't get support in
> 5 years?

Have you contacted Technical Support and worked with them to determine the
specific cause of this issue on your machine?

CSSM is not the official technical support department at MathWorks; to
contact that department, see my signature.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: "figure properties" Java exception on Linux

From: Jaime Undurraga

Date: 30 Apr, 2013 10:24:09

Message: 30 of 34

Same here using linux with two screens
adding a container to a container on a different GraphicsDevice
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.widgets.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.widgets.desk.DTDocumentContainer.add(DTDocumentContainer.java:379)
at com.mathworks.widgets.desk.DTGroupFrame.add(DTGroupFrame.java:251)
at com.mathworks.widgets.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:493)
at com.mathworks.mde.desk.MLMultipleClientFrame.addClient(MLMultipleClientFrame.java:57)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6485)
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.widgets.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7601)
at $Proxy0.setClientShowing(Unknown Source)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:6235)
at com.mathworks.widgets.desk.Desktop.showClientHelper(Desktop.java:1085)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:1061)
at com.mathworks.mde.desk.MLDesktop.showClient(MLDesktop.java:1144)
at com.mathworks.hg.peer.FigureClientProxy$ShowEnabledHandler.showClient(FigureClientProxy.java:1078)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:543)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:526)
at com.mathworks.hg.peer.FigureMediator.showClient(FigureMediator.java:152)
at com.mathworks.hg.peer.FigurePeer.show(FigurePeer.java:1929)
at com.mathworks.hg.peer.FigurePeer.doSetFigureVisible(FigurePeer.java:2712)
at com.mathworks.hg.peer.FigurePeer$19.run(FigurePeer.java:1985)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:262)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runThese(HGPeerQueue.java:290)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:320)
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)
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.widgets.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.widgets.desk.DTDocumentContainer.add(DTDocumentContainer.java:379)
at com.mathworks.widgets.desk.DTGroupFrame.add(DTGroupFrame.java:251)
at com.mathworks.widgets.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:493)
at com.mathworks.mde.desk.MLMultipleClientFrame.addClient(MLMultipleClientFrame.java:57)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6485)
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.widgets.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7601)
at $Proxy0.setClientShowing(Unknown Source)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:6235)
at com.mathworks.widgets.desk.Desktop.showClientHelper(Desktop.java:1085)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:1061)
at com.mathworks.mde.desk.MLDesktop.showClient(MLDesktop.java:1144)
at com.mathworks.hg.peer.FigureClientProxy$ShowEnabledHandler.showClient(FigureClientProxy.java:1078)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:543)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:526)
at com.mathworks.hg.peer.FigureMediator.showClient(FigureMediator.java:152)
at com.mathworks.hg.peer.FigurePeer.show(FigurePeer.java:1929)
at com.mathworks.hg.peer.FigurePeer.doSetFigureVisible(FigurePeer.java:2712)
at com.mathworks.hg.peer.FigurePeer$19.run(FigurePeer.java:1985)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:262)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runThese(HGPeerQueue.java:290)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:320)
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)
adding a container to a container on a different GraphicsDevice
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.widgets.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.widgets.desk.DTDocumentContainer.add(DTDocumentContainer.java:379)
at com.mathworks.widgets.desk.DTGroupFrame.add(DTGroupFrame.java:251)
at com.mathworks.widgets.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:493)
at com.mathworks.mde.desk.MLMultipleClientFrame.addClient(MLMultipleClientFrame.java:57)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6485)
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.widgets.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7601)
at $Proxy0.setClientShowing(Unknown Source)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:6235)
at com.mathworks.widgets.desk.Desktop.showClientHelper(Desktop.java:1085)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:1061)
at com.mathworks.mde.desk.MLDesktop.showClient(MLDesktop.java:1144)
at com.mathworks.hg.peer.FigureClientProxy$ShowEnabledHandler.showClient(FigureClientProxy.java:1078)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:543)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:526)
at com.mathworks.hg.peer.FigureMediator.showClient(FigureMediator.java:152)
at com.mathworks.hg.peer.FigurePeer.show(FigurePeer.java:1929)
at com.mathworks.hg.peer.FigurePeer.doSetFigureVisible(FigurePeer.java:2712)
at com.mathworks.hg.peer.FigurePeer$19.run(FigurePeer.java:1985)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:262)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runThese(HGPeerQueue.java:290)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:320)
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)
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.widgets.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.widgets.desk.DTDocumentContainer.add(DTDocumentContainer.java:379)
at com.mathworks.widgets.desk.DTGroupFrame.add(DTGroupFrame.java:251)
at com.mathworks.widgets.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:493)
at com.mathworks.mde.desk.MLMultipleClientFrame.addClient(MLMultipleClientFrame.java:57)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6485)
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.widgets.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7601)
at $Proxy0.setClientShowing(Unknown Source)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:6235)
at com.mathworks.widgets.desk.Desktop.showClientHelper(Desktop.java:1085)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:1061)
at com.mathworks.mde.desk.MLDesktop.showClient(MLDesktop.java:1144)
at com.mathworks.hg.peer.FigureClientProxy$ShowEnabledHandler.showClient(FigureClientProxy.java:1078)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:543)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:526)
at com.mathworks.hg.peer.FigureMediator.showClient(FigureMediator.java:152)
at com.mathworks.hg.peer.FigurePeer.show(FigurePeer.java:1929)
at com.mathworks.hg.peer.FigurePeer.doSetFigureVisible(FigurePeer.java:2712)
at com.mathworks.hg.peer.FigurePeer$19.run(FigurePeer.java:1985)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:262)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runThese(HGPeerQueue.java:290)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:320)
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)
adding a container to a container on a different GraphicsDevice
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.widgets.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.widgets.desk.DTDocumentContainer.add(DTDocumentContainer.java:379)
at com.mathworks.widgets.desk.DTGroupFrame.add(DTGroupFrame.java:251)
at com.mathworks.widgets.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:493)
at com.mathworks.mde.desk.MLMultipleClientFrame.addClient(MLMultipleClientFrame.java:57)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6485)
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.widgets.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7601)
at $Proxy0.setClientShowing(Unknown Source)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:6235)
at com.mathworks.widgets.desk.Desktop.showClientHelper(Desktop.java:1085)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:1061)
at com.mathworks.mde.desk.MLDesktop.showClient(MLDesktop.java:1144)
at com.mathworks.hg.peer.FigureClientProxy$ShowEnabledHandler.showClient(FigureClientProxy.java:1078)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:543)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:526)
at com.mathworks.hg.peer.FigureMediator.showClient(FigureMediator.java:152)
at com.mathworks.hg.peer.FigurePeer.show(FigurePeer.java:1929)
at com.mathworks.hg.peer.FigurePeer.doSetFigureVisible(FigurePeer.java:2712)
at com.mathworks.hg.peer.FigurePeer$19.run(FigurePeer.java:1985)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:262)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runThese(HGPeerQueue.java:290)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:320)
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)
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.widgets.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.widgets.desk.DTDocumentContainer.add(DTDocumentContainer.java:379)
at com.mathworks.widgets.desk.DTGroupFrame.add(DTGroupFrame.java:251)
at com.mathworks.widgets.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:493)
at com.mathworks.mde.desk.MLMultipleClientFrame.addClient(MLMultipleClientFrame.java:57)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6485)
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.widgets.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7601)
at $Proxy0.setClientShowing(Unknown Source)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:6235)
at com.mathworks.widgets.desk.Desktop.showClientHelper(Desktop.java:1085)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:1061)
at com.mathworks.mde.desk.MLDesktop.showClient(MLDesktop.java:1144)
at com.mathworks.hg.peer.FigureClientProxy$ShowEnabledHandler.showClient(FigureClientProxy.java:1078)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:543)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:526)
at com.mathworks.hg.peer.FigureMediator.showClient(FigureMediator.java:152)
at com.mathworks.hg.peer.FigurePeer.show(FigurePeer.java:1929)
at com.mathworks.hg.peer.FigurePeer.doSetFigureVisible(FigurePeer.java:2712)
at com.mathworks.hg.peer.FigurePeer$19.run(FigurePeer.java:1985)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:262)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runThese(HGPeerQueue.java:290)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:320)
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)


"Lin " <shao@msg.ucsf.edu> wrote in message <g02h5q$obq$1@fred.mathworks.com>...
> I'm using Matlab 7.6.0 on Linux (x86). I get a Java
> exception once I click on the Edit|Figure Properties menu
> item in a plot window. Does anybody know why? The older
> versions used to work fine. Thanks!!
>
> 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:48)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:361)
> at
> com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:186)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:328)
> at
> com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5660)
> at
> com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5435)
> at
> com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:5840)
> at
> com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1472)
> at
> com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:680)
> at
> com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:320)
> at
> com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2606)
> at com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:840)
> 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)
> Exception in thread "AWT-EventQueue-0"
> java.lang.NullPointerException
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> 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)
> Exception in thread "AWT-EventQueue-0"
> java.lang.NullPointerException
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> 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)

Subject: "figure properties" Java exception on Linux

From: Nicolas

Date: 31 May, 2013 11:21:14

Message: 31 of 34

Same here: Ubuntu, matlab 2013a

And besides that also matlab crashed if I try to edit the figures... (crashing the whole system)


adding a container to a container on a different GraphicsDevice
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.widgets.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.widgets.desk.DTDocumentContainer.add(DTDocumentContainer.java:379)
at com.mathworks.widgets.desk.DTGroupFrame.add(DTGroupFrame.java:251)
at com.mathworks.widgets.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:493)
at com.mathworks.mde.desk.MLMultipleClientFrame.addClient(MLMultipleClientFrame.java:57)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6485)
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.widgets.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7601)
at $Proxy0.setClientShowing(Unknown Source)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:6235)
at com.mathworks.widgets.desk.Desktop.showClientHelper(Desktop.java:1085)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:1061)
at com.mathworks.mde.desk.MLDesktop.showClient(MLDesktop.java:1144)
at com.mathworks.hg.peer.FigureClientProxy$ShowEnabledHandler.showClient(FigureClientProxy.java:1078)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:543)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:526)
at com.mathworks.hg.peer.FigureMediator.showClient(FigureMediator.java:152)
at com.mathworks.hg.peer.FigurePeer.show(FigurePeer.java:1929)
at com.mathworks.hg.peer.FigurePeer.doSetFigureVisible(FigurePeer.java:2712)
at com.mathworks.hg.peer.FigurePeer$19.run(FigurePeer.java:1985)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:262)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runThese(HGPeerQueue.java:290)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:320)
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)
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.widgets.desk.DTMaximizedPane.add(DTMaximizedPane.java:50)
at com.mathworks.widgets.desk.DTDocumentContainer.add(DTDocumentContainer.java:379)
at com.mathworks.widgets.desk.DTGroupFrame.add(DTGroupFrame.java:251)
at com.mathworks.widgets.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:493)
at com.mathworks.mde.desk.MLMultipleClientFrame.addClient(MLMultipleClientFrame.java:57)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6485)
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.widgets.desk.Desktop$DeferredFacadeProxy.invoke(Desktop.java:7601)
at $Proxy0.setClientShowing(Unknown Source)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:6235)
at com.mathworks.widgets.desk.Desktop.showClientHelper(Desktop.java:1085)
at com.mathworks.widgets.desk.Desktop.showClient(Desktop.java:1061)
at com.mathworks.mde.desk.MLDesktop.showClient(MLDesktop.java:1144)
at com.mathworks.hg.peer.FigureClientProxy$ShowEnabledHandler.showClient(FigureClientProxy.java:1078)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:543)
at com.mathworks.hg.peer.FigureClientProxy.showClient(FigureClientProxy.java:526)
at com.mathworks.hg.peer.FigureMediator.showClient(FigureMediator.java:152)
at com.mathworks.hg.peer.FigurePeer.show(FigurePeer.java:1929)
at com.mathworks.hg.peer.FigurePeer.doSetFigureVisible(FigurePeer.java:2712)
at com.mathworks.hg.peer.FigurePeer$19.run(FigurePeer.java:1985)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runit(HGPeerQueue.java:262)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.runThese(HGPeerQueue.java:290)
at com.mathworks.hg.util.HGPeerQueue$HGPeerRunnablesRunner.run(HGPeerQueue.java:320)
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)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.widgets.desk.DTMaximizedPane.show(DTMaximizedPane.java:214)
at com.mathworks.widgets.desk.DTMaximizedPane.remove(DTMaximizedPane.java:85)
at com.mathworks.widgets.desk.DTDocumentContainer.remove(DTDocumentContainer.java:440)
at com.mathworks.widgets.desk.DTGroupFrame.remove(DTGroupFrame.java:296)
at com.mathworks.widgets.desk.DTMultipleClientFrame.removeClient(DTMultipleClientFrame.java:577)
at com.mathworks.mde.desk.MLMultipleClientFrame.removeClient(MLMultipleClientFrame.java:52)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6531)
at com.mathworks.widgets.desk.Desktop.setClientShowing(Desktop.java:6246)
at com.mathworks.widgets.desk.Desktop.removeClient(Desktop.java:6197)
at com.mathworks.widgets.desk.DTClient.close(DTClient.java:870)
at com.mathworks.widgets.desk.DTClient.attemptClose(DTClient.java:886)
at com.mathworks.widgets.desk.DTClient$ClientCloseAction.actionPerformed(DTClient.java:1569)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at com.mathworks.mwswing.MJButton.processMouseEvent(MJButton.java:362)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.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)

Subject: "figure properties" Java exception on Linux

From: Steven_Lord

Date: 31 May, 2013 14:01:48

Message: 32 of 34



"Nicolas " <nikkolazo@gmail.com> wrote in message
news:koa13a$njj$1@newscl01ah.mathworks.com...
> Same here: Ubuntu, matlab 2013a
> And besides that also matlab crashed if I try to edit the figures...
> (crashing the whole system)
>
> adding a container to a container on a different GraphicsDevice
> java.lang.IllegalArgumentException: adding a container to a container on a
> different GraphicsDevice

I haven't seen that particular error before, but a little quick Google
searching found this Sun bug report that looks similar:

http://bugs.sun.com/view_bug.do?bug_id=8003398

Does your system have multiple monitors, and the figure window whose
properties you're trying to display is on a different monitor than your
MATLAB desktop?

Please report this to the Technical Support staff with that Sun bug report
URL and the steps you followed to cause this error message to be displayed.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: "figure properties" Java exception on Linux

From: xresende@gmail.com

Date: 23 Aug, 2013 18:11:57

Message: 33 of 34

On Wednesday, October 26, 2011 5:26:14 AM UTC-2, Miguel wrote:
> "LP" wrote in message <ip8780$23n$1@fred.mathworks.com>...
>
> > I can confirm i have a similar problem with docked figures on a dual monitor ubuntu 10.10 with Matlab 2010a
>
> >
>
> > assuming there are no real workarounds for this where additional code is not required?
>
> >
>
> > hope they fix this one....
>
> >
>
> > thanks, lp
>
>
>
> Hi all
>
>
>
> I work with dual monitor with Nvidia card, ubuntu 10.04 64 with Matlab 2010b.
>
>
>
> Today I've found the same problem as described at the beginning of this thread. I was surprised because I've been working with this setup for months and I never suffered any issue like this one.
>
>
>
> After that I've realized that this time I had initialized Matlab directly clicking in the icon, i.e., the standard way to initialize Matlab. I usually work in the console and I launch Matlab with the next command:
>
>
>
> >> matlab -nodesktop -nosplash
>
>
>
> I've checked that even repeating the same steps and commands if I launch Matlab in "nodesktop mode" I can edit figures without problem in a two monitors environment.
>
>
>
> I hope that this information could be useful for somebody
>
>
>
> Regards from La Mancha :)
>
>
>
> Miguel

It worked for me. (finally found a workaround...). Thanks for sharing, Miguel! Blame Mathworks for not giving appropriate attention to this issue!

Subject: "figure properties" Java exception on Linux

From: Soner Ulun

Date: 10 Mar, 2014 08:28:11

Message: 34 of 34

Hi to all,

I also had a similar issue using on ubuntu 12.04 x64 . I solved it by changing the main screen to the one that matlab starts when I run from terminal.

 Before running plot editor make sure that all matlab related windows are inside your main screen.

An alternative way is to cancel one screen and click on the property editor and then activate the second screen.

Bests,
   



"Lin " <shao@msg.ucsf.edu> wrote in message <g02h5q$obq$1@fred.mathworks.com>...
> I'm using Matlab 7.6.0 on Linux (x86). I get a Java
> exception once I click on the Edit|Figure Properties menu
> item in a plot window. Does anybody know why? The older
> versions used to work fine. Thanks!!
>
> 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:48)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.add(DTDocumentContainer.java:361)
> at
> com.mathworks.mwswing.desk.DTGroupFrame.add(DTGroupFrame.java:186)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame.addClient(DTMultipleClientFrame.java:328)
> at
> com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5660)
> at
> com.mathworks.mwswing.desk.Desktop.setClientShowing(Desktop.java:5435)
> at
> com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:5840)
> at
> com.mathworks.mwswing.desk.Desktop.setClientDocked(Desktop.java:1472)
> at
> com.mathworks.hg.peer.FigureClientProxy.setClientWindowStyle(FigureClientProxy.java:680)
> at
> com.mathworks.hg.peer.FigureMediator.setClientWindowStyle(FigureMediator.java:320)
> at
> com.mathworks.hg.peer.FigurePeer.doSetWindowStyle(FigurePeer.java:2606)
> at com.mathworks.hg.peer.FigurePeer$3.run(FigurePeer.java:840)
> 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)
> Exception in thread "AWT-EventQueue-0"
> java.lang.NullPointerException
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> 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)
> Exception in thread "AWT-EventQueue-0"
> java.lang.NullPointerException
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1204)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1173)
> at
> com.mathworks.mwswing.desk.DTDocumentContainer.setSelected(DTDocumentContainer.java:1167)
> at
> com.mathworks.mwswing.desk.DTMultipleClientFrame$LocalWindowListener$2.run(DTMultipleClientFrame.java:2283)
> 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)

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us