MinimServer Forum
Crash "OutOfBounds" - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: Crash "OutOfBounds" (/showthread.php?tid=105)



Crash "OutOfBounds" - bbrip - 19-07-2012 22:27

Hi Simon,

Minim 0.52 crashes from time to time with the following message:

MinimServer: exception while processing action request: java.lang.ArrayIndexOutOfBoundsException: 5
java.lang.ArrayIndexOutOfBoundsException: 5
at com.minimserver.Server$Item.getFirstValue(Server.java:6583)
at com.minimserver.Server$Album.getFirstValue(Server.java:7220)
at com.minimserver.Server$Album.compareTag(Server.java:7198)
at com.minimserver.Server$Album.compareTo(Server.java:7163)
at com.minimserver.Server$Album.compareTo(Server.java:7034)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at com.minimserver.Server.sortAlbumList(Server.java:3391)
at com.minimserver.Server.access$16500(Server.java:77)
at com.minimserver.Server$AlbumListView.init(Server.java:9614)
at com.minimserver.Server$AlbumListView.<init>(Server.java:9550)
at com.minimserver.Server$AlbumListContainer.populate(Server.java:9701)
at com.minimserver.Server.populateContainer(Server.java:3370)
at com.minimserver.Server.access$17800(Server.java:77)
at com.minimserver.Server$ContentDirectoryProvider.doBrowse(Server.java:10721)
at com.minimserver.Server$ContentDirectoryProvider.browse(Server.java:10681)
at org.openhome.net.device.providers.DvProviderUpnpOrgContentDirectory1$DoBrowse.ac​tionInvoked(DvProviderUpnpOrgContentDirectory1.java:978)

Any idea what the cause might be?

Thanks


RE: Crash "OutOfBounds" - simoncn - 19-07-2012 22:58

Is the number in the exception message always 5?

What are the values of your albumSortTags and indexTags properties?


RE: Crash "OutOfBounds" - bbrip - 20-07-2012 08:16

As I am currently cleaning up my Cunductor and Orchestra tags, I only have Composer, Conductor and Orchestra as indexTags. I took out the Genre and AlbumArtist tags here.

I have Album and AlbumArtist as albumSortTags.

I didnt save the previous error msg so dont remember wheter this was also error 5.

thanks
bbrip


RE: Crash "OutOfBounds" - simoncn - 20-07-2012 09:00

(20-07-2012 08:16)bbrip Wrote:  As I am currently cleaning up my Cunductor and Orchestra tags, I only have Composer, Conductor and Orchestra as indexTags. I took out the Genre and AlbumArtist tags here.

I have Album and AlbumArtist as albumSortTags.

I didnt save the previous error msg so dont remember wheter this was also error 5.

thanks
bbrip

The problem is caused by having AlbumArtist in albumSortTags but not in indexTags. As a temporary workaround, you can either add AlbumArtist to indexTags or remove it from albumSortTags. I'll fix this in the next release.

MinimServer automatically saves crash information in files named minimserver-crash-dddddddd-tttttt.log where dddddddd-tttttt is a timestamp. These files are written to the same directory as the log file (see the .logFile property on the Advanced page). So you probably do have the previous errors saved, without realising it. Smile


RE: Crash "OutOfBounds" - bbrip - 20-07-2012 10:05

ok, so nothing to worry about - I'll change things around. Thanks for the hint on saved crash reports Wink