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)
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.