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

All your suggestions, requests and ideas for future development
Post Reply
strider3700
Posts: 4
Joined: 20 Nov 2011, 08:22

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

Post 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 ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] Indexoutofboundsexception renaming movies

Post by rednoah »

New regression bug. Too bad nobody with nfo files tested the RC release.

Fixed with r4131.
:idea: Please read the FAQ and How to Request Help.
icompufix
Posts: 1
Joined: 02 Aug 2016, 23:15

Re: [BUG] Indexoutofboundsexception renaming movies

Post by icompufix »

I get the same error on Win 7 Pro machine
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG] Indexoutofboundsexception renaming movies

Post 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.
:idea: Please read the FAQ and How to Request Help.
tfonias74
Donor
Posts: 47
Joined: 16 Jul 2013, 09:17

Re: [BUG] Indexoutofboundsexception renaming movies

Post by tfonias74 »

Had the same issue, with r4131 it's ok!!
imperialized
Posts: 14
Joined: 19 Jun 2016, 14:44

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

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
imperialized
Posts: 14
Joined: 19 Jun 2016, 14:44

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

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

warning.log in the filebot app data folder should have the full error logs and stacktraces. Please post that.
:idea: Please read the FAQ and How to Request Help.
loudambiance
Posts: 1
Joined: 06 Aug 2016, 23:50

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

Post 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.
DarkLite1
Posts: 12
Joined: 11 Oct 2014, 10:28

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

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

Here's a new set of release builds that should address this issue:
https://sourceforge.net/projects/filebo ... ebot/HEAD/
:idea: Please read the FAQ and How to Request Help.
imperialized
Posts: 14
Joined: 19 Jun 2016, 14:44

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

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

FileBot 4.7.2 has been released and fixes these issue:
https://sourceforge.net/projects/filebot/files/filebot/
:idea: Please read the FAQ and How to Request Help.
Post Reply