You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Efrem Mc <ef...@gmail.com> on 2018/04/18 10:11:46 UTC

Re: AssertionError at org.netbeans.api.visual.widget.Widget.addChild

Hi I will try again, I made an attempt to code, this but it also threw an
error, I need to turn on some debugging to see the variable state. I will
send you what I tried.  Also, this feature is also platform dependent, it
does exist on MacOS and maybe neither on Linux. It exist on Windows
platform.  I have verified on Windows and MacOS.

Regards
Efrem Mccrimon


On Sat, Mar 24, 2018, 10:37 AM Efrem Mc <ef...@gmail.com> wrote:

> Hi this may be in duplicate.  I sent this earlier:
>
> Hi Emilian, what about this?  if I commit locally, how do I build
> partial sections?  Or do I need to built the entire package again?
>
> Path relative:
> api.visual\src\org\netbeans\api\visual\widget\Widget.java
>
> Code.....
>
>    public final void addChild (Widget child, Object constraint) {
>    // Add additional test for null before adding the Child node
>    // sem 2018-03-23
>  /*
> Solution 1:
> if (null == child) {  // AssertNull(child)
> // true, it is the last
> assert child != null;
> }
> else {
>                assert child.parentWidget == null;
>      }
>
> OR
>
> Solution 2:
>    assert child != null;
>    assert child.parentWidget == null;
> */
>
>
> Please advise,
>
> Efrem Mccrimon
> efremmc2
>
>
> On Wed, Mar 21, 2018 at 2:07 PM, Matthias Bläsing
> <mb...@doppel-helix.eu> wrote:
> > Hi Efrem,
> >
> > Am Mittwoch, den 21.03.2018, 13:21 -0400 schrieb Efrem Mc:
> >> Hi, yes I can look at.  I downloaded the source code at
> >> http://www-eu.apache.org/dist/incubator/netbeans/incubating-netbeans-
> >> java/incubating-9.0-beta/incubating-netbeans-java-9.0-beta-source.zip
> >>
> >> I am not sure if this is the latest?  If not, can you provide a link.
> >> Please downgrade the Priority to Minor? It stated as Major because it
> >> was on a Main Menu option that everyone can see.
> >
> > the most current source code is available from github:
> >
> > https://github.com/apache/incubator-netbeans
> >
> > and apache:
> >
> > https://gitbox.apache.org/repos/asf?p=incubator-netbeans.git
> >
> > If you have a github account, the easiest way is to fork the code, do
> > your changes and create a Pull Request from these.
> >
> > This might help you:
> >
> >
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74681408#SubmittingPullRequestonApacheNetBeans(incubating)-ContributionGuidelines
> >
> https://cwiki.apache.org/confluence/display/NETBEANS/Development+Environment
> >
> > For the change in priority, you should be able to edit it - it is not
> > directly obvious, but if you hover over the entry, I get the "edit"
> > entry. If that fails, please state so here, then we'll help.
> >
> > Matthias
> >
> >
> >> On Wed, Mar 21, 2018 at 3:13 AM, Emilian Bold
> >> <em...@protonmail.ch> wrote:
> >> > This does not seem to be a 'Major' priority to me.
> >> >
> >> > The assert checks if the node doesn't already have a parent.
> >> >
> >> > I guess the sample should be tweaked.
> >> >
> >> > @Efrem: do you want to look at the code and suggest a patch?
> >> >
> >> > --emi
> >> >
> >> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> >> >
> >> > On 20 March 2018 5:53 AM, Efrem Mc <ef...@gmail.com> wrote:
> >> >
> >> > > Please verify this is bug:
> >> > >
> >> > > AssertionError at org.netbeans.api.visual.widget.Widget.addChild
> >> > >
> >> > > https://issues.apache.org/jira/browse/NETBEANS-488
> >> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
>

Re: AssertionError at org.netbeans.api.visual.widget.Widget.addChild

Posted by Efrem Mc <ef...@gmail.com>.
Hi Dev:

I will be able to check on that system later today,  to see where I
receive the plugin from.

Efrem

On Wed, Apr 18, 2018 at 9:39 AM, Neil C Smith <ne...@apache.org> wrote:
> On Wed, 18 Apr 2018 at 13:46 Efrem Mc <ef...@gmail.com> wrote:
>
>> java.lang.AssertionError
>> at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:218)
>> at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:208)
>> at
>> org.netbeans.modules.graphicclassview.JavaNodeWidget.<init>(JavaNodeWidget.java:127)
>>
>
> Where exactly did you get the Graphics Class View from?  Plugins?
>
> Looking at the recent history of Widget::addChild I think this is caused by
> the added assertion to check it's being called on the EDT (which is line
> 218!).  It looks like that plugin is adding widgets off the EDT?  That's a
> bug in the plugin not the Visual Library then.
>
> Best wishes,
>
> Neil
> --
> Neil C Smith
> Artist & Technologist
> www.neilcsmith.net
>
> Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: AssertionError at org.netbeans.api.visual.widget.Widget.addChild

Posted by Svata Dedic <sv...@gmail.com>.
Strictly speaking, working with VisualLibrary off EDT thread might be 
eventually valid - but then it's your responsibility to properly lock 
between your manipulation thread and the EDT painting which uses the 
same data strucures.

The Graphics Class View does not such locking and I am really not sure 
if such locking is possible: the Visual Library itself registers e.g. 
MouseListeners, ComponentListeners which runs in EDT, traverses widget 
hierarchy and do not allow for any synchronization or locking.

So I think the assert I've added is obtrusive, but correct.

-S.

Dne 18.4.2018 v 15:39 Neil C Smith napsal(a):
> On Wed, 18 Apr 2018 at 13:46 Efrem Mc <ef...@gmail.com> wrote:
> 
>> java.lang.AssertionError
>> at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:218)
>> at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:208)
>> at
>> org.netbeans.modules.graphicclassview.JavaNodeWidget.<init>(JavaNodeWidget.java:127)
>>
> 
> Where exactly did you get the Graphics Class View from?  Plugins?
> 
> Looking at the recent history of Widget::addChild I think this is caused by
> the added assertion to check it's being called on the EDT (which is line
> 218!).  It looks like that plugin is adding widgets off the EDT?  That's a
> bug in the plugin not the Visual Library then.
> 
> Best wishes,
> 
> Neil
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: AssertionError at org.netbeans.api.visual.widget.Widget.addChild

Posted by Neil C Smith <ne...@apache.org>.
On Wed, 18 Apr 2018 at 13:46 Efrem Mc <ef...@gmail.com> wrote:

> java.lang.AssertionError
> at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:218)
> at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:208)
> at
> org.netbeans.modules.graphicclassview.JavaNodeWidget.<init>(JavaNodeWidget.java:127)
>

Where exactly did you get the Graphics Class View from?  Plugins?

Looking at the recent history of Widget::addChild I think this is caused by
the added assertion to check it's being called on the EDT (which is line
218!).  It looks like that plugin is adding widgets off the EDT?  That's a
bug in the plugin not the Visual Library then.

Best wishes,

Neil
-- 
Neil C Smith
Artist & Technologist
www.neilcsmith.net

Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org

Re: AssertionError at org.netbeans.api.visual.widget.Widget.addChild

Posted by Efrem Mc <ef...@gmail.com>.
Hi Dev:

I reported this on
https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-488

I changed the priority to Minor.

Regards,

Efrem

On Wed, Apr 18, 2018 at 8:46 AM, Efrem Mc <ef...@gmail.com> wrote:
> Okay, I am going to look at previous NB 7/8.  I am not sure when it
> was introduced in NB 8.x?  The visual library is something I would
> need to test independently as I think it works.
>
> I need to learn and know how this feature should work.  When I have a
> really simple program created by GUI Builder with a view controls, I
> initiate the popup, select Graphical View,
>
>
> It threw this:
>
> java.lang.AssertionError
> at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:218)
> at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:208)
> at org.netbeans.modules.graphicclassview.JavaNodeWidget.<init>(JavaNodeWidget.java:127)
> at org.netbeans.modules.graphicclassview.JavaScene.createWidget(JavaScene.java:98)
> at org.netbeans.modules.graphicclassview.JavaScene.attachNodeWidget(JavaScene.java:187)
> at org.netbeans.modules.graphicclassview.JavaScene.attachNodeWidget(JavaScene.java:20)
> at org.netbeans.api.visual.graph.GraphPinScene.addNode(GraphPinScene.java:78)
> at org.netbeans.modules.graphicclassview.JavaScene.buildGraph(JavaScene.java:135)
> at org.netbeans.modules.graphicclassview.JavaScene.access$200(JavaScene.java:20)
> at org.netbeans.modules.graphicclassview.JavaScene$CB.done(JavaScene.java:303)
> at org.netbeans.modules.graphicclassview.ModelBuilder$T.run(ModelBuilder.java:58)
> at org.netbeans.modules.graphicclassview.ModelBuilder$T.run(ModelBuilder.java:16)
> at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
> at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
> at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
> at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
> at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
> at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
> at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
> at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
> at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
> at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
> at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
> at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished(RunWhenScanFinishedSupport.java:123)
> at org.netbeans.modules.parsing.api.ParserManager.parseWhenScanFinished(ParserManager.java:107)
> at org.netbeans.api.java.source.JavaSource.runWhenScanFinished(JavaSource.java:627)
> at org.netbeans.modules.graphicclassview.ModelBuilder.analyze(ModelBuilder.java:90)
> at org.netbeans.modules.graphicclassview.JavaScene$Initializer.run(JavaScene.java:390)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
> at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
> at org.netbeans.modules.graphicclassview.JavaScene.init(JavaScene.java:88)
> at org.netbeans.modules.graphicclassview.JavaViewComponent.componentOpened(JavaViewComponent.java:173)
> at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:282)
> at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:1124)
> at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:773)
> at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:329)
> at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1244)
> at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1201)
> at org.openide.windows.TopComponent.open(TopComponent.java:472)
> at org.openide.windows.TopComponent.open(TopComponent.java:452)
> at org.netbeans.modules.graphicclassview.actions.GraphicViewAction.performAction(GraphicViewAction.java:26)
> at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:561)
> at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
> at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
> at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
> at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:558)
> at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
> at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
> at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
> at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
> at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
> at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:980)
> at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1024)
> at java.desktop/java.awt.Component.processMouseEvent(Component.java:6589)
> at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
> at java.desktop/java.awt.Component.processEvent(Component.java:6354)
> at java.desktop/java.awt.Container.processEvent(Container.java:2260)
> at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
> at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
> at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
> at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4906)
> at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
> at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
> at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2304)
> at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
> at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
> at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
> at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
> at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
> at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
> at java.base/java.security.AccessController.doPrivileged(Native Method)
> at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
> at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
> at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
> at java.base/java.security.AccessController.doPrivileged(Native Method)
> at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
> at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
> at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
> at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
> at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
> at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
> at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> [catch] at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
>
>
> I just checked NB 8.2 and the feature is not there so this might be
> new for NB 9.0.  Maybe it was an addin plugin for NB 7/8?
>
> Do you have a working sample?  You should be able to reproduce it.  I
> created a Java App, created a new JFrame Form, added a few controls,
> then tried Graphical View.  I currently have build 406, and I switched
> my default to JDK10, but it does with JDK8 as will.  It is something
> in the code.  I attached a picture.
>
> Please advise,
>
> Efrem McCrimon
>
>
> On Wed, Apr 18, 2018 at 8:11 AM, Neil C Smith <ne...@apache.org> wrote:
>> Hi Efrem,
>>
>> On Wed, 18 Apr 2018, 11:12 Efrem Mc, <ef...@gmail.com> wrote:
>>
>>> Hi I will try again, I made an attempt to code, this but it also threw an
>>> error, I need to turn on some debugging to see the variable state. I will
>>> send you what I tried.  Also, this feature is also platform dependent, it
>>> does exist on MacOS and maybe neither on Linux. It exist on Windows
>>> platform.  I have verified on Windows and MacOS.
>>>
>>
>> Am I missing something here? What's broken in the visual library? It looks
>> like the bug is in the code calling that, and the assertion error is
>> correctly being triggered?
>>
>> Best wishes,
>>
>> Neil
>>
>>> --
>> Neil C Smith
>> Artist & Technologist
>> www.neilcsmith.net
>>
>> Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: AssertionError at org.netbeans.api.visual.widget.Widget.addChild

Posted by Efrem Mc <ef...@gmail.com>.
Okay, I am going to look at previous NB 7/8.  I am not sure when it
was introduced in NB 8.x?  The visual library is something I would
need to test independently as I think it works.

I need to learn and know how this feature should work.  When I have a
really simple program created by GUI Builder with a view controls, I
initiate the popup, select Graphical View,


It threw this:

java.lang.AssertionError
at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:218)
at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:208)
at org.netbeans.modules.graphicclassview.JavaNodeWidget.<init>(JavaNodeWidget.java:127)
at org.netbeans.modules.graphicclassview.JavaScene.createWidget(JavaScene.java:98)
at org.netbeans.modules.graphicclassview.JavaScene.attachNodeWidget(JavaScene.java:187)
at org.netbeans.modules.graphicclassview.JavaScene.attachNodeWidget(JavaScene.java:20)
at org.netbeans.api.visual.graph.GraphPinScene.addNode(GraphPinScene.java:78)
at org.netbeans.modules.graphicclassview.JavaScene.buildGraph(JavaScene.java:135)
at org.netbeans.modules.graphicclassview.JavaScene.access$200(JavaScene.java:20)
at org.netbeans.modules.graphicclassview.JavaScene$CB.done(JavaScene.java:303)
at org.netbeans.modules.graphicclassview.ModelBuilder$T.run(ModelBuilder.java:58)
at org.netbeans.modules.graphicclassview.ModelBuilder$T.run(ModelBuilder.java:16)
at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
at org.netbeans.modules.parsing.impl.RunWhenScanFinishedSupport.runWhenScanFinished(RunWhenScanFinishedSupport.java:123)
at org.netbeans.modules.parsing.api.ParserManager.parseWhenScanFinished(ParserManager.java:107)
at org.netbeans.api.java.source.JavaSource.runWhenScanFinished(JavaSource.java:627)
at org.netbeans.modules.graphicclassview.ModelBuilder.analyze(ModelBuilder.java:90)
at org.netbeans.modules.graphicclassview.JavaScene$Initializer.run(JavaScene.java:390)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
at org.netbeans.modules.graphicclassview.JavaScene.init(JavaScene.java:88)
at org.netbeans.modules.graphicclassview.JavaViewComponent.componentOpened(JavaViewComponent.java:173)
at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:282)
at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:1124)
at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:773)
at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:329)
at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1244)
at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1201)
at org.openide.windows.TopComponent.open(TopComponent.java:472)
at org.openide.windows.TopComponent.open(TopComponent.java:452)
at org.netbeans.modules.graphicclassview.actions.GraphicViewAction.performAction(GraphicViewAction.java:26)
at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:561)
at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:70)
at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:558)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:980)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1024)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6589)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6354)
at java.desktop/java.awt.Container.processEvent(Container.java:2260)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2318)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4906)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2304)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
[catch] at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


I just checked NB 8.2 and the feature is not there so this might be
new for NB 9.0.  Maybe it was an addin plugin for NB 7/8?

Do you have a working sample?  You should be able to reproduce it.  I
created a Java App, created a new JFrame Form, added a few controls,
then tried Graphical View.  I currently have build 406, and I switched
my default to JDK10, but it does with JDK8 as will.  It is something
in the code.  I attached a picture.

Please advise,

Efrem McCrimon


On Wed, Apr 18, 2018 at 8:11 AM, Neil C Smith <ne...@apache.org> wrote:
> Hi Efrem,
>
> On Wed, 18 Apr 2018, 11:12 Efrem Mc, <ef...@gmail.com> wrote:
>
>> Hi I will try again, I made an attempt to code, this but it also threw an
>> error, I need to turn on some debugging to see the variable state. I will
>> send you what I tried.  Also, this feature is also platform dependent, it
>> does exist on MacOS and maybe neither on Linux. It exist on Windows
>> platform.  I have verified on Windows and MacOS.
>>
>
> Am I missing something here? What's broken in the visual library? It looks
> like the bug is in the code calling that, and the assertion error is
> correctly being triggered?
>
> Best wishes,
>
> Neil
>
>> --
> Neil C Smith
> Artist & Technologist
> www.neilcsmith.net
>
> Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org


Re: AssertionError at org.netbeans.api.visual.widget.Widget.addChild

Posted by Neil C Smith <ne...@apache.org>.
Hi Efrem,

On Wed, 18 Apr 2018, 11:12 Efrem Mc, <ef...@gmail.com> wrote:

> Hi I will try again, I made an attempt to code, this but it also threw an
> error, I need to turn on some debugging to see the variable state. I will
> send you what I tried.  Also, this feature is also platform dependent, it
> does exist on MacOS and maybe neither on Linux. It exist on Windows
> platform.  I have verified on Windows and MacOS.
>

Am I missing something here? What's broken in the visual library? It looks
like the bug is in the code calling that, and the assertion error is
correctly being triggered?

Best wishes,

Neil

> --
Neil C Smith
Artist & Technologist
www.neilcsmith.net

Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org