# MovieScanner2 Invalid floating point operation error – MovieScanner – Forum

Page 1 of 1

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!

MovieScanner2 Inval...

Share:
Clear all

# MovieScanner2 Invalid floating point operation error

18 Posts
3 Users
0 Likes
786 Views
Anonymous
Joined: 53 years ago
Posts: 0
Topic starter

When scanning my movies for the first time I have encountered an error: "Invalid Floating Point Operation. Press OK to ignore and risk data corruption. Press Abort to kill the program." and don't know how to address it. If anyone knows anything I would appreciate your information.

Thanks

Dave

(@hans)
Joined: 9 years ago
Posts: 2311

Hi Dave!

Sorry to hear you're running into issue.

Do you know what version of Moviescanner you're using and what platform you're using (Windows/macOS/Linux)?

Anonymous
Joined: 53 years ago
Posts: 0
Topic starter

Hi Hans

I just downloaded MovieScanner2 from here yesterday. Version 2.0.14. I am running Windows 10 with all current updates.

I am accessing my movies as a mounted network drive and your application shows 16859 files of which it has scanned 321 files which is when it throws the error. The files are hosted on a Synology Cube connected with a Gigabit Ethernet. The data formats vary but on that mounted drive there are only video files (and thumbnails etc). Presuming it follows an alphanumerical path I have examined the file/folder structure around where 321st file should be and see nothing different.

Thank you for reaching out.

Dave

(@hans)
Joined: 9 years ago
Posts: 2311

Hi Dave,

thanks for the info ... looks like a particular file causes and issue? Number 322 (as you already figured) 😉
On that note though: would be nice to figure out what file that is and what is causing the error so I can catch it in code.

Since this error is rather generic (not your faulty of course), my best guess is that this is a conversion issue (something coming from ffProbe that cannot be converted), or a number exceeding what a floating point number can hold.

However ... without a file to test, or the ability to see what ffProbe is generating, it will be hard to debug.

While I'm typing this, I'm doing a test with several thousand of files on my NAS ... It's still running ... 🤣

As you already tried: let's see if we can find the offending file ...
The file order is based on what the OS (select directory) or File explorer (drag and drop) hands MovieScanner. This can be alphanumerical, or order of creation, or even random.

The crash should be repeatable by dragging and dropping individual files, groups of files, or directories.
If you'd be willing to try that - not sure how your directory and file structure is.

As an alternative: You could check the database file and see which ones have been read (SQLitebrowser is free), and guess which one caused the crash.
Look in the tabel "Files" (field: filename should hold the full path of those that worked OK).
The crashed file is most likely NOT listed in the database.

(@hans)
Joined: 9 years ago
Posts: 2311

p.s. thank you for trying to improve MovieScanner by reporting the issue and trying to find out what the problem may be 👍

(@hans)
Joined: 9 years ago
Posts: 2311

Oh almost forgot ...

Depending how you run MovieScanner, this is where you may find the database file (SQLite):

Regular installed

C:\Users\<username>\AppData\Local\MovieScanner\

Running Portable

drive:\path\to\MovieScanner2exe\

Anonymous
Joined: 53 years ago
Posts: 0
Topic starter

Hi Hans

Thank you for helping with this problem. I have opened that database and found more entries(!) than it listed before. 345 instead of 321. Here is the list of entries from 320 onward:

FileID Codec CodecLong Samplerate Channels Layout Language Title
320   618 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
619 AC3 ATSC A/52A (AC-3) 48000 6 5.1 (side) English Surround
620 AAC AAC (Advanced Audio Coding) LC 48000 2 2.0 (stereo) English
621 DTS DCA (DTS Coherent Acoustics) DTS 48000 6 5.1 (side) English
622 AAC AAC (Advanced Audio Coding) LC 48000 2 2.0 (stereo) Undefined Stereo
623 AC3 ATSC A/52A (AC-3) 48000 6 5.1 (side) English
624 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
625 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
626 AAC AAC (Advanced Audio Coding) LC 48000 2 2.0 (stereo) Undefined
627 AAC AAC (Advanced Audio Coding) LC 48000 2 2.0 (stereo) English
628 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
629 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
630 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
631 AC3 ATSC A/52A (AC-3) 48000 6 5.1 (side) Undefined
632 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
633 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
634 AC3 ATSC A/52A (AC-3) 48000 6 5.1 (side) English 3/2+1
635 AAC AAC (Advanced Audio Coding) HE-AAC 48000 2 2.0 (stereo) Undefined
636 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
637 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
638 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
639 MP3 MP3 (MPEG audio layer 3) 44100 2 2.0 (stereo) Undefined Audio Stream
640 MP3 MP3 (MPEG audio layer 3) 44100 2 2.0 (stereo) Undefined
641 MP3 MP3 (MPEG audio layer 3) 48000 2 2.0 (stereo) Undefined
642 PCM_DVD PCM signed 20|24-bit big-endian 48000 2 2.0 (stereo) Undefined
345      642 AC3 ATSC A/52A (AC-3) 48000 6 5.1 (side) Undefined

Hmmm I see no rhyme or reason to the listings to compare to my file structure. I will try one at a time selecting folders instead of the whole tree and see if I can get a clue. May take awhile lol :)

Dave

This post was modified 9 months ago by

Anonymous
Joined: 53 years ago
Posts: 0
Topic starter

I believe I found the issue. Files in Ogg Media format (.ogm).

(@hans)
Joined: 9 years ago
Posts: 2311

Posted by: @dlfuller

Hmmm I see no rhyme or reason to the listings to compare to my file structure

Look like you opened the wrong table ... this looks like the AudioStreams table.
You'll need to look at the "Files" table 😊 -- by default DB Browser shows the first table, which is AudioStreams and not Files.

Internally, MovieScanner will first make a list of files (not in the database), and analyze the files one at a time.
Once a single file has been analyzed, the data will be placed in the database.
The fact that you found 345 entries in the AudioStreams table, is because some of your video files have multiple audio tracks (eg. different languages or commentary).

So the offending file will most likely not be in the database.

The "Ogm" file format should work though (I just tested it with this OGM example file). You can of course also test it by dropping that specific file on MovieScanner. If it was the offending file, then you should get the same error.

Anonymous
Joined: 53 years ago
Posts: 0
Topic starter

Those OGM files were located within a folder along with the same content in another format, and a part of a top level folder that contains many folders and files. When I originally scanned the top level folder the scan failed with the error. When I removed those files and rescanned the same top level folder it completed correctly.

I replicated your test of dropping one of the files into the program and it worked fine no errors.

Interesting. Maybe it is the iteration of files and folders exceeding a value?

Continuing my testing I dropped a .wmv file into the program and it errored with the same "Invalid Floating Point". Tested file and it plays fine.

Tested all other existing video file types in my NAS and they work fine when dropping individually into the program with the exception of .wmv I mentioned above.

(@hans)
Joined: 9 years ago
Posts: 2311

Posted by: @dlfuller

Continuing my testing I dropped a .wmv file into the program and it errored with the same "Invalid Floating Point"

Sounds like this was the offending file. 👍

Now this doesn't mean anything is wrong with the file, but it does mean that somehow information that ffProbe pulled from the file, is not converted correctly by MovieScanner.

Is there any way I could do some testing with that file?
Obviously not something we'd want to post as an attachment here, but maybe you could use WeTransfer to send me a copy?
If you're OK with that, then please send the webtransfer info webmaster at tweaking4all.com.

If that is not an option, then try to run this, and post the output here.
This will be much more tricky for me to determine what triggers the error though.

ffprobe.exe -show_format -show_streams -v quiet -print_format ini <filename>

(ffprobe.exe can be found in the install directory of MovieScanner)

Anonymous
Joined: 53 years ago
Posts: 0
Topic starter

Sure. Not intending to offend, this file's name and content would certainly be a problem for some people. It is the offending file though (apparently in more ways than one lol) File sent.

(@hans)
Joined: 9 years ago
Posts: 2311

🤣

OK I'll admit: initially I wasn't sure of this was malicious file or not - in the end all good!

I did some test and I did find the problem.
For some odd reason, under Windows, a bitrate division ended up being a division by zero 😜

In a few minutes I'll upload version 2.0.15 !

Thanks again for reporting and providing the file for testing ... 👍

Anonymous
Joined: 53 years ago
Posts: 0
Topic starter

Thank you for your help. I'm glad I was able to assist. Sure appreciate your program and efforts. 😎 Just for fun I will test the newly uploaded program on my whole data set again and let you know the results.

This post was modified 9 months ago by

(@hans)