Page 1 of 1

[BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 02 Aug 2016, 17:03
by strider3700
running 4.7.1 on linux mint I'm Attempting to rename movies and I'm getting an IndexOutOfBoundsException warning. it doesn't seem to matter what movie. TV shows work fine.

movie format is /home/strider/NAS/Movies/{n} ({y})/{n} ({y})

error message from log

Code: Select all

Aug 02, 2016 9:52:25 AM net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1 done
WARNING: IndexOutOfBoundsException: Index: 0, Size: 0
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.done(RenamePanel.java:842)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at net.filebot.media.MediaDetection.grepMovie(MediaDetection.java:1220)
	at net.filebot.ui.rename.MovieMatcher.match(MovieMatcher.java:116)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:827)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:823)

Code: Select all

FileBot 4.7.1 (r4126)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc)
Extended Attributes: OK
GVFS: OK
Groovy Engine: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_101
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 23 MB Used Memory
OS: Linux (amd64)
Package: DEB
Data: /home/strider/.filebot
uname: Linux strider-mainPC 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ

Re: [BUG] Indexoutofboundsexception renaming movies

Posted: 02 Aug 2016, 17:43
by rednoah
New regression bug. Too bad nobody with nfo files tested the RC release.

Fixed with r4131.

Re: [BUG] Indexoutofboundsexception renaming movies

Posted: 02 Aug 2016, 23:19
by icompufix
I get the same error on Win 7 Pro machine

Re: [BUG] Indexoutofboundsexception renaming movies

Posted: 03 Aug 2016, 04:51
by rednoah
Yes, it's a bug caused by *.nfo files that don't contain tt1234567 IMDB ID patterns. Deleting those *.nfo files or updating to the latest revision will solve those problems.

Re: [BUG] Indexoutofboundsexception renaming movies

Posted: 03 Aug 2016, 08:48
by tfonias74
Had the same issue, with r4131 it's ok!!

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 05 Aug 2016, 23:38
by imperialized
I'm having this same issue on the latest release. Without any NFO files, selecting "Movie" mode with MovieDB causes this index out of bounds error. When trying the same file(s) in TV Mode, I don't see the error. Auto-Detect says "failed group" - perhaps no match? I'm going to downgrade back until I hear back. Thanks for a great program, however!


Edit: v4.7 works as expected. Confirming bug is only in new release.

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 06 Aug 2016, 04:56
by rednoah
1.
If there' no NFO files then it's a different issue. Do you have any logs?

2.
Are you 100% sure there is no NFO/URL files (that don't contain imdb ids) anywhere? I'm fairly certain there is at least one.

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 06 Aug 2016, 15:35
by imperialized
I can re-do it and get logs if you tell me what you are looking for. And yes, I am sure there is no NFO -- it happens when I only select one single file running through the GUI, not cli.

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 06 Aug 2016, 15:40
by rednoah
warning.log in the filebot app data folder should have the full error logs and stacktraces. Please post that.

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 06 Aug 2016, 23:53
by loudambiance
imperialized wrote:I can re-do it and get logs if you tell me what you are looking for. And yes, I am sure there is no NFO -- it happens when I only select one single file running through the GUI, not cli.
I was having the same issue, I was only selecting the one .mkv file. Turns out, I did have a .url file in the same folder that was causing the issue.

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 07 Aug 2016, 13:48
by DarkLite1
Same issue on Ubuntu 14.04 with the latest release of FileBot 4.7.1.

Reproducing the problem:
  • Select folders with NFO files in them
  • Drag and drop the folder in FileBot while keeping CTRL+SHIFT pressed
  • FileBot fails with the error message 'IndexOutOfBoundsException' after clicking 'Rename' MoveDB
Note: When no NFO files are present in the folders it works fine. But since we want to rename only the folders, this is still considered to be a bug.

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 07 Aug 2016, 15:20
by rednoah
Here's a new set of release builds that should address this issue:
https://sourceforge.net/projects/filebo ... ebot/HEAD/

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 07 Aug 2016, 15:35
by imperialized

Code: Select all

Aug 05, 2016 7:34:50 PM net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1 done
WARNING: IndexOutOfBoundsException: Index: 0, Size: 0
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.done(RenamePanel.java:842)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at net.filebot.media.MediaDetection.grepMovie(MediaDetection.java:1220)
	at net.filebot.ui.rename.MovieMatcher.match(MovieMatcher.java:116)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:827)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:823)

Aug 05, 2016 7:34:56 PM net.filebot.ui.rename.AutoDetectMatcher lambda$match$2
WARNING: Failed group: {Movie= XXX MOVIE NAME HERE XXX }
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at net.filebot.ui.rename.AutoDetectMatcher.lambda$match$2(AutoDetectMatcher.java:52)
	at net.filebot.ui.rename.AutoDetectMatcher.match(AutoDetectMatcher.java:57)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:827)
	at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(RenamePanel.java:823)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at net.filebot.media.MediaDetection.grepMovie(MediaDetection.java:1220)
	at net.filebot.ui.rename.MovieMatcher.match(MovieMatcher.java:116)
	at net.filebot.ui.rename.AutoDetectMatcher.match(AutoDetectMatcher.java:68)
	at net.filebot.ui.rename.AutoDetectMatcher.lambda$null$0(AutoDetectMatcher.java:46)

I'll try the new build now and report back. Just in case you still need these this should provide what you needed.

Edit: New build seems to have resolved the issue.

Re: [BUG] IndexOutOfBoundsException: Index: 0, Size: 0

Posted: 08 Aug 2016, 13:11
by rednoah
FileBot 4.7.2 has been released and fixes these issue:
https://sourceforge.net/projects/filebot/files/filebot/