Shader nodes editor crashes with my shader

So I decided to try to play with that but it seems it doesn’t like work. :frowning:

The shader itself work in-game.

The editor seems to be working fine with a j3md from scratch (like in the video). The .frag file imports a glsllib. Might that cause the problem?

Anyway, here’s the whole crash trace dump. I’m sure there’s some info relevant to someone, probably @nehon :slight_smile:

If needed I guess I could provide the frag/vert/glsllib. Ask and ye shall receive. :stuck_out_tongue:

[java]
java.lang.IllegalStateException: Cannot instantiate com.jme3.gde.materialdefinition.editor.MatDefEditorlElement
at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.createElement(MultiViewFactory.java:453)
at org.netbeans.core.multiview.MultiViewModel.getElementForDescription(MultiViewModel.java:209)
at org.netbeans.core.multiview.MultiViewModel.getActiveElement(MultiViewModel.java:130)
at org.netbeans.core.multiview.MultiViewModel.getActiveElement(MultiViewModel.java:126)
at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:354)
at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:346)
at org.netbeans.core.multiview.MultiViewPeer$SelectionListener.selectionChanged(MultiViewPeer.java:750)
at org.netbeans.core.multiview.MultiViewModel.fireSelectionChanged(MultiViewModel.java:246)
at org.netbeans.core.multiview.MultiViewModel.setActiveDescription(MultiViewModel.java:118)
at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:296)
at javax.swing.JToggleButton$ToggleButtonModel.setSelected(JToggleButton.java:254)
at javax.swing.ButtonGroup.setSelected(ButtonGroup.java:164)
at org.netbeans.core.multiview.MultiViewModel$BtnGroup.setSelected(MultiViewModel.java:292)
at org.netbeans.core.multiview.TabsComponent$ButtonMouseListener.mousePressed(TabsComponent.java:424)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:280)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
at java.awt.Component.processMouseEvent(Component.java:6502)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:696)
at java.awt.EventQueue$4.run(EventQueue.java:694)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NoSuchMethodException: com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.<init>()
at java.lang.Class.getConstructor0(Class.java:2721)
at java.lang.Class.getConstructor(Class.java:1674)
at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.createElement(MultiViewFactory.java:439)
… 47 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD.createElement(MultiViewFactory.java:436)
… 47 more
Caused by: java.lang.NullPointerException
at com.jme3.gde.materialdefinition.fileStructure.TechniqueBlock.getShaderNodes(TechniqueBlock.java:178)
at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.initData(MatDefEditorlElement.java:494)
at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.initDiagram(MatDefEditorlElement.java:124)
at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.reload(MatDefEditorlElement.java:579)
at com.jme3.gde.materialdefinition.editor.MatDefEditorlElement.<init>(MatDefEditorlElement.java:105)
… 52 more
[/java]

mhhh you mean you have a vert and frag shader in yourdefinition?
Might be the issue…maybe you have no shader nodes at all so the editor crashes :p…I could have checked that… :stuck_out_tongue:
I’ll look into it.

@nehon said: mhhh you mean you have a vert and frag shader in yourdefinition? Might be the issue...maybe you have no shader nodes at all so the editor crashes :p...I could have checked that... :p I'll look into it.

I’m not sure at all how it works internally, so I can’t tell you anything about that. What I can tell you though is that it’s the shader I use to generate the gas giants in Disenthral. They are working nicely, but if I hit “Editor” a monkey gets its brain splattered. :cry: