Ticket #48 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

array Index out of bounds exception

Reported by: karthikeyan.ramnath@gmail.com Assigned to: christilden
Priority: major Milestone:
Component: lastpod Version:
Keywords: Cc:

Description

i've been using lastpod for a while and it was working fine. but recently, i keep getting an array index out of bounds exception on startup. the screen is the usual dull grey with paint refresh not happening.

when i move my mouse or some other window on top of lastpod, the contents on the lastpod window become visible. then if i go ahead and click the 'submit' button, it does the handshake and gives an error dialog (1).

the stack trace is as follows, im also attaching a screen shot: ---

C:\KR\lastPod>java -jar lastPod.jar Exception in thread "AWT-EventQueue?-0" java.lang.ArrayIndexOutOfBoundsException?:

1

at org.lastpod.TrackItem?.getTrack(TrackItem?.java:190) at org.lastpod.RecentPanel?$RecentModel?.getValueAt(RecentPanel?.java:136) at javax.swing.JTable.getValueAt(Unknown Source) at javax.swing.JTable.prepareRenderer(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source) at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source) at javax.swing.plaf.ComponentUI.update(Unknown Source) at javax.swing.JComponent.paintComponent(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JViewport.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source) at javax.swing.JComponent.paintDoubleBuffered(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at java.awt.GraphicsCallback?$PaintCallback?.run(Unknown Source) at sun.awt.SunGraphicsCallback?.runOneComponent(Unknown Source) at sun.awt.SunGraphicsCallback?.runComponents(Unknown Source) at java.awt.Container.paint(Unknown Source) at sun.awt.RepaintArea?.paintComponent(Unknown Source) at sun.awt.RepaintArea?.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue?.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread?.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread?.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread?.pumpEvents(Unknown Source) at java.awt.EventDispatchThread?.pumpEvents(Unknown Source) at java.awt.EventDispatchThread?.run(Unknown Source)

Sep 13, 2007 10:22:23 AM org.lastpod.Scrobbler handshake INFO: Beginning Handshake Sep 13, 2007 10:22:23 AM org.lastpod.Scrobbler handshake INFO: Handshake completed Sep 13, 2007 10:22:23 AM org.lastpod.Scrobbler submitTracks INFO: Submitting tracks... Sep 13, 2007 10:22:26 AM org.lastpod.ModelImpl? submitTracks SEVERE: org.lastpod.TrackItem?.getTrack(TrackItem?.java:190) Sep 13, 2007 10:22:26 AM org.lastpod.ModelImpl? submitTracks SEVERE: org.lastpod.Scrobbler.buildTrackQueryString(Scrobbler.java:361) Sep 13, 2007 10:22:26 AM org.lastpod.ModelImpl? submitTracks SEVERE: org.lastpod.Scrobbler.submitTracks(Scrobbler.java:272) Sep 13, 2007 10:22:26 AM org.lastpod.ModelImpl? submitTracks SEVERE: org.lastpod.ModelImpl?.submitTracks(ModelImpl?.java:158) Sep 13, 2007 10:22:26 AM org.lastpod.ModelImpl? submitTracks SEVERE: org.lastpod.action.SubmitTracks?$2.construct(SubmitTracks?.java:141) Sep 13, 2007 10:22:26 AM org.lastpod.ModelImpl? submitTracks SEVERE: org.lastpod.util.SwingWorker?$2.run(SwingWorker?.java:62) Sep 13, 2007 10:22:26 AM org.lastpod.ModelImpl? submitTracks SEVERE: java.lang.ArrayIndexOutOfBoundsException?: 1 ---

Attachments

ScreenShot002.jpg (94.7 kB) - added by karthikeyan.ramnath@gmail.com on 09/12/07 21:54:40.
scrn cap of error

Change History

09/12/07 21:54:40 changed by karthikeyan.ramnath@gmail.com

  • attachment ScreenShot002.jpg added.

scrn cap of error

09/14/07 19:08:18 changed by christilden

Please provide a list of the tracks if possible. Also for now, in the options turn off "Parse Various Artist Tracks". I think the bug is in that code, but I need to see your a list of tracks that causes the error to resolve it.

09/15/07 00:55:33 changed by anonymous

good guess. once i disabled it, i dont get any exceptions. so what do i lose by disabling parsing VA? i'm attaching the itunes db and playcounts file from the ipod. hope this helps. btw, really slick tool you've managed to churn out :) luving it...

09/15/07 01:01:16 changed by karthikeya.ramnath@gmail.com

i tried to attach the zip file and since it is some 800+K i am not allowed to attach it! so mailing it to you.

09/17/07 23:35:37 changed by karthikeyan.ramnath@gmail.com

any clues on what is awry?

09/18/07 10:44:36 changed by christilden

I received your email.

By looking at the stack trace you posted I saw it was a problem with "Various Artists" parsing. The concept behind this feature is that some compilation albums will have the Artist name set to "Various Artists", then the track name will be "<Artist Name> - <Track title>". This feature will parse the track name and extract the artist when it encounters "Various Artists".

Actually... I think I know the bug. Do you have tracks with the artist as "Various Artists"? If so, I bet the track name does not follow the "<Artist Name> - <Track title>" format. I will have to come up with a solution for this. If this is the case and you are looking for the proper artist name to be submitted to last.fm, you may want to re-tag your tracks.

Thanks for your data files. I will use them to come up with a solution to the bug as well.

12/23/07 00:37:12 changed by christilden

  • owner changed from unassigned to christilden.
  • status changed from new to assigned.

12/23/07 00:38:21 changed by christilden

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in r86


Add/Change #48 (array Index out of bounds exception)




Change Properties
Action