scilab: Graphic Window: Fail to Export Graphic

Bug #381286 reported by tobb
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scilab (Ubuntu)
In Progress
Undecided
Sylvestre Ledru

Bug Description

Binary package hint: scilab

Ubuntu 9.04
scilab 5.1-0ubuntu2
When you plot a function with scilab, and you try to export this plot (File->Export to...) you get the following error:

Exception in thread "main" java.util.NoSuchElementException
   at java.util.Collections$EmptyEnumeration.nextElement(Collections.java:3043)
   at org.scilab.modules.gui.bridge.filechooser.FileMasque.getDescription(Unknown Source)
   at com.sun.java.swing.plaf.gtk.GTKFileChooserUI$FilterComboBoxRenderer.getListCellRendererComponent(GTKFileChooserUI.java:1292)
   at javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(BasicComboBoxUI.java:1303)
   at javax.swing.plaf.basic.BasicComboBoxUI.getMinimumSize(BasicComboBoxUI.java:892)
   at javax.swing.JComponent.getMinimumSize(JComponent.java:1723)
   at javax.swing.BoxLayout.checkRequests(BoxLayout.java:480)
   at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:298)
   at java.awt.Container.preferredSize(Container.java:1665)
   at java.awt.Container.getPreferredSize(Container.java:1650)
   at javax.swing.JComponent.getPreferredSize(JComponent.java:1645)
   at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:719)
   at com.sun.java.swing.plaf.gtk.GTKFileChooserUI.getPreferredSize(GTKFileChooserUI.java:1035)
   at javax.swing.JComponent.getPreferredSize(JComponent.java:1643)
   at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:719)
   at java.awt.Container.preferredSize(Container.java:1665)
   at java.awt.Container.getPreferredSize(Container.java:1650)
   at javax.swing.JComponent.getPreferredSize(JComponent.java:1645)
   at javax.swing.JRootPane$RootLayout.preferredLayoutSize(JRootPane.java:911)
   at java.awt.Container.preferredSize(Container.java:1665)
   at java.awt.Container.getPreferredSize(Container.java:1650)
   at javax.swing.JComponent.getPreferredSize(JComponent.java:1645)
   at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:719)
   at java.awt.Container.preferredSize(Container.java:1665)
   at java.awt.Container.getPreferredSize(Container.java:1650)
   at java.awt.Window.pack(Window.java:700)
   at javax.swing.JFileChooser.createDialog(JFileChooser.java:797)
   at javax.swing.JFileChooser.showDialog(JFileChooser.java:731)
   at javax.swing.JFileChooser.showOpenDialog(JFileChooser.java:643)
   at org.scilab.modules.gui.bridge.filechooser.SwingScilabExportFileChooser.exportCustomFileChooser(Unknown Source)
   at org.scilab.modules.gui.bridge.filechooser.SwingScilabExportFileChooser.<init>(Unknown Source)
   at org.scilab.modules.gui.filechooser.ScilabFileChooserBridge.createExportFileChooser(Unknown Source)
   at org.scilab.modules.gui.bridge.ScilabBridge.createExportFileChooser(Unknown Source)
   at org.scilab.modules.gui.filechooser.ScilabFileChooser.<init>(Unknown Source)
   at org.scilab.modules.gui.filechooser.ScilabFileChooser.createExportFileChooser(Unknown Source)
   at org.scilab.modules.gui.bridge.CallScilabBridge.newExportFileChooser(Unknown Source)

Revision history for this message
Sylvestre Ledru (sylvestre) wrote :

I have been able to reproduce this bug.
The attachment provides a workaround to this bug. Upstream is checking for the actual error on this.

Revision history for this message
Sylvestre Ledru (sylvestre) wrote :

This bug has been reported and fixed upstream:
http://bugzilla.scilab.org/show_bug.cgi?id=4614

Changed in scilab (Ubuntu):
assignee: nobody → Sylvestre Ledru (sylvestre-ledru)
status: New → In Progress
Revision history for this message
Ricardo Fabbri (rfabbri) wrote :

please close this bug; it has been fixed upstream (see #2)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.