f



Matlab GUIDE stability issue

Has others seen this problem? I am using Matlab 2010a, on windows.

I am making a GUI using GUIDE. I noticed that after about 20 minutes or so
of making many changes to the GUI, i.e. moving things around, resizing,
etc..., then GUIDE would start becoming slow in response and very shortly
after that Matlab and GUIDE would freeze, and I see the CPU running max
for Matlab, and see messages likes these on the console:

I have to terminate the session, kill Matlab, and
I end up losing any changes made to GUI before the last saving.

I make sure I save the GUI every 10 seconds now. But GUIDE seems
to be not a robust software.

--Nasser

-------------------------------------------------
Exception occurred during event dispatching:
java.lang.OutOfMemoryError: Java heap space
	at java.awt.image.DataBufferInt.<init>(Unknown Source)
	at java.awt.image.Raster.createPackedRaster(Unknown Source)
	at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
	at sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
	at sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)
	at sun.awt.image.VolatileSurfaceManager.initialize(Unknown Source)
	at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
	at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
	at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
	at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
	at sun.awt.windows.WComponentPeer.createVolatileImage(Unknown Source)
	at java.awt.Component.createVolatileImage(Unknown Source)
	at java.awt.Component$BltBufferStrategy.createBackBuffers(Unknown Source)
	at java.awt.Component$BltBufferStrategy.<init>(Unknown Source)
	at java.awt.Component$BltSubRegionBufferStrategy.<init>(Unknown Source)
	at java.awt.Component.createBufferStrategy(Unknown Source)
	at java.awt.Window.createBufferStrategy(Unknown Source)
	at javax.swing.BufferStrategyPaintManager$BufferInfo.createBufferStrategy(Unknown Source)
	at javax.swing.BufferStrategyPaintManager$BufferInfo.createBufferStrategy(Unknown Source)
	at javax.swing.BufferStrategyPaintManager$BufferInfo.getBufferStrategy(Unknown Source)
	at javax.swing.BufferStrategyPaintManager.prepare(Unknown Source)
	at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
	at javax.swing.RepaintManager.paint(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at java.awt.Container.paint(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)

Exception occurred during event dispatching:
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-1" java.lang.OutOfMemoryError: Java heap space
Exception occurred during event dispatching:
java.lang.OutOfMemoryError: Java heap space
Exception occurred during event dispatching:
java.lang.OutOfMemoryError: Java heap space
??? Error using ==> drawnow
UIJ_AreThereWindowShowsPending - timeout waiting for window to
show up

Error in ==> msgbox at 412
drawnow

Error in ==> errordlg at 60
handle = msgbox(ErrorStringCell,DlgName,'error',Replace);

Error in ==> guidefunc>showErrorDialog at 3831
h = errordlg(e.getReport(), 'GUIDE');

Error in ==> guidefunc at 161
     showErrorDialog(me ,'Unhandled internal error in
     guidefunc');


--------------------------------------------


0
Nasser
12/27/2010 8:15:56 AM
comp.soft-sys.matlab 211266 articles. 25 followers. lunamoonmoon (257) is leader. Post Follow

21 Replies
1672 Views

Similar Articles

[PageSpeed] 19

I haven't seen those problems with GUIDE.  However every couple of days or so I see Java barf up a bunch of red comments, like you showed, to the command window.  MATLAB usually continues to operate normally though, except for the red error messages.  I usually restart MATLAB though to get rid of them.  I blame it on Java.
0
Image
12/27/2010 3:49:04 PM
On 12/27/2010 7:49 AM, Image Analyst wrote:
> I haven't seen those problems with GUIDE.  However every couple of days or so I see Java barf up a
>  bunch of red comments, like you showed, to the command window.  MATLAB usually continues to
>  operate normally though, except for the red error messages.  I usually restart MATLAB though
>  to get rid of them.  I blame it on Java.

I get these errors a lot using GUIDE.

Here is another example just happened now

http://12000.org/tmp/java_matlab_errors/error.png

Matlab just hangs, and have to shut it down from windows. I lose any
changes made. I do not get chance to save my changes. Matlab 2010a, on
windows 7, 64 bit, 8 GB ram, not other apps running, very fast PC, 4 core,
etc...

You are right to blame it on Java. But a blame should also go to
the decision to use Java in the first place.

Every desktop application that ended using Java, its quality went down
since.
  
Look what happened to Maple GUI since they decided to use Java in the GUI,
starting around version 9, performance and stability went down.

Keep Java on the server side, as far away from user interfaces as possible,
and I have programmed in Java and swing and even AWT for more than 3 years.

--Nasser

0
Nasser
12/29/2010 2:28:12 AM
On 28/12/10 8:28 PM, Nasser M. Abbasi wrote:

> Every desktop application that ended using Java, its quality went down
> since.
>
> Look what happened to Maple GUI since they decided to use Java in the GUI,
> starting around version 9, performance and stability went down.

Maple 5's X interface was astonishingly slow. It is hard to imagine the 
performance being worse than that.
0
Walter
12/29/2010 2:32:34 AM
On 12/28/2010 6:32 PM, Walter Roberson wrote:
> On 28/12/10 8:28 PM, Nasser M. Abbasi wrote:
>
>> Every desktop application that ended using Java, its quality went down
>> since.
>>
>> Look what happened to Maple GUI since they decided to use Java in the GUI,
>> starting around version 9, performance and stability went down.
>

> Maple 5's X interface was astonishingly slow. It is hard to imagine the
> performance being worse than that.

I do not know the Maple5 X interface, I was referening to Maple classical
interface, which did not use Java vs. the so called modern interface,
introduced around version 9, which uses Java. That is the one that was less
than optimal to say the least.

Someone wanted to use Java to make the new Maple interface, and the result
speaks for itself. GUIDE uses Java, and the result speaks for itself as
well.

--Nasser
0
Nasser
12/29/2010 2:47:13 AM
"Nasser M. Abbasi" <nma@12000.org> wrote in message <ife7fm$342$1@speranza.aioe.org>...
> On 12/28/2010 6:32 PM, Walter Roberson wrote:
> > On 28/12/10 8:28 PM, Nasser M. Abbasi wrote:
> >
> >> Every desktop application that ended using Java, its quality went down
> >> since.
> >>
> >> Look what happened to Maple GUI since they decided to use Java in the GUI,
> >> starting around version 9, performance and stability went down.
> >
> 
> > Maple 5's X interface was astonishingly slow. It is hard to imagine the
> > performance being worse than that.
> 
> I do not know the Maple5 X interface, I was referening to Maple classical
> interface, which did not use Java vs. the so called modern interface,
> introduced around version 9, which uses Java. That is the one that was less
> than optimal to say the least.
> 
> Someone wanted to use Java to make the new Maple interface, and the result
> speaks for itself. GUIDE uses Java, and the result speaks for itself as
> well.
> 
> --Nasser

I have the same problem with GUIDE and with any Matlab session that generates lots of 3D plots.  Either Java or Matlab will eventually run out of memory or generate a segmentation fault.  Closing figures, clearing all variables, packing and rehashing seem pointless.   Keeping the figures docked appears to help some, but in general I expect a crash soon if a figure number is higher than 40.  Even if 1-39 have been closed.

After using visual studio to code a user interface in C#, I realized how poor GUIDE is for anything with more than a couple of buttons and a single figure window.  

I quickly gave up on Maple's "modern" standard interface.  It looks nice, but it simply isn't worth the trouble.  The classic interface works fine.

Ken
0
Ken
1/5/2011 5:20:25 PM
Ken Garrard <ken_garrardAT@ncsudot.edu> wrote:
> "Nasser M. Abbasi" <nma@12000.org> wrote in message <ife7fm$342$1@speranza.aioe.org>...
>> On 12/28/2010 6:32 PM, Walter Roberson wrote:
>> > On 28/12/10 8:28 PM, Nasser M. Abbasi wrote:
>> >
>> >> Every desktop application that ended using Java, its quality went down
>> >> since.
>> >>
>> >> Look what happened to Maple GUI since they decided to use Java in the GUI,
>> >> starting around version 9, performance and stability went down.
>> >
>> 
>> > Maple 5's X interface was astonishingly slow. It is hard to imagine the
>> > performance being worse than that.

Vintage computing, Walter!  That must be about the same era as MATLAB
5.3.1, which was the last version available in 64 bit prior to the influx
of Java.  Java let us have a consistent user interface across all of those
platforms we used to have.  Then it let us restart.

[snip]

> 
> I have the same problem with GUIDE and with any Matlab session that
> generates lots of 3D plots.  Either Java or Matlab will eventually run out
> of memory or generate a segmentation fault.  Closing figures, clearing all
> variables, packing and rehashing seem pointless.   Keeping the figures
> docked appears to help some, but in general I expect a crash soon if a
> figure number is higher than 40.  Even if 1-39 have been closed.

That sounds like a bug which you can replicate.  Contact TMW technical
support and let them know how to break MATLAB.

> 
> After using visual studio to code a user interface in C#, I realized how
> poor GUIDE is for anything with more than a couple of buttons and a single
> figure window.  

If you want a user interface in a hurry, GUIDE is fine.  If you want to
build something as part of an ongoing project, robust across platforms and
versions of MATLAB, scalable, subject to revision control, etc. then code
it by hand using a small library of gui placement functions. 

The same message applies to Nasser as to Ken.  If MATLAB is crashing for
you, raise a support call and have TMW fix the issues.  If you believe Java
is causing these troubles, let TMW know that you would really like them to
continue to offer the -nojvm option.

-- 
Dr Tristram J. Scott               
Energy Consultant                  
0
tristram
1/6/2011 9:18:04 AM
On 06/01/11 3:18 AM, Tristram Scott wrote:
>>> On 12/28/2010 6:32 PM, Walter Roberson wrote:

>>>> Maple 5's X interface was astonishingly slow. It is hard to imagine the
>>>> performance being worse than that.

> Vintage computing, Walter!  That must be about the same era as MATLAB
> 5.3.1, which was the last version available in 64 bit prior to the influx
> of Java.

Older. The classic Maple V release was Maple V Release 4, in 1996, 
whereas Matlab 5.3.1 was 1999.

 > Java let us have a consistent user interface across all of those
 > platforms we used to have.  Then it let us restart.

I do not understand the bit about restarting?
0
Walter
1/6/2011 11:50:30 AM
Walter Roberson <roberson@hushmail.com> wrote:
> On 06/01/11 3:18 AM, Tristram Scott wrote:
>>>> On 12/28/2010 6:32 PM, Walter Roberson wrote:
> 
>>>>> Maple 5's X interface was astonishingly slow. It is hard to imagine the
>>>>> performance being worse than that.
> 
>> Vintage computing, Walter!  That must be about the same era as MATLAB
>> 5.3.1, which was the last version available in 64 bit prior to the influx
>> of Java.
> 
> Older. The classic Maple V release was Maple V Release 4, in 1996, 
> whereas Matlab 5.3.1 was 1999.

Ah!  Yes, I used that version for a while.

> 
> > Java let us have a consistent user interface across all of those
> > platforms we used to have.  Then it let us restart.
> 
> I do not understand the bit about restarting?

It was a poor attempt at humour on my part.  What we were supposedly given
was consistency in the user interface.  What we got was a requirement to
restart several times an hour after Java related core dumps.


-- 
Dr Tristram J. Scott               
Energy Consultant                  
0
tristram
1/6/2011 3:02:54 PM
I had similar problems.Freezing,giving java related error messages etc.
I saw such errors especially when I use many gui elements on top of each other,sending back and front..
0
engin
1/9/2011 11:32:04 AM
The GUIDE java stability also occurs with me now and then.

It looks like this almost reproduce it:

- Under Windows 7 use Aero theme.
- Start Matlab 2010B (64 bi)t
- Plot something
 >> plot(rand(1,10))
- Go to Windows Control Panel the switch the them to "Windows Classic", then I get a bunch of red error message on the screen:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(Unknown Source)
	at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(Unknown Source)
	at com.sun.java.swing.plaf.windows.WindowsIconFactory$VistaMenuItemCheckIconFactory.getIconWidth(Unknown Source)
	at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$1.createValue(Unknown Source)
	at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPValue.recursiveCreateValue(Unknown Source)
	at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPValue.getXPValue(Unknown Source)
	at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPValue.createValue(Unknown Source)
	at javax.swing.UIDefaults.getFromHashtable(Unknown Source)
	at javax.swing.UIDefaults.get(Unknown Source)
	at javax.swing.MultiUIDefaults.get(Unknown Source)
	at javax.swing.UIManager.get(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.layoutMenuItem(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.paintMenuItem(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.paint(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.update(Unknown Source)
	at javax.swing.JComponent.paintComponent(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JLayeredPane.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paintToOffscreen(Unknown Source)
	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
	at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
	at javax.swing.RepaintManager.paint(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at java.awt.Container.paint(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
	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)

Should I submit a bug report?

Bruno
0
Bruno
1/9/2011 7:21:04 PM
On 1/9/2011 11:21 AM, Bruno Luong wrote:
> The GUIDE java stability also occurs with me now and then.
>
> It looks like this almost reproduce it:
>
> - Under Windows 7 use Aero theme.
> - Start Matlab 2010B (64 bi)t
> - Plot something
>   >>  plot(rand(1,10))
> - Go to Windows Control Panel the switch the them to "Windows Classic", then I get a bunch of
> red error message on the screen:
>


>
> Should I submit a bug report?
>
> Bruno


Yes, please do.

Although I doubt it will make much difference, because
from what I read, there will be a new Matlab graphics
system in Matlab 8 (Hg2), so may be we will a new
graphics, hopefully with no Java, and new GUIDE, which will
be a much better and more improved, and comes
with tabbed panels this time, so that Matlab GUI can finally
join the modern UI world.  (ok, one can always dream).

Currently, this is what I do to minimize GUIDE/Java problems:

Every about 20-30 minutes, I save and close everything,
close Matlab, and restart again. If I use GUIDE more,
the do the above every say 10-15 minutes.

--Nasser
0
Nasser
1/9/2011 11:01:59 PM

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message 
news:igd1r0$ds9$1@fred.mathworks.com...
> The GUIDE java stability also occurs with me now and then.
>
> It looks like this almost reproduce it:
>
> - Under Windows 7 use Aero theme.
> - Start Matlab 2010B (64 bi)t
> - Plot something
> >> plot(rand(1,10))
> - Go to Windows Control Panel the switch the them to "Windows Classic", 
> then I get a bunch of red error message on the screen:

What you're doing is the equivalent of having someone pick up your house 
while you're sleeping and move it twenty miles down the road without your 
knowledge.  You'd certainly be surprised and a bit confused when you woke up 
if that happened (unless you live in a motor home, van, houseboat, or the 
like of course.)

You should not change the Windows theme while MATLAB is open.

*snip*

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlab.wikia.com/wiki/FAQ
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com 

0
Steven_Lord
1/10/2011 3:17:14 PM
"Steven_Lord" <slord@mathworks.com> wrote in message <igf7tq$a4s$1@fred.mathworks.com>...

> 
> What you're doing is the equivalent of having someone pick up your house 
> while you're sleeping and move it twenty miles down the road without your 
> knowledge.  You'd certainly be surprised and a bit confused when you woke up 
> if that happened (unless you live in a motor home, van, houseboat, or the 
> like of course.)
> 
> You should not change the Windows theme while MATLAB is open.
> 
> *snip*
> 

Do users suppose to know that?

Bruno
0
Bruno
1/10/2011 3:40:05 PM
On 10/01/11 9:40 AM, Bruno Luong wrote:
> "Steven_Lord" <slord@mathworks.com> wrote in message
> <igf7tq$a4s$1@fred.mathworks.com>...
>
>>
>> What you're doing is the equivalent of having someone pick up your
>> house while you're sleeping and move it twenty miles down the road
>> without your knowledge. You'd certainly be surprised and a bit
>> confused when you woke up if that happened (unless you live in a motor
>> home, van, houseboat, or the like of course.)
>>
>> You should not change the Windows theme while MATLAB is open.
>>
>> *snip*
>>
>
> Do users suppose to know that?

Yes. It's part of the general knowledge of using MS Windows.
0
I
1/10/2011 3:45:55 PM
"Steven_Lord" <slord@mathworks.com> wrote in message <igf7tq$a4s$1@fred.mathworks.com>...
> 
> 
> "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message 
> news:igd1r0$ds9$1@fred.mathworks.com...
> > The GUIDE java stability also occurs with me now and then.
> >
> > It looks like this almost reproduce it:
> >
> > - Under Windows 7 use Aero theme.
> > - Start Matlab 2010B (64 bi)t
> > - Plot something
> > >> plot(rand(1,10))
> > - Go to Windows Control Panel the switch the them to "Windows Classic", 
> > then I get a bunch of red error message on the screen:
> 
> What you're doing is the equivalent of having someone pick up your house 
> while you're sleeping and move it twenty miles down the road without your 
> knowledge.  You'd certainly be surprised and a bit confused when you woke up 
> if that happened (unless you live in a motor home, van, houseboat, or the 
> like of course.)
> 
> You should not change the Windows theme while MATLAB is open.
> 
> *snip*

The same general thing happens if you switch monitors as well, or add additional ones, while a Matlab session is open: a slew of java-related errors pop up.  Although generally no harm is done, and I can continue to use the same Matlab session.  I wouldn't expect this change to cause any problems, but then Matlab has always been much more finicky about display changes than any other program I work with.

I can also vouch for the java issues when dealing with a large number of figures.  In my experience, they don't need to include any 3D elements, just a large number of graphics elements.  Even if I only keep a handful of figures open at any given time, the effect of generating the graphics seems to accumulate in java memory somewhere, eventually leading to java heap space errors.  It doesn't happen nearly as often in 2010a as it used to in the 2008 releases (at least, I think it was 2008; I backtracked to 2007b almost immediately due to the problems I encountered when I first upgraded away from that one).  I find that if I turn off as many little visual helper tools as possible (no data tips or integrated mlint stuff in the editor) and increase the java heap space as high as possible, I can spew out a few hundred complicated figures before encountering java crashes.  However, it's almost 
impossible to quantify exactly how many graphics elements it takes to cause a crash; I just know it's low enough to be mildly annoying but no longer so low that it sends me scurrying back to 2007b. 
0
Kelly
1/10/2011 4:53:05 PM
I am too much me <roberson@hushmail.com> wrote in message <UQFWo.17815$rG3.7914@newsfe09.iad>...
> general knowledge of using MS Windows.

What is that exactly? An application may crash when changing a theme?

I made a small experiment: I open Chrome, PDF reader, Firefox, Thundebird, Words, Matlab, then change the theme. Guess which is the only one of the above that crashes?

Bruno
0
Bruno
1/10/2011 7:18:05 PM
On 11-01-10 01:18 PM, Bruno Luong wrote:
> I am too much me <roberson@hushmail.com> wrote in message
> <UQFWo.17815$rG3.7914@newsfe09.iad>...
>> general knowledge of using MS Windows.
>
> What is that exactly? An application may crash when changing a theme?

That any non-Microsoft product may malfunction when using Aero theme.

For that matter, that any non-Microsoft product may malfunction without 
notice. (Personally I might have said that MS Windows or any program running 
on it may malfunction without notice, but we have Bill Gates personal 
assurance that there are no significant bugs in any Microsoft products.)

http://www.cantrip.org/nobugs.html
0
I
1/10/2011 7:33:43 PM
I am so much of me <roberson@hushmail.com> wrote in message <igfn10$g4p$1@nrc-news.nrc.ca>...
> On 11-01-10 01:18 PM, Bruno Luong wrote:
> > I am too much me <roberson@hushmail.com> wrote in message
> > <UQFWo.17815$rG3.7914@newsfe09.iad>...
> >> general knowledge of using MS Windows.
> >
> > What is that exactly? An application may crash when changing a theme?
> 
> That any non-Microsoft product may malfunction when using Aero theme.
> 

Recent Matlab version works rather well on AERO theme, excepted when the theme is switched.

The version of Matlab I test is designed for windows with and without Aero theme.

I don't know anything about Java and theme. Honest question: How do you know the problem is lying on MS (Windows), rather than Sun (Java), or TMW (Matlab)?

To me it looks like a system/programation standard is not fully respected. But I could be wrong about it.

Bruno
0
Bruno
1/10/2011 7:55:04 PM
I am so much of me <roberson@hushmail.com> wrote in message <igfn10$g4p$1@nrc-news.nrc.ca>...
> On 11-01-10 01:18 PM, Bruno Luong wrote:
> > I am too much me <roberson@hushmail.com> wrote in message
> > <UQFWo.17815$rG3.7914@newsfe09.iad>...
> >> general knowledge of using MS Windows.
> >
> > What is that exactly? An application may crash when changing a theme?
> 
> That any non-Microsoft product may malfunction when using Aero theme.
> 
> For that matter, that any non-Microsoft product may malfunction without 
> notice. (Personally I might have said that MS Windows or any program running 
> on it may malfunction without notice, but we have Bill Gates personal 
> assurance that there are no significant bugs in any Microsoft products.)
> 
> http://www.cantrip.org/nobugs.html

The mentioned Java problem with GUIDE exists (AFAIK) since R13 and if anything changed since is that it became worst in more recent versions. 
No need to do any theme changes. Just use it and wait until Matlab chokes in Java errors.

Java will die one day. Let's hope that day is close.

J. Luis
0
Joaquim
1/10/2011 8:01:05 PM
Those error messages suggest that the Windows theme change has changed the setting of the Java look and feel.
If so, you should see different results from
javax.swing.UIManager.getLookAndFeel();
before and after the switch.

Try refreshing MATLAB after the switch using 
javax.swing.SwingUtilities.updateComponentTreeUI

The MUtilities on the FEX provide some helper functions

As Steven Lord posted above, switching L&F is a problem for any Java application and not recommended. The reason only MATLAB was affected is that it is probably the only one using Java Swing. Switching to/between themed/skinned L&Fs is a particular problem.
I'm not sure about the house analogy but if you fit a Morris Minor engine into a Porsche you may sometimes get performance issues.
0
Malcolm
1/10/2011 9:37:04 PM
Just out of curiosity, for those of you proposing that TMW not use Java, what should be used instead?  Why is this sort of issue inherent to Java?
0
Andy
1/10/2011 9:47:04 PM
Reply:

Similar Artilces:

How does matlab work in this issue ? a matlab principle question
Hello everyone I have an ODE solver computing the temperature every month during a year this script will do the job for j=1:12 [t,T]= ode45(@monthly_solver,tspan,Tic,[],monthly_heat(j),h2(j),); end where Tic is the intial temperature and J loops represents the months Now the question is about matlab principle and how does it work with the initial condition? i mean as the last temperature of the 1st month is the begining temperture of the 2nd month and the last temp. of the 2nd month is the begining temp. of the 3rd month and so on. Do i need to write a command to do ...

matlab compiler, matlab path, expanded ctf issues
Dear All: If anyone has used the matlab compiler I would appreciate some help. I make a very simple test case test.m: function test fprintf('Hello world\n'); test2 And test2.m: function test2 fprintf('2Hello world\n'); I do mcc -m test Run it runs beautifully. Now, same thing, move test2.m somewhere on matlab path. test still runs in matlab. I do mcc -m test, and get error: misha@misha-d630:~/Montague Lab/code$ ./test This MATLAB file does not have proper version information and may be corrupt. The file '/home/misha/Montague/matlab/test2.m' is not in the application's expanded CTF archive at '/home/misha/.mcr_cache_v78/test_76D3A49E2BAD9671283F48CFD4C9C63F'. This is typically caused by calls to ADDPATH in your startup.m or matlabrc.m files. Please see the compiler documentation and use the ISDEPLOYED function to ensure ADDPATH commands are not executed by deployed applications. ??? An error occurred while trying to determine whether "test2" is a function name. Please help. Thank you Misha CyberFrog <domlee55@hotmail.com> wrote in message <299841556.55624.1263297568019.JavaMail.root@gallium.mathforum.org>... > Hi Misha, > I have just come across this same problem, did you ever figure this out in the end? > > Thanks Sorry, no luck :( Please let me know if you figure out! Misha Hi Misha, I have just come across this same problem, did you ever figure this out in the end? Than...

issues involved in moving from MATLAB 5.3 (Release 11.0) to MATLAB 6.0.
Hi, I,ve found the reason for a problem I had (and posted last week), passing from M 5.3 to 6. In "Programming and Data Types Issues" I found that: "Attempting to assign a structure to a field of another structure now results in an error if both of the following conditions are true: The field being assigned to has been initialized to an empty matrix. The field being assigned to is referenced in the assignment using an array index. For example, mystruct.emptyfield = []; mystruct.emptyfield(1) = struct('f1', 25); ??? Conversion to double from struct is not possible. Th...

parallel matlab
Hi all, I'm going to work on a project involving a parallel version of MATLAB - I'm aware of various efforts like MATLAB-*P and so on Right now I need to read up on some material regarding MATLAB internals eg: How are the ATLAS(or is it BLAS) routines called in MATLAB? How does MATLAB's C code store information in memory, cache'ing etc? How is one to get at those? Do you know of any suitable reference(s)/resource(s)? Thank you very much, Aravind ...

Calling Compiled MATLAB from MATLAB
Hello everyone, How do I compile MATLAB M files into a form that can then be called from within the MATLAB interpreter? A roundabout way would seem to be to (somehow) Turn the matlab code into C (I think mcc does this), then compile this C code into MEX format and call that. Is there an easier way? I have the MATLAB compiler, so I just need to know what to do with it to get this to work. Thanks in advance, Sina sina.tootoonian wrote: > > > Hello everyone, > > How do I compile MATLAB M files into a form that can then be called > from within the MATLAB interpreter? A roundabout way would seem to > be > to (somehow) Turn the matlab code into C (I think mcc does this), > then > compile this C code into MEX format and call that. Is there an > easier > way? I have the MATLAB compiler, so I just need to know what to do > with > it to get this to work. > > Thanks in advance, > > Sina > > HELP MEX > HELP MEX Or, better, HELP MCC help pcode pseudo code is useful to obfuscate code - protect algorithms, yet still run at full speed and be distributable to other matlab users sina.tootoonian wrote: > > > Hello everyone, > > How do I compile MATLAB M files into a form that can then be called > from within the MATLAB interpreter? A roundabout way would seem to > be > to (somehow) Turn the matlab code into C (I think mcc does this), > then > compile this C code into MEX format and call that...

Matlab plots outside Matlab
I'm making an end-user application where I would like to use Matlab functionality both for calculation and plotting. Matlabs GUI builder guide does not satisfy my needs (no support for f.ex. internal frames and other nescessities), so I'm planning to compile my Matlab code and use other API (Java, QT or something) for GUI. My problem is then, that I loose access to the neat plotting commands availible under matlab GUI... Is there a way of integrating Matlabs plot functionality into another GUI system? - has it been done? - I appreciate any response! - P�l Berge ...

Matlab
Hello , I'm a new user in Matlab. So should you advise matlab notes , documentation please ? <azatserver113@gmail.com> wrote in message news:7b4e75e2-40c6-43bb-acc6-2553123ba649@googlegroups.com... > Hello , > > I'm a new user in Matlab. So should you advise matlab notes , > documentation please ? > At the MATLAB command prompt type this command: doc This will show the documentation included as part of your installation. I recommend reading through the Getting Started section of the MATLAB documentation first, and executing the examp...

matlab
any one please can help me sploving the following question 1________Given the causal system y[n] =3D 0.9y[n-1] + x[n], find H(z) and sketch the pole-zero plot. See the functions roots.m and zplane.m. 2___ Plot the magnitude and phase of H(z) on the frequency axis from 0 =E2=80=93 =EF=81=B0, or normalized frequency 0 - 1, and label the graphs. S= ee the freqz.m command. hani_al_yazidi@hotmail.com wrote: > any one please can help me sploving the following question > > > 1________Given the causal system > > y[n] = 0.9y[n-1] + x[n], > > find H(z) and sketch the pole-zero plot. See the functions roots.m and > zplane.m. > > 2___ Plot the magnitude and phase of H(z) on the frequency axis from 0 > – , or normalized frequency 0 - 1, and label the graphs. See the > freqz.m command. It looks like homework. State what you tried and what error messages you got and someone who knows Matlab will probably help. We try not to do homework here, but (like gods) we do help those who help themselves. Jerry -- Engineering is the art of making what you want from things you can get. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯&...

can Matlab support 32-bit matlab version scripts on 64-bit version of matlab
can Matlab support 32-bit matlab version scripts on 64-bit version of matlab in windows platform?.if yes , how is the performance better ? please do answer this question thank u "Gangamma " <gangvsng@gmail.com> wrote in message <hvmr7h$sn0$1@fred.mathworks.com>... > can Matlab support 32-bit matlab version scripts on 64-bit version of matlab in windows platform?.if yes , how is the performance better ? Yes, Matlab program written in 32/64 bits are compatible accepted MEX file. 64-bit version can handle larger array but does *NOT* improve speed. Br...

can Matlab support 32-bit matlab version scripts on 64-bit version of matlab #2
can Matlab support 32-bit matlab version scripts on 64-bit version of matlab in windows platform?.if yes , how is the performance better ? please do answer this question thank u ...

MATLAB Daemon
Hi! Is it posible to make a Daemon in MATLAB so that i can access a shared memory between MATLAB and .NET? I ask this because every method i've tryied to call MATLAB functions from .NET are really slow, mostly the call process (because i call the function about 300.000-1.000.000 times in a small time lapse. I thought that using a Daemon using shared memory between my .NET app and MATLAB would make that performance bottleneck almost dissapear. Any other ideas are really appreciated. By the way, is it posible to open a socket in MATLAB? That would be another possible solution, less performa...

Matlab R2006b compatability with Matlab R14?
I am trying to execute some code (a mixture of C++ and Matlab) that was delivered to me. The Matlab code was originally developed under Matlab R14. I have Matlab R2006b installed on my system. When I attempt to execute the program, I get the following message: I18N Runtime warning: Missing ICU data file detected while processing $(MATLAB)/bin/$(ARCH). Hint: Check for a misconfigured environment or installation. When I look in the referenced directory, there does appear to be an ICU related .dat file. Any ideas as to what could be causing this runtime warning? Thanks. ...

Matlab compiler for Matlab 5.2
I'm looking for matlab compiler for matlab 5.2 for Mac computers. I wasn't able to find anywhere because the Mathworks doesn't produce it. Do you know were I may find it? Thanks ...

Matlab Engine with Matlab Runtime Component ?
Hi, I have a c++ application which uses Matlab engine to save data for further use with Matlab. I need to distribute the application to users that do not have Matlab. Is there a way tp use Matlab Engine with Matlab Runtime Component ? How should I change the compilation to do it ? Thanks, Ofra ...

Matlab 6.5 to matlab 7
hi, i want to upgrade my Matlab 6.5 to Matlab7, will it cause any effects to the M-files that i saved before? Or do I need to uninstall the Matlab 6.5 first before installing the Matlab 7? regards, blur On Fri, 25 Feb 2005 13:03:13 +0000, Blur wrote: > hi, > i want to upgrade my Matlab 6.5 to Matlab7, will it cause any effects > to the M-files that i saved before? See http://www.mathworks.com/access/helpdesk/help/techdoc/rn/r14sp1_a.html for information on changes to the Matlab programming language that may affect old m-files. For the most part the changes are minor, and most ...

Matlab comiler and simple matlab function
I am trying to create an exe from a matlab function which doubles the number you give it. matlab function: test.m function [output] = test (number) %return double the input number output = 2*number; disp(output); run matlab compiler at command line with: mcc -mv test.m with the resulting exe: test.exe However when I run it at DOS prompt: test 1 I am returned a value of 98. I thought that maybe this was some octal description of the output, but 98 oct is not 2 decimal. Some other results it returned: C:\Documents and Settings\alex\Desktop\lighttrans\Frank Work \test...

MATLAB 6 to MATLAB 7 changes
I am looking for information here on the MathWorks website about the changes between MATLAB 6 and MATLAB 7. Specifically, I am looking for information about changes in the handling of .mat files. For example if I have a mat-file: example.mat located in the MATLAB current directory. In MATLAB 7 I can load this data-file into the MATLAB workspace with: >> load example And it loads fine. If I type the above load command in MATLAB 6 I get and error. Is there anything that provides the technical information for this? Thanks Dave Dave wrote: > I am looking for information here on t...

shutdown matlab.exe when matlab is not in use
Hi, I've noticed everytime I start my computer, matlab.exe starts automatically and consumes a considerable amount of memory space which slows down my computer. Is there an option to prevent this process from starting automatically each time my computer starts. I have Windows XP operating system. I have matlab 6.5. Thanks. Fenisol3 puffy_blake wrote: > Hi, > I've noticed everytime I start my computer, matlab.exe starts automatically > and consumes a considerable amount of memory space which slows down my > computer. Is there an option to prevent this process from starti...

Writing a Matlab add-on in a Matlab clone?
What is the best Matlab clone and is it good enough to write Matlab software in? I'd like to use one of these free clones to start writing Matlab add-ons. I am aware of Scilab and GNU Octave. The former seems to be more popular. -- Dr Jon D Harrop, Flying Frog Consultancy The F#.NET Journal http://www.ffconsultancy.com/products/fsharp_journal/?usenet Jon Harrop wrote: > > > > What is the best Matlab clone and is it good enough to write Matlab > software > in? > > I'd like to use one of these free clones to start writing Matlab > add-ons. I > am aware ...

opening matlab figures in older version of matlab
hey, im using matlab 6 to open figures and I'm getting the error: "error using ==> open Unable to read MAT file C:\figs\7b.fig See FILEFORMATS for a list of known file types and the functions used to read them." i think its because I may have made the figures in matlab 7 (but im not 100% sure). is this error typical of a version mismatch of that kind? is there a way to modify the figure so that an older version of matlab can open it? matlabnoob wrote: > > > hey, > im using matlab 6 to open figures and I'm getting the error: > > "error using ==>...

Do MATLAB Component Runtime come with Matlab Engine?
Hi, I have a MATLAB Component Runtime installation for Matlab v7.2. 1) I want to know if this installation contains Matlab Engine? 2) Or do I need the complete package that contains Matlab IDE also. 3) In this installation it does not have Matlab.exe. 4) Now I want to use API calls available in Matlab to call functions COHERE used to find Coherence and TFE to calculate Transfer function are needed. These functions are available in the MATLAB SP toolbox) The operations required are: 1) I have to call and/or initialize MATLAB from windows form created using C#. 2) Then pass the two array...

Inside the MATLAB Desktop Blog on MATLAB Central
Hello, The MATLAB Desktop team is joining the MATLAB blog community and recently introduced the "Inside the MATLAB Desktop" blog. The entire Desktop development team will be contributing to the content of this blog to give you information about features that you may not have found in the product and productivity tips. We also will introduce new features as they are released. The blog can be found over on MATLAB Central or at the following link: http://blogs.mathworks.com/desktop/ For more information about who we are and what the "Desktop team" works on, check out our first entry that I posted last week (it even has a group picture of us): http://blogs.mathworks.com/desktop/category/intro/ Also, take a look at our second entry, just posted by Christina, about moving between functions in the Editor. http://blogs.mathworks.com/desktop/2007/03/23/moving-between-functions-within-a-file/ Thanks and let us know what you think! Kristin -------------------------------------- Kristin Thomas Software Engineer The MathWorks, Inc. kthomas@mathworks.com -------------------------------------- ...

Convery .Net Array to MatLab Array in MatLab
NET.convertArray will convert a numeric MATLAB array to .NET array. How do I convert a .Net Array back to a matLab Array? >> class(vector_MatLab) ans = double >> class(vector_DOTNET) ans = System.Double[] These two should be equal and interchangeable... ...

Call a Matlab function from Java running in matlab.
Hi guys. I really apologize for asking this question, since I'm sure it is either basic or not possible, but I have been reading through the documentation and can't seem to figure this out, since the examples look like they just send and receive variables from the Java methods. Could anyone give me a short example of how to call a method from a Java object that causes some sort of action to be performed in MATLAB? For example, I would like to: 1) make a new object of MyClass from MATLAB called MyObject. 2) run MyObject.DoSomethingInMatlab() 3) have a statement in DoSomethingInMatlab...

Web resources about - Matlab GUIDE stability issue - comp.soft-sys.matlab

European Stability Mechanism - Wikipedia, the free encyclopedia
... with a maximum lending capacity of €500 billion. It will replace the two existing temporary EU funding programmes: European Financial Stability ...

F8: Mark Zuckerberg Stresses Platform Stability, Users’ Control Of Data, Gap Between Mobile Platforms ...
... global developer conference in San Francisco Wednesday with a keynote address during which he focused on steps being taken to ensure the stability ...

Facebook Improving Chat Stability, Asking Users to Upgrade from IE6 by September 15
... sharing exact usage numbers). But the main news is this: Chat has been getting some technical upgrades intended to resolve long-standing stability ...

Using Camera Strap for Stability - Flickr - Photo Sharing!
This picture shows how the strap goes over my right shoulder (not visible) and comes under my left arm. I can then use my forearm to keep tension ...

Paul Ryan on the need to focus on price stability - YouTube
I've never seen a country devalue its way to prosperity but it's a quick fix at the expense of the long term and the medium term. There's nothing ...

43% Confident In Stability of U.S. Banking Industry
Confidence in the stability of the U.S. banking system has fallen to its lowest level in over a year of monthly tracking. A new Rasmussen Reports ...

Trader profile: Indian markets offer stability
Krishnan Ramachandran, chief executive of Barjeel Geojit Securities, says Indian equity and debt markets are likely to outperform their global ...

Bishop: Stability in South China Sea matters
Australia is not taking a position on competing claims to the South China Sea but stability in the area really matters to Australia says Foreign ...

Stability of South China Sea at risk: Abbott
Tony Abbott says Australia has quietly increased air and naval patrols in the disputed South China Sea.

Coaching stability in A-League gives cause for pride
Stability in the A-League coaching ranks is excellent to see.

Resources last updated: 3/28/2016 5:44:47 AM