Post Reply 
MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException: String index out of rang
05-04-2023, 14:41 (This post was last modified: 05-04-2023 19:38 by simoncn.)
Post: #4
RE: MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException
From this log, it looks like there might be a problem with the tagging of the file 12. Tchaikovsky - The Sleeping Beauty - Waltz.flac.

FLAC files should contain tags in the format tagName=tagValue. When a file is first read by MinimServer, these tags are added to the MinimServer cache. On subsequent scans of the library, the tags are read from the MinimServer cache instead of from the file.

The error you have seen is caused by a tag being formatted incorrectly. Instead of tagName=tagValue, it is just tagName without an = sign. The code in MinimServer that reads tags from the cache assumes that the = sign is present and is producing this error when it is not present.

To fix it, the first step is to use a tagging program to check the tags of this file to see if there are any tags without a value. If you find this, either delete the tags or give them values.

If you have found any tags like this, you then need to exit MinimServer and delete the cache file and create it again. On Windows, the cache file is located at C:\Users\your-user-name\AppData\MinimServer\data\xxxx1.mcache or xxxx2.mcache, where xxxx is the name of your content directory. To be safe, I suggest you delete all files with a .mcache extension. The AppData folder is hidden by default in Windows File Explorer but you can type the full path into the Explorer address bar to view this folder. After you have done this, restart MinimServer to recreate the cache file or files. This will take much longer than usual because MinimServer needs to read every file from disk.

If you don't find any tags like this, I suggest you exit MinimServer and delete the .mcache file or files as described above and try again.

Edit: An alternative to editing the tags would be to temporarily remove this file from your library. You will still need to rebuild the cache as described above.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: MinimServer 2.2 - java.lang.StringIndexOutOfBoundsException - simoncn - 05-04-2023 14:41

Forum Jump:


User(s) browsing this thread: 1 Guest(s)