https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362011-05-26T22:30:12ZEcoinformatics RedmineKepler - Bug #5412: saving with an open plot window crasheshttps://projects.ecoinformatics.org/ecoinfo/issues/5412?journal_id=186632011-05-26T22:30:12ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>I checked in a change to ptolemy.plot.Plot, but I can't verify<br />that the problem is fixed in Kepler because Kepler does not build<br />in a fresh tree for me.</p>
<p>Before the change, I could not replicate the problem in Ptolemy.<br />I ran<br />$PTII/bin/vergil ~/ptII/ptolemy/domains/sdf/demo/Butterfly/Butterfly.xml<br />and then tried to save the model.</p>
<p>When you say "Kepler crashes", do you mean that the Kepler process exits<br />or do you mean that you get a stack trace?</p>
<p>If Kepler crashes, then there is a more substantial problem that should be fixed.</p>
<p>I temporarily modified ptolemy/plot/Plot.java to always throw an<br />exception:</p>
<pre><code>/** Write plot format information to the specified output stream in
* PlotML, an XML scheme.
* @param output A buffered print writer. <br /> */<br /> public synchronized void writeFormat(PrintWriter output) {<br /> super.writeFormat(output);</code></pre>
<pre><code>if (1==1) {<br /> throw new RuntimeException("Test for internal error while writing");<br /> }</code></pre>
<p>When I run the above veril command, I can try to save the plot or the model<br />and I get a stack trace in both situations, but Vergil stays running.</p>
<p>Could you make a similar change to the Plot.java file in Kepler and<br />verify that Kepler remains running even if there is an exception?</p> Kepler - Bug #5412: saving with an open plot window crasheshttps://projects.ecoinformatics.org/ecoinfo/issues/5412?journal_id=186642011-05-26T22:49:14ZDaniel Crawldanielcrawl@gmail.com
<ul></ul><p>I added throw new RuntimeException to Plot.java and saving to XML generates an exception, but saving to KAR exits Kepler.</p>
<p>I updated Plot.java to r61046 to get your fix, and still get errors, but these don't appear related to Plot. In both cases, Kepler does not exit.</p>
<p>Saving to XML:</p>
<p>java.lang.NullPointerException<br /> at org.kepler.gui.KeplerGraphFrame._saveAs(KeplerGraphFrame.java:1491)<br /> at ptolemy.actor.gui.TableauFrame._saveAs(TableauFrame.java:1071)<br /> at ptolemy.actor.gui.PtolemyFrame._saveAs(PtolemyFrame.java:360)<br /> at ptolemy.actor.gui.TableauFrame._save(TableauFrame.java:1051)<br /> at ptolemy.gui.Top$FileMenuListener.actionPerformed(Top.java:1208)<br /> at org.kepler.gui.MenuMapper$1.actionPerformed(MenuMapper.java:386)</p>
<p>Saving to KAR:</p>
<pre><code>[run] java.lang.NullPointerException<br /> [run] at org.kepler.objectmanager.library.LibraryManager.deleteKAR(LibraryManager.java:543)<br /> [run] at org.keINFO (org.kepler.kar.KARBuilder:writeKARFile:581) done writing KAR file to /Users/crawl/KeplerData/workflows/MyWorkflows/Unnamed1.kar<br /> [run] pler.gui.kar.ExportArchiveAction.actionPerformed(ExportArchiveAction.java:389)<br /> [run] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)<br /> [run] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)<br /> [run] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)<br /> [run] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)<br /> [run] at javax.swing.AbstractButton.doClick(AbstractButton.java:389)<br /> [run] at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)<br /> [run] at java.awt.MenuItem.processActionEvent(MenuItem.java:627)<br /> [run] at java.awt.MenuItem.processEvent(MenuItem.java:586)<br /> [run] at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:337)<br /> [run] at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:325)<br /> [run] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:683)<br /> [run] at java.awt.EventQueue.access$000(EventQueue.java:86)<br /> [run] at java.awt.EventQueue$1.run(EventQueue.java:639)<br /> [run] at java.awt.EventQueue$1.run(EventQueue.java:637)<br /> [run] at java.security.AccessController.doPrivileged(Native Method)<br /> [run] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)<br /> [run] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)<br /> [run] at java.awt.EventQueue$2.run(EventQueue.java:653)<br /> [run] at java.awt.EventQueue$2.run(EventQueue.java:651)<br /> [run] at java.security.AccessController.doPrivileged(Native Method)<br /> [run] at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)<br /> [run] at java.awt.EventQueue.dispatchEvent(EventQueue.java:650)<br /> [run] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)<br /> [run] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)<br /> [run] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)<br /> [run] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)<br /> [run] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)<br /> [run] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)</code></pre> Kepler - Bug #5412: saving with an open plot window crasheshttps://projects.ecoinformatics.org/ecoinfo/issues/5412?journal_id=186652011-05-31T20:58:35ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>This seems to be a Kepler bug now, so I'm resetting the assignee to default.</p> Kepler - Bug #5412: saving with an open plot window crasheshttps://projects.ecoinformatics.org/ecoinfo/issues/5412?journal_id=186662011-06-10T19:42:44ZDaniel Crawldanielcrawl@gmail.com
<ul></ul><p>I fixed the NPE in KeplerGraphFrame in r27705. The NPE when saving kars no longer occurs, possibly due to Ptolemy r61130.</p> Kepler - Bug #5412: saving with an open plot window crasheshttps://projects.ecoinformatics.org/ecoinfo/issues/5412?journal_id=186672013-03-27T21:30:21ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 5412</p>