HELP!! JNA problem, again

Any questions? Need some help?
Post Reply
thunderhawk
Posts: 4
Joined: 23 Oct 2019, 23:26

HELP!! JNA problem, again

Post by thunderhawk »

Hi,

my HW is a RPI4b with 8GB RAM and SO is Linux raspberrypi 5.4.79-v7l+ (buster)

I had installed filebot FileBot 4.9.2 (r8046) via the debian script:
I did a test with fn:sysinfo and had jna problem that I solved reading the thread:
and launching the script:
filebot -script fn:properties --def jna.nosys=false
so then the result of fn:sysinfo is:
FileBot 4.9.2 (r8046)
JNA Native: 5.2.2
MediaInfo: 18.12
....
Then I did a test with a file and again jna problem:
Failed to read media characteristics: /media/pi/RAID_1/UNSORTED/BetterCallSaulS03e01-10/Better.Call.Saul.3x02.mkv: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Native library (com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path (/usr/share/filebot/jar/filebot.jar)
I put also fn:sysenv output:
...
jna.boot.library.name: jnidispatch.system
jna.boot.library.path: /usr/lib/arm-linux-gnueabihf/jni
jna.library.path: /usr/lib/arm-linux-gnueabihf/jni
jna.nosys: false
jna.nounpack: true
...
Can anyone help me?

Thanks in adavance...

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

Re: HELP!! JNA problem, again

Post by rednoah »

Have you tried this yet?
viewtopic.php?t=12198


:idea: If that doesn't work, then you'll have to figure it out by yourself. Check the the library indeed exists in the library path. Perhaps the library is just incompatible with your Linux version, in which case you'll need to find a libmediainfo.so build for your specific hardware.


:?: What does the complete filebot -script fn:sysinfo output say?


:?: Where is libmediainfo located on your system?


:idea: The thread linked suggests using the portable edition if you can't make it work. Have you tried using the portable edition? Note that the portable edition includes a libmediainfo.so binary, but that binary may or may not be compatible with your specific platform, though it works fine for most.



EDIT:

Wait a second...

This line means that libjnidispatch.so works just fine:

Code: Select all

MediaInfo: 18.12
But this line means that libjnidispatch.so isn't even found:

Code: Select all

Unable to load arm (32-bit) native library libmediainfo.so: Native library (com/sun/jna/linux-arm/libjnidispatch.so)
:!: :!: That is most strange! Make sure that you're not accidentally switching between different versions / different configurations / etc (NOTE: different user == different $ PATH / different configuration file / etc) from one test case to another. :!: :!:
:idea: Please read the FAQ and How to Request Help.
thunderhawk
Posts: 4
Joined: 23 Oct 2019, 23:26

Re: HELP!! JNA problem, again

Post by thunderhawk »

Hi rednoah,

thanks for the reply, yes I follow instruction on viewtopic.php?t=12198 and fn:sysinfo works fine.

When I use fn:sysinfo, with same user, if I type simply:

Code: Select all

filebot -script fn:sysinfo
everything worksfine but, if I type:

Code: Select all

sudo filebot -script fn:sysinfo
here comes the error again...now I found the difference, but why?

Thanks again,

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

Re: HELP!! JNA problem, again

Post by rednoah »

Different users have different environment variables, different access to files, etc. Run filebot -script fn:sysenv to see what's different. You can also use strace to see syscalls, so that you can trace where each process is searching for *.so libraries.


:!: Also, DO NOT RUN AS ROOT. Now you have your own anecdote in support of this common piece of advice. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply