Error when compiling an ID with a super-value node

Create issue
Issue #417 new
Francisco Javier Díez created an issue

OpenMarkov returns an error when compiling this ID.

Comments (6)

  1. James Penn

    Hi team, I’m seeing a similar issue when working with value nodes. Super value nodes silently error, regardless of the potential I use. I’m using 0.3.2, is there an old branch version where this feature works? If so, where I can I download it?

  2. Manuel Luque

    Hi James. Thank you very much for your work by finding this error and submitting it. Please, James, could you send me the network that you’re using? (You can attach it here or just send me it by email to mluque@dia.uned.es). I’m going to see what has happened.

  3. James Penn

    Hi Manuel,

    Thanks for getting back to me. Attached is an example of the kind of network that is giving an error message when I put into Inference mode in 0.3.2. Creating a similar diagram works on the 0.1.6 jar.

    If you delete U2 the rest of the network functions, it appears to be an issue with the sum super node.

    Trace from Message Window below

    Inference took 33 milliseconds.
    java.lang.NullPointerException
        at org.openmarkov.gui.window.edition.EditorPanel.paintInferenceResultsUtilityNode(EditorPanel.java:1936)
        at org.openmarkov.gui.window.edition.EditorPanel.paintInferenceResults(EditorPanel.java:1914)
        at org.openmarkov.gui.window.edition.EditorPanel.doPropagation(EditorPanel.java:1834)
        at org.openmarkov.gui.window.edition.EditorPanel.updateIndividualProbabilitiesAndUtilities(EditorPanel.java:1535)
        at org.openmarkov.gui.window.edition.NetworkPanel.updateIndividualProbabilitiesAndUtilities(NetworkPanel.java:443)
        at org.openmarkov.gui.window.MainPanelListenerAssistant.setNewWorkingMode(MainPanelListenerAssistant.java:1388)
        at org.openmarkov.gui.window.MainPanelListenerAssistant.actionPerformed(MainPanelListenerAssistant.java:224)
        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.JToggleButton$ToggleButtonModel.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 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.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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)
    

  4. Francisco Javier Díez reporter

    Dear James,

    I apologize we didn’t reply sooner. A member of our team is in charge of fixing this, but it is taking much more time than expected. However, it is likely that you don’t need supervalue nodes. For example, in the ID you attached, node U2 is not necessary because if you remove it, OpenMarkov will assume the utility is the sum of U and U1.

    If this does not solve your problem, please ask here or email me at fjdiez@dia.uned.es.

    Best wishes,

    Javier

  5. Log in to comment