Page 1 of 1

BUG {vc} etc bindings not working (WITH FIX)

Posted: 04 Sep 2015, 13:50
by stephen147
Hi,

I recently started using this program and discovered quickly that the bindings didn't work. I read on the forum that this was an issue with java.

I've found two solutions (2nd not as trustworthy).

1.
  • - Open filebot
    - DO NOT load any files yet
    - Press F5 twice
    - Close that dialog
    - Loading files in GUI / or by dragging also
    - Bindings should now work.
2.
  • - Open up the app
    - Try to tag something with your mask e.g. {n.space('.')}.{y}{'.'+source}.{vc}
    - It will say bindings not found or exception or whatever.
    - Switch to a simple binding like {n} ({y})
    - Close the program
    - Restart the program
    - Use your naming convention in step 2.
    - Voila !
Is there a permanent fix for this?

I'm running win 7x64, java 32 and 64 bit (need 32 for firefox) and 4.7 filebot.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 04 Sep 2015, 19:22
by rednoah
There's an FAQ entry that should explain the issue in detail. The filebot launcher should always pick 64-bit Java on 64-bit machines, so loading 64-bit MediaInfo.dll that's installed with 64-bit FileBot should work just fine.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 04 Sep 2015, 21:10
by stephen147
You mean this?
If you're using 64-bit Java you must install 64-bit FileBot, if you're using 32-bit Java you must install 32-bit FileBot. If you have installed 64-bit Windows and 64-bit FileBot and 32-bit Java, the java process will be in 32-bit compatibility mode and the native libraries won't work. So uninstall 32-bit Java and then only install the latest 64-bit Java and latest 64-bit FileBot.
Done all that.

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\--->filebot -script fn:sysinfo
FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_60
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 2 GB Max Memory / 20 MB Used Memory
OS: Windows 7 (amd64)
Done ?(?????)?


C:\Users\--->filebot -script fn:sysinfo
FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_60
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 2 GB Max Memory / 20 MB Used Memory
OS: Windows 7 (amd64)
Done ?(?????)?
Taken from cmd. 1st is with both x64 and x86 java installed and 2nd with x86 uninstalled.

I've read the FAQ. This is why I'm starting a new thread to find the issue. ;]

I've tried only having x64 java before and it didn't work and tried again but no luck.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 04 Sep 2015, 21:41
by rednoah

Code: Select all

MediaInfo: MediaInfoLib - v0.7.69
If you see this message then you know that MediaInfo.dll was loaded and that all the MediaInfo related bindings {vc} {ac} etc will work.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 05 Sep 2015, 03:32
by stephen147
But it doesn't. That's what I'm saying. I've entered

Code: Select all

filebot -script fn:sysinfo
into cmd as soon as the problem arose and it 'says' it has loaded the MediaInfoLib - v0.7.69.dll

See screenshot.

Image

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 05 Sep 2015, 09:55
by rednoah
1.
The screenshot is too small for me to see anything. I can't read the warning message. But for mediainfo bindings to work in the Format Editor you may need to set a sample file first. If there's no media file, then there's no media info.

2.
CLI and GUI should be the same, but technically they're different executables so this won't help you. Try calling the sysinfo script from the GUI via GroovyPad. Just press F5 twice. See FAQ.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 05 Sep 2015, 13:30
by stephen147
1. yes, i do. see new screenshot of entire GUI.
http://s3.postimg.org/ir5orhheb/2015_09_05_15_22_28.jpg


2. Now the problem appears in groovy pad. see output:

Code: Select all

FileBot 4.6 (r3052)
[b]JNA Native: Could not initialize class com.sun.jna.Native[/b]
MediaInfo: java.lang.NoClassDefFoundError: Could not initialize class net.filebot.mediainfo.MediaInfoLibrary
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_60
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 2 GB Max Memory / 303 MB Used Memory
OS: Windows 7 (amd64)
3. After I repeat the steps in my org. post:

Code: Select all

FileBot 4.6 (r3052)
JNA Native: 4.0.0
[b]MediaInfo: MediaInfoLib - v0.7.69[/b]
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_60
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 2 GB Max Memory / 197 MB Used Memory
OS: Windows 7 (amd64)

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 05 Sep 2015, 15:19
by rednoah
Very strange... Win10 must be blocking the library for some reason the first time around.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 05 Sep 2015, 16:32
by stephen147
I'm on win 7 x64.

At least I've stumbled across a temp fix.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 08 Sep 2015, 08:45
by rednoah
I honestly have no idea what that would fix the issue. :D But hey, if it works on your system, then maybe it'll work for others as well.

PS: btw do you use any other tools/software that ship with MediaInfo.dll or try to load it?

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 08 Sep 2015, 14:52
by stephen147
Doing a quick scan reveals I do. I just thought that the program would point towards it's own .dll file to help run it. What should I do. BTW the digital signature sign off date in your dll doesn't match the modified date. Would that lead to issues? THe rest of my MediaInfo.dlls have matching mod and signiture dates.

‎24 ‎April ‎2014 15:17:01 is your sign off date by the company and the mod date is: 04 ‎September ‎2015, ‏‎23:01:41.

BTW: The fix doesn't work now as well.

Perhaps I just do a search for the latest dll from the companies website and try that?

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 08 Sep 2015, 15:40
by rednoah
1.
FileBot should be loading the one in it's own install folder. But I know that other programs have issues with the dll in the filebot folder because the filebot folder is added to the PATH.

You can verify which .dll files are loaded by each process using System Explorer:
http://systemexplorer.net/


2.
I just copied the .dll from the project site. I'm surprised it's signed at all. Let me know if the latest version from the MediaInfo home works better.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 08 Sep 2015, 21:57
by stephen147
Heres a screenshot. There's no filebot listed under processes. Even though it's there in the normal Ctrl+SHIFT+ESC task manager route.

Image

That method of not replacing the MediaInfo.dll file didn't work although I found a new better fix it seems.

--============================================================
  • Open filebot
    DO NOT load any files yet
    Press F5 twice
    Close that dialog
    Loading files in GUI / or by dragging also
    Bindings should now work.
--============================================================
I will update the starting post with this.

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 09 Sep 2015, 07:01
by rednoah
The filebot process is probably called java.exe

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 09 Sep 2015, 08:09
by stephen147
No MediaInfo.dll file appears in that list. See screen. Wierd thing is the {vc} tags work even so (that is after I do fix number 1 in starting post).

Image

Re: BUG {vc} etc bindings not working (WITH FIX)

Posted: 24 Oct 2015, 13:31
by stephen147
Hi, just letting you know that the issue still persists after upgrading to windows 10 x64