Bad Things happen if I try to expand a soup (using the handle to the left of its icon) before it has been fully populated:

java.lang.ArrayIndexOutOfBoundsException: 122 > 119
at java.util.Vector.insertElementAt(Vector.java:551)
at javax.swing.tree.DefaultMutableTreeNode.insert(DefaultMutableTreeNode.java:178)
at javax.swing.tree.VariableHeightLayoutCache.createNodeAt(VariableHeightLayoutCache.java:714)
at javax.swing.tree.VariableHeightLayoutCache.treeNodesInserted(VariableHeightLayoutCache.java:433)
at javax.swing.plaf.basic.BasicTreeUI$TreeModelHandler.treeNodesInserted(BasicTreeUI.java:2355)
at javax.swing.tree.DefaultTreeModel.fireTreeNodesInserted(DefaultTreeModel.java:466)
at javax.swing.tree.DefaultTreeModel.nodesWereInserted(DefaultTreeModel.java:289)
at org.jempeg.empeg.model.FIDPlaylistTreeNode.playlistNodeInserted(FIDPlaylistTreeNode.java:216)
at org.jempeg.empeg.nodestore.FIDPlaylist.firePlaylistNodeInserted(FIDPlaylist.java:107)
at org.jempeg.empeg.nodestore.FIDPlaylist.insertNodeAt(FIDPlaylist.java:477)
at org.jempeg.empeg.nodestore.FIDPlaylist.createChildPlaylistAt(FIDPlaylist.java:676)
at org.jempeg.empeg.model.AbstractPlaylistNodeModifier.createChildContainer(AbstractPlaylistNodeModifier.java:216)
at org.jempeg.empeg.soup.TagSoupUpdater.nodeIdentified(TagSoupUpdater.java:170)
at org.jempeg.empeg.soup.TagSoupUpdater.nodeIdentified(TagSoupUpdater.java:151)
at org.jempeg.empeg.soup.TagSoupUpdater.initialize(TagSoupUpdater.java:135)
at org.jempeg.empeg.soup.SoupUtils$SoupInitializeRunnable.run(SoupUtils.java:272)
at java.lang.Thread.run(Thread.java:484)

When this happens, the UI hangs for a bit. Eventually it returns but redraw is screwy (in a way that's hard to describe), movement (up and down) doesn't always take you where you expect, and items are missing from the soup (I think it's things with higher-numbered FIDs that are missing). HTH.

And my "Orphaned Items" search still finds things that don't really have refs-0 - perhaps we need to wait until the empeg-car playlist is built before any soups that use refs? As a workaround, it'd be nice to have a "Recompute soup" item on the popup menu for a soup view.
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)