Uploaded image for project: 'Deep Backlog'
  1. Deep Backlog
  2. DB-91

Test SVG export (using the "Snapshot" command) works on all operating systems

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      Currently it seems that the exporting SVG files using the "Snapshot" command doesn't work for Windows computers.

      We should fix this in the near future so that it is working for all operating systems.

        Attachments

          Issue Links

            Activity

            Hide
            mason Mason Meyer (Inactive) added a comment -

            On Windows, a null pointer exception is generated when using the "snapshot" or "snapshotwholeFrame" scripting commands (see below).

            16:19:15.048 INFO com.gene.igbscript.IGBScriptEngine - doSingleAction line: snapshot igbScript.svg
            16:19:15.049 INFO com.gene.igbscript.IGBScriptEngine - Exporting file igbScript.svg in mode: wholeFrame
            16:19:15.272 ERROR com.gene.igbscript.IGBScriptEngine - ImageExport failed
            java.lang.NullPointerException: null
            at com.jidesoft.swing.FastGradientPainter.createGradientTile(Unknown Source) ~[na:na]
            at com.jidesoft.swing.FastGradientPainter.drawGradient(Unknown Source) ~[na:na]
            at com.jidesoft.swing.JideSwingUtilities.fillGradient(Unknown Source) ~[na:na]
            at com.jidesoft.plaf.office2007.Office2007Painter.fillBackground(Unknown Source) ~[na:na]
            at com.jidesoft.status.MemoryStatusBarItem$e_.paintComponent(Unknown Source) ~[na:na]
            at javax.swing.JComponent.printComponent(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paint(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.print(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paintChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.printChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paint(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.print(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paintChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.printChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paint(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.print(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paintChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.printChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paint(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.print(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paintChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.printChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paint(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.print(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paintChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.printChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paint(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JLayeredPane.paint(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.print(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paintChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.printChildren(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.paint(Unknown Source) ~[na:1.8.0_40]
            at javax.swing.JComponent.print(Unknown Source) ~[na:1.8.0_40]
            at java.awt.GraphicsCallback$PrintCallback.run(Unknown Source) ~[na:1.8.0_40]
            at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source) ~[na:1.8.0_40]
            at sun.awt.SunGraphicsCallback.runComponents(Unknown Source) ~[na:1.8.0_40]
            at java.awt.Container.print(Unknown Source) ~[na:1.8.0_40]
            at org.freehep.graphicsio.exportchooser.AbstractExportFileType.exportToFile(AbstractExportFileType.java:253) ~[na:na]
            at org.freehep.graphicsio.exportchooser.AbstractExportFileType.exportToFile(AbstractExportFileType.java:282) ~[na:na]
            at com.lorainelab.image.exporter.HeadLessExport.headlessComponentExport(HeadLessExport.java:72) ~[na:na]
            at com.gene.igbscript.IGBScriptEngine.snapShot(IGBScriptEngine.java:467) [igbScript-8.4.0.jar:na]
            at com.gene.igbscript.IGBScriptEngine.doSingleAction(IGBScriptEngine.java:403) [igbScript-8.4.0.jar:na]
            at com.gene.igbscript.IGBScriptEngine.doActions(IGBScriptEngine.java:213) [igbScript-8.4.0.jar:na]
            at com.gene.igbscript.IGBScriptEngine.eval(IGBScriptEngine.java:112) [igbScript-8.4.0.jar:na]
            at com.gene.igbscript.IGBScriptEngine.eval(IGBScriptEngine.java:132) [igbScript-8.4.0.jar:na]
            at com.affymetrix.igb.swing.script.ScriptManager.runScript(ScriptManager.java:185) [igbSwingExt-8.4.0.jar:na]
            at com.affymetrix.igb.action.RunScriptAction$1.doInBackground(RunScriptAction.java:130) [igb-8.4.0.jar:na]
            at com.affymetrix.igb.action.RunScriptAction$1.doInBackground(RunScriptAction.java:126) [igb-8.4.0.jar:na]
            at javax.swing.SwingWorker$1.call(Unknown Source) [na:1.8.0_40]
            at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_40]
            at javax.swing.SwingWorker.run(Unknown Source) [na:1.8.0_40]
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_40]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_40]
            at java.lang.Thread.run(Unknown Source) [na:1.8.0_40]

            Show
            mason Mason Meyer (Inactive) added a comment - On Windows, a null pointer exception is generated when using the "snapshot" or "snapshotwholeFrame" scripting commands (see below). 16:19:15.048 INFO com.gene.igbscript.IGBScriptEngine - doSingleAction line: snapshot igbScript.svg 16:19:15.049 INFO com.gene.igbscript.IGBScriptEngine - Exporting file igbScript.svg in mode: wholeFrame 16:19:15.272 ERROR com.gene.igbscript.IGBScriptEngine - ImageExport failed java.lang.NullPointerException: null at com.jidesoft.swing.FastGradientPainter.createGradientTile(Unknown Source) ~ [na:na] at com.jidesoft.swing.FastGradientPainter.drawGradient(Unknown Source) ~ [na:na] at com.jidesoft.swing.JideSwingUtilities.fillGradient(Unknown Source) ~ [na:na] at com.jidesoft.plaf.office2007.Office2007Painter.fillBackground(Unknown Source) ~ [na:na] at com.jidesoft.status.MemoryStatusBarItem$e_.paintComponent(Unknown Source) ~ [na:na] at javax.swing.JComponent.printComponent(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paint(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.print(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paintChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.printChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paint(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.print(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paintChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.printChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paint(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.print(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paintChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.printChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paint(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.print(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paintChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.printChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paint(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.print(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paintChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.printChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paint(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JLayeredPane.paint(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.print(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paintChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.printChildren(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.paint(Unknown Source) ~ [na:1.8.0_40] at javax.swing.JComponent.print(Unknown Source) ~ [na:1.8.0_40] at java.awt.GraphicsCallback$PrintCallback.run(Unknown Source) ~ [na:1.8.0_40] at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source) ~ [na:1.8.0_40] at sun.awt.SunGraphicsCallback.runComponents(Unknown Source) ~ [na:1.8.0_40] at java.awt.Container.print(Unknown Source) ~ [na:1.8.0_40] at org.freehep.graphicsio.exportchooser.AbstractExportFileType.exportToFile(AbstractExportFileType.java:253) ~ [na:na] at org.freehep.graphicsio.exportchooser.AbstractExportFileType.exportToFile(AbstractExportFileType.java:282) ~ [na:na] at com.lorainelab.image.exporter.HeadLessExport.headlessComponentExport(HeadLessExport.java:72) ~ [na:na] at com.gene.igbscript.IGBScriptEngine.snapShot(IGBScriptEngine.java:467) [igbScript-8.4.0.jar:na] at com.gene.igbscript.IGBScriptEngine.doSingleAction(IGBScriptEngine.java:403) [igbScript-8.4.0.jar:na] at com.gene.igbscript.IGBScriptEngine.doActions(IGBScriptEngine.java:213) [igbScript-8.4.0.jar:na] at com.gene.igbscript.IGBScriptEngine.eval(IGBScriptEngine.java:112) [igbScript-8.4.0.jar:na] at com.gene.igbscript.IGBScriptEngine.eval(IGBScriptEngine.java:132) [igbScript-8.4.0.jar:na] at com.affymetrix.igb.swing.script.ScriptManager.runScript(ScriptManager.java:185) [igbSwingExt-8.4.0.jar:na] at com.affymetrix.igb.action.RunScriptAction$1.doInBackground(RunScriptAction.java:130) [igb-8.4.0.jar:na] at com.affymetrix.igb.action.RunScriptAction$1.doInBackground(RunScriptAction.java:126) [igb-8.4.0.jar:na] at javax.swing.SwingWorker$1.call(Unknown Source) [na:1.8.0_40] at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.8.0_40] at javax.swing.SwingWorker.run(Unknown Source) [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_40] at java.lang.Thread.run(Unknown Source) [na:1.8.0_40]
            Hide
            mason Mason Meyer (Inactive) added a comment -

            Reassigning to David to determine what changes need to be made.

            Show
            mason Mason Meyer (Inactive) added a comment - Reassigning to David to determine what changes need to be made.
            Hide
            dcnorris David Norris (Inactive) added a comment - - edited

            The issue appears to be related to jidesoft components (see https://www.jidesoft.com/forum/viewtopic.php?f=18&t=6825), and since I'm assuming the other snapshot commands work as expected we should mark this as a will not fix for the moment. We can document this gap in functionality on the wiki as a workaround.

            Show
            dcnorris David Norris (Inactive) added a comment - - edited The issue appears to be related to jidesoft components (see https://www.jidesoft.com/forum/viewtopic.php?f=18&t=6825 ), and since I'm assuming the other snapshot commands work as expected we should mark this as a will not fix for the moment. We can document this gap in functionality on the wiki as a workaround.
            Hide
            dcnorris David Norris (Inactive) added a comment -

            Update documentation

            Show
            dcnorris David Norris (Inactive) added a comment - Update documentation
            Hide
            mason Mason Meyer (Inactive) added a comment -

            Hey David it seems that exporting an image on Windows using the wholeframe option works fine until you try to use the scripting commands for this feature (see screenshot). I wanted to run this by you in case this changed your thoughts on approaching this story.

            Show
            mason Mason Meyer (Inactive) added a comment - Hey David it seems that exporting an image on Windows using the wholeframe option works fine until you try to use the scripting commands for this feature (see screenshot). I wanted to run this by you in case this changed your thoughts on approaching this story.
            Hide
            mason Mason Meyer (Inactive) added a comment -

            I have updated the documentation appropriately. Moving back into the backlog until this can be fixed.

            Show
            mason Mason Meyer (Inactive) added a comment - I have updated the documentation appropriately. Moving back into the backlog until this can be fixed.
            Hide
            nfreese Nowlan Freese added a comment -

            This issue appears to be resolved in IGBF-4081

            Closing ticket

            Show
            nfreese Nowlan Freese added a comment - This issue appears to be resolved in IGBF-4081 Closing ticket

              People

              • Assignee:
                Unassigned
                Reporter:
                mason Mason Meyer (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: