UIDesigner unstable in 10.5 EAP

Hi,

I installed the latest 10.5 EAP yesterday, but I had to revert back to latest 10.0.x release because the UIDesigner is very unstable. Especially adding new components to the form doesn't work most of the time throwing exceptions.

Here is an example of such an exception:

java.lang.ArrayIndexOutOfBoundsException: 5
    at com.intellij.uiDesigner.core.GridLayoutManager.getMinOrPrefSizes(GridLayoutManager.java:650)
    at com.intellij.uiDesigner.core.GridLayoutManager.getMinSizes(GridLayoutManager.java:626)
    at com.intellij.uiDesigner.core.GridLayoutManager.minimumLayoutSize(GridLayoutManager.java:227)
    at java.awt.Container.minimumSize(Container.java:1651)
    at java.awt.Container.getMinimumSize(Container.java:1636)
    at javax.swing.JComponent.getMinimumSize(JComponent.java:1716)
    at com.intellij.uiDesigner.core.Util.getMinimumSize(Util.java:26)
    at com.intellij.uiDesigner.radComponents.RadComponent.getMinimumSize(RadComponent.java:494)
    at com.intellij.uiDesigner.radComponents.RadComponent.revalidate(RadComponent.java:508)
    at com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager.updateConstraints(RadAbstractGridLayoutManager.java:519)
    at com.intellij.uiDesigner.radComponents.RadGridLayoutManager.updateConstraints(RadGridLayoutManager.java:89)
    at com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager$MyPropertyChangeListener.propertyChange(RadAbstractGridLayoutManager.java:531)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
    at com.intellij.uiDesigner.radComponents.RadComponent.firePropertyChanged(RadComponent.java:405)
    at com.intellij.uiDesigner.radComponents.RadComponent.fireConstraintsChanged(RadComponent.java:653)
    at com.intellij.uiDesigner.GridChangeUtil.insertRowOrColumn(GridChangeUtil.java:72)
    at com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager.insertGridCells(RadAbstractGridLayoutManager.java:155)
    at com.intellij.uiDesigner.designSurface.GridInsertLocation.insertGridCells(GridInsertLocation.java:352)
    at com.intellij.uiDesigner.designSurface.GridInsertLocation.processDrop(GridInsertLocation.java:335)
    at com.intellij.uiDesigner.designSurface.InsertComponentProcessor$2.run(InsertComponentProcessor.java:310)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:115)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:91)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:79)
    at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.processComponentInsert(InsertComponentProcessor.java:303)
    at com.intellij.uiDesigner.designSurface.InsertComponentProcessor.processComponentInsert(InsertComponentProcessor.java:267)
    at com.intellij.uiDesigner.designSurface.DesignDropTargetListener.drop(DesignDropTargetListener.java:221)
    at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
    at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:519)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:832)
    at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:756)
    at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
    at java.awt.Component.dispatchEventImpl(Component.java:4487)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4312)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4163)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:661)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:510)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:410)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

regards,
Maarten

2 comments
Comment actions Permalink

The same problem is there with EAP build 106.561 :-(

Is this a known issue? It makes this EAP version unusable for GUI development with the UIDesigner.

0
Comment actions Permalink

Hello Maarten,

This exception has been fixed, and the fix will be included in the next EAP.
Sorry for the inconvenience.

Hi,

I installed the latest 10.5 EAP yesterday, but I had to revert back to
latest 10.0.x release because the UIDesigner is very unstable.
Especially adding new components to the form doesn't work most of the
time throwing exceptions.

Here is an example of such an exception:

java.lang.ArrayIndexOutOfBoundsException: 5
at
com.intellij.uiDesigner.core.GridLayoutManager.getMinOrPrefSizes(GridL
ayoutManager.java:650)
at
com.intellij.uiDesigner.core.GridLayoutManager.getMinSizes(GridLayoutM
anager.java:626)
at
com.intellij.uiDesigner.core.GridLayoutManager.minimumLayoutSize(GridL
ayoutManager.java:227)
at java.awt.Container.minimumSize(Container.java:1651)
at java.awt.Container.getMinimumSize(Container.java:1636)
at javax.swing.JComponent.getMinimumSize(JComponent.java:1716)
at com.intellij.uiDesigner.core.Util.getMinimumSize(Util.java:26)
at
com.intellij.uiDesigner.radComponents.RadComponent.getMinimumSize(RadC
omponent.java:494)
at
com.intellij.uiDesigner.radComponents.RadComponent.revalidate(RadCompo
nent.java:508)
at
com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager.upd
ateConstraints(RadAbstractGridLayoutManager.java:519)
at
com.intellij.uiDesigner.radComponents.RadGridLayoutManager.updateConst
raints(RadGridLayoutManager.java:89)
at
com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager$MyP
ropertyChangeListener.propertyChange(RadAbstractGridLayoutManager.java
:531)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupp
ort.java:339)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupp
ort.java:276)
at
com.intellij.uiDesigner.radComponents.RadComponent.firePropertyChanged
(RadComponent.java:405)
at
com.intellij.uiDesigner.radComponents.RadComponent.fireConstraintsChan
ged(RadComponent.java:653)
at
com.intellij.uiDesigner.GridChangeUtil.insertRowOrColumn(GridChangeUti
l.java:72)
at
com.intellij.uiDesigner.radComponents.RadAbstractGridLayoutManager.ins
ertGridCells(RadAbstractGridLayoutManager.java:155)
at
com.intellij.uiDesigner.designSurface.GridInsertLocation.insertGridCel
ls(GridInsertLocation.java:352)
at
com.intellij.uiDesigner.designSurface.GridInsertLocation.processDrop(G
ridInsertLocation.java:335)
at
com.intellij.uiDesigner.designSurface.InsertComponentProcessor$2.run(I
nsertComponentProcessor.java:310)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(
CommandProcessorImpl.java:115)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(
CommandProcessorImpl.java:91)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(
CommandProcessorImpl.java:79)
at
com.intellij.uiDesigner.designSurface.InsertComponentProcessor.process
ComponentInsert(InsertComponentProcessor.java:303)
at
com.intellij.uiDesigner.designSurface.InsertComponentProcessor.process
ComponentInsert(InsertComponentProcessor.java:267)
at
com.intellij.uiDesigner.designSurface.DesignDropTargetListener.drop(De
signDropTargetListener.java:221)
at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
at
sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetC
ontextPeer.java:519)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent
(SunDropTargetContextPeer.java:832)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Sun
DropTargetContextPeer.java:756)
at
sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
at java.awt.Component.dispatchEventImpl(Component.java:4487)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at
java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4
312)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4163)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:661)
at
com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:510)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:410)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
d.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.java:174)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
regards,
Maarten
---
Original message URL:
http://devnet.jetbrains.net/message/5301202#5301202


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.