NullPointer Exception Windows 10 ID3 or Automatic Music

Any questions? Need some help?
Post Reply
robotsheepboy
Posts: 6
Joined: 03 Jul 2020, 10:27

NullPointer Exception Windows 10 ID3 or Automatic Music

Post by robotsheepboy » 03 Jul 2020, 10:42

I'm getting a repeated error "pointer exception" on Windows 10 whenever I try to match music tracks using either ID3 or Automatic mode. Console output below:

Code: Select all

NullPointerException
java.util.concurrent.ExecutionException: java.lang.NullPointerException
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.done(Unknown Source)
Caused by: java.lang.NullPointerException
        at net.filebot.ui.rename.MusicMatcher.match(Unknown Source)
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(Unknown Source)
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(Unknown Source)

Code: Select all

>filebot -script fn:sysinfo
FileBot 4.9.1 (r7372)
JNA Native: 6.1.0
MediaInfo: 19.09
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-06-18 (r655)
Groovy: 3.0.3
JRE: OpenJDK Runtime Environment 14
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 4.3 GB Max Memory / 39 MB Used Memory
OS: Windows 10 (amd64)
STORAGE: NTFS [(C:)] @ 72 GB | NTFS [System Reserved] @ 539 MB | NTFS [Seagate Expansion Drive] @ 1.1 TB | NTFS [Seagate Expansion Drive] @ 203 GB
DATA: C:\Users\User\AppData\Roaming\FileBot
Package: MSI
Activate License [--REDACTED--] on [Fri Jul 03 11:38:24 BST 2020]
License: FileBot License --REDACTED-- (Valid-Until: 2070-04-25)
Done ?(?????)?

robotsheepboy
Posts: 6
Joined: 03 Jul 2020, 10:27

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by robotsheepboy » 03 Jul 2020, 10:46

I already tried

Code: Select all

filebot -clear-prefs
which didn't do anything except require me to reinput my license key, which wasn't particularly helpful.

User avatar
rednoah
The Source
Posts: 18608
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by rednoah » 03 Jul 2020, 10:49

Works for me. Can you narrow down the issue to one specific file and perhaps share that file for testing?


EDIT: Possibly caused by untagged files.
:idea: Please read the FAQ and How to Request Help.

robotsheepboy
Posts: 6
Joined: 03 Jul 2020, 10:27

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by robotsheepboy » 03 Jul 2020, 10:53

it doesn't seem to matter which file I use, I just tried it for a file called

(Everything I Do) I Do It for You

then a file called

Code: Select all

00 _10_ Feeder - Burn The Bridges

both on my external H hardrive in a folder called "music"

Output below:



Code: Select all

NullPointerException
java.util.concurrent.ExecutionException: java.lang.NullPointerException
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.done(Unknown Source)
Caused by: java.lang.NullPointerException
        at net.filebot.ui.rename.MusicMatcher.match(Unknown Source)
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(Unknown Source)
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(Unknown Source)

NullPointerException
java.util.concurrent.ExecutionException: java.lang.NullPointerException
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.done(Unknown Source)
Caused by: java.lang.NullPointerException
        at net.filebot.ui.rename.MusicMatcher.match(Unknown Source)
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(Unknown Source)
        at net.filebot.ui.rename.RenamePanel$AutoCompleteAction$1.doInBackground(Unknown Source)

User avatar
rednoah
The Source
Posts: 18608
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by rednoah » 03 Jul 2020, 10:57

Do the offending files have ID3 tags? What does MediaInfo say about these files?
viewtopic.php?t=4285
:idea: Please read the FAQ and How to Request Help.

robotsheepboy
Posts: 6
Joined: 03 Jul 2020, 10:27

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by robotsheepboy » 03 Jul 2020, 11:01

I'm not sure about the ID3 tag question (I'm also not sure if that's the same issue for the automatic mode which also isn't doing anything) so below I have put all of the mediainfo:

Code: Select all

Audio_Format_List	MPEG Audio
Audio_Format_WithHint_List	MPEG Audio
Audio_Codec_List	MPEG Audio
CompleteName	H:\Music\(Everything I Do) I Do It for You.mp3
FolderName	H:\Music
FileNameExtension	(Everything I Do) I Do It for You.mp3
FileName	(Everything I Do) I Do It for You
FileExtension	mp3
Format	MPEG Audio
Format/String	MPEG Audio
Format/Extensions	m1a mpa mpa1 mp1 m2a mpa2 mp2 mp3
Format_Commercial	MPEG Audio
InternetMediaType	audio/mpeg
FileSize	7874662
FileSize/String	7.51 MiB
FileSize/String1	8 MiB
FileSize/String2	7.5 MiB
FileSize/String3	7.51 MiB
FileSize/String4	7.510 MiB
Duration	393691
Duration/String	6 min 33 s
Duration/String1	6 min 33 s 691 ms
Duration/String2	6 min 33 s
Duration/String3	00:06:33.691
Duration/String5	00:06:33.691
OverallBitRate_Mode	CBR
OverallBitRate_Mode/String	Constant
OverallBitRate	160000
OverallBitRate/String	160 kb/s
StreamSize	311
StreamSize/String	311 Bytes (0%)
StreamSize/String1	311 Bytes
StreamSize/String2	311 Bytes
StreamSize/String3	311 Bytes
StreamSize/String4	311.0 Bytes
StreamSize/String5	311 Bytes (0%)
StreamSize_Proportion	0.00004
Title	Bryan Adams - Everything I Do I Do It For You(Robin Hood Prince Of Thieves.mp3
Part/Position	0
Part/Position_Total	0
Track	Bryan Adams - Everything I Do I Do It For You(Robin Hood Prince Of Thieves.mp3
Track/Position	0
Track/Position_Total	0
Genre	Other
Recorded_Date	0
File_Created_Date	UTC 2020-07-01 21:14:29.980
File_Created_Date_Local	2020-07-01 22:14:29.980
File_Modified_Date	UTC 2020-07-03 10:59:28.546
File_Modified_Date_Local	2020-07-03 11:59:28.546
Encoded_Library	LAME3.98
Encoded_Library/String	LAME3.98


Format	MPEG Audio
Format/String	MPEG Audio
Format_Commercial	MPEG Audio
Format_Version	Version 1
Format_Profile	Layer 3
Format_Settings	Joint stereo / MS Stereo
Format_Settings_Mode	Joint stereo
Format_Settings_ModeExtension	MS Stereo
InternetMediaType	audio/mpeg
Duration	393691
Duration/String	6 min 33 s
Duration/String1	6 min 33 s 691 ms
Duration/String2	6 min 33 s
Duration/String3	00:06:33.691
Duration/String4	00:06:36:23
Duration/String5	00:06:33.691 (00:06:36:23)
BitRate_Mode	CBR
BitRate_Mode/String	Constant
BitRate	160000
BitRate/String	160 kb/s
Channel(s)	2
Channel(s)/String	2 channels
SamplesPerFrame	1152
SamplingRate	44100
SamplingRate/String	44.1 kHz
FrameRate	38.281
FrameRate/String	38.281 FPS (1152 SPF)
Compression_Mode	Lossy
Compression_Mode/String	Lossy
StreamSize	7873829
StreamSize/String	7.51 MiB (100%)
StreamSize/String1	8 MiB
StreamSize/String2	7.5 MiB
StreamSize/String3	7.51 MiB
StreamSize/String4	7.509 MiB
StreamSize/String5	7.51 MiB (100%)
StreamSize_Proportion	0.99989
Encoded_Library	LAME3.98
Encoded_Library/String	LAME3.98
Encoded_Library_Settings	-m j -V 4 -q 0 -lowpass 17.5 -b 160

User avatar
rednoah
The Source
Posts: 18608
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by rednoah » 03 Jul 2020, 11:17

The Performer or Composer tag seems to be missing. You'll have to use Music Mode via AcoustID or Plain File Mode if you want to deal with this kind of file. Additionally, you may want to consider using tools like MusicBrainz Picard to tags files properly, to make life easy in the long run.


The NPE is definitely a bug though. The correct behaviour would be to simply ignore files where required tags are missing instead of crashing.
:idea: Please read the FAQ and How to Request Help.

robotsheepboy
Posts: 6
Joined: 03 Jul 2020, 10:27

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by robotsheepboy » 03 Jul 2020, 11:41

Unfortunately, I have tried to put these through musicbrainz first but once it clusters them it can't seem to find the albums, I have about 1000 files like this, so I need to find some way to do it. Any specific suggestions would be appreciated?

Also: How do I do plainfile mode? I assume that will help strip all the stupid characters?

User avatar
rednoah
The Source
Posts: 18608
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by rednoah » 03 Jul 2020, 11:57

Plain File Mode will explain things in detail.


There's some useful MediaInfo though, so we can use that of course:

Code: Select all

Title	Bryan Adams - Everything I Do I Do It For You(Robin Hood Prince Of Thieves.mp3

e.g.

Code: Select all

{media.Title}

Code: Select all

{media.Title.before(/ - /)}

Code: Select all

{media.Title.after(/ - /)}
:idea: Please read the FAQ and How to Request Help.

robotsheepboy
Posts: 6
Joined: 03 Jul 2020, 10:27

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by robotsheepboy » 03 Jul 2020, 12:05

That helped a whole lot, thank you so much, just saved me days of work!

kim
Power User
Posts: 995
Joined: 15 May 2014, 16:17

Re: NullPointer Exception Windows 10 ID3 or Automatic Music

Post by kim » 03 Jul 2020, 15:03

if filename has the info and missing the ID3 you can use (or vice versa) e.g. MP3TAG to rename or add the ID3 info
https://www.mp3tag.de/en/

Post Reply