Renaming Failing on .nfo files retuns File in use error

Support for Windows users
Post Reply
zarty346
Posts: 3
Joined: 07 Nov 2016, 12:31

Renaming Failing on .nfo files retuns File in use error

Post by zarty346 »

Hi all,
Having a somewhat perplexing problem with renames when filebot encounters .nfo files. I've tried with debugging , run as admin, reinstalled filebot etc ..
I'm running FileBot 4.7.2 (r4178) / Java(TM) SE Runtime Environment 1.8.0_111 on win10.

All other files work fine but when filebot encounters .nfo files it gives me a pop-up: "File in use , the action can't be completed because the file is open in Java(TM) Platform binary, close the file and try again.
Ironically, this is what filebot is running under. Essentially it can't move the file because it's own java process has it open! Is there a fix for this? It clearly must being doing something different for .nfo files versus all others as it has no problem with any other files.
Running under console we get more verbose output for the same thing:

Code: Select all

FileSystemException: The process cannot access the file because it is being used by another process.

java.util.concurrent.ExecutionException: java.nio.file.FileSystemException: The process cannot access the file because it is being used by another process.

        at net.filebot.ui.rename.RenameAction.lambda$actionPerformed$1(RenameAction.java:99)
        at net.filebot.util.ui.SwingUI.withWaitCursor(SwingUI.java:289)
        at net.filebot.ui.rename.RenameAction.actionPerformed(RenameAction.java:78)
Caused by: java.nio.file.FileSystemException: The process cannot access the file because it is being used by another process.

        at net.filebot.util.FileUtilities.moveRename(FileUtilities.java:84)
        at net.filebot.StandardRenameAction$1.rename(StandardRenameAction.java:23)
        at net.filebot.ui.rename.RenameAction$RenameWorker.call(RenameAction.java:328)
        at net.filebot.ui.rename.RenameAction$RenameWorker.call(RenameAction.java:299)
        at net.filebot.util.ui.ProgressMonitor$1.call(ProgressMonitor.java:27)
        at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
One last bit of info, if I simply exit out of filebot and reopen, then drop in the exact same folder with that 1 remaining .nfo file, it copies fine.
Thanks
-TD
User avatar
rednoah
The Source
Posts: 24026
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming Failing on .nfo files retuns File in use error

Post by rednoah »

Have you tried the latest beta release yet?
viewtopic.php?f=7&t=1609
:idea: Please read the FAQ and How to Request Help.
zarty346
Posts: 3
Joined: 07 Nov 2016, 12:31

Re: Renaming Failing on .nfo files retuns File in use error

Post by zarty346 »

I'll give it a try thanks!
zarty346
Posts: 3
Joined: 07 Nov 2016, 12:31

Re: Renaming Failing on .nfo files retuns File in use error

Post by zarty346 »

OK Dokey that worked! FYI probably means nothing, in console i noticed :

Code: Select all

Failed to read media encoding date: Binding "General[0][Encoded_Date]": undefined

Code: Select all

FileBot 4.7.2 (r4506) / Java(TM) SE Runtime Environment 1.8.0_111
Thanks again!
-TD
User avatar
rednoah
The Source
Posts: 24026
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming Failing on .nfo files retuns File in use error

Post by rednoah »

FileBot will consider the Encoded_Date when matching files.

You don't need to worry about warnings as long as everything is working as expected. However, if something is not working, then the warnings are the first thing you wanna look at. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply