Page 1 of 2

There is an incompatible JNA native library installed on this system

Posted: Mon Feb 01, 2016 11:44 am
by cacafuti8888
Please help me, the log of UMS show me this error and my tv can't connect to the pc.

ums_dbg.zip
UMS log
(20.22 KiB) Downloaded 653 times

Re: There is an incompatible JNA native library installed on this system

Posted: Tue Feb 02, 2016 7:03 am
by Nadahar
You have something as rare as a 32 bit Windows 7 - which I suspect is the problem. JNA is probably trying to load the 64 bit version of MediaInfo on your 32 bit system.

Please delete the file

Code: Select all

C:\Program Files\Universal Media Server\MediaInfo64.dll
Tell me if that helped. We have a system in place for not loading the 64 bit version on a 32 bit system, but I have a suspicion that it doesn't work as intended. If that solves it, I have an idea of a fix I can try to implement.

Re: There is an incompatible JNA native library installed on this system

Posted: Tue Feb 02, 2016 9:06 am
by cacafuti8888
I delete the file, but when i restart UMS the log shows me the same error, but i checked th TV and it works!!! Thank you!!!

But the error apears in the log so if you can tell me that solution you have i'm all ears.

An thanks again for your help, sorry for my english.

Edit: i can't enter the shared folders on my tv shows me an error, "lost connection with the server", i restart UMS but the error persist. I've tried to install a most recent version of UMS,but after the first execution the program never execute again,so this is the reason i use the 5.2.

Re: There is an incompatible JNA native library installed on this system

Posted: Tue Feb 02, 2016 10:25 am
by Nadahar
First of all you should install the latest version (6.0.0) because we have fixed a problem related to this in this version. Everytime you run the UMS installer the MediaInfo64.dll file is installed again and must be deleted for the test to be valid.

What I want to know if it 6.0.0 works when MediaInfo64.dll is deleted. If it doesn't work, I'd like you to create new debug files with this version.

Re: There is an incompatible JNA native library installed on this system

Posted: Wed Feb 03, 2016 12:17 am
by cacafuti8888
Hi, i intalled the 6.0 version and as i said versions from 5.2 only execute the first time and never again. In the task manager i saw java runing and after a few seconds dissapear. I think this is a Java problem but i unistall them several times trying to fix this with no resoults.

I send you the log file, but not the trace one because when i restart UMS it don't open again. if you need it i try to reinstall UMS and try again.
ums_dbg.zip
UMS 6.00 LOG
(19.7 KiB) Downloaded 582 times

Re: There is an incompatible JNA native library installed on this system

Posted: Wed Feb 03, 2016 5:03 am
by Nadahar
We upgraded from JNA 4.1.0 to 4.2.0 in UMS 5.2.2 (which means that any version to and including 5.2.1 use JNA 4.1.0). When later discovered that this posed problems on some installations, and downgraded to 4.1.0 again in UMS 5.5.0. No other JNA changes have been done in recent time, so it makes no sense whatsoever if 5.2.0 work and 5.5.0 doesn't. They have the exact same JNA version, and the downgrade resolved JNA issues on other installations.

I installed UMS 6.0.0 on a 32 bit Windows 7 to test this, and it works with no JNA issues. I tried both with Java 7 and the latest Java 8 - same result, no problems. That leads me to believe that there must be some problem on your installation/computer. I've found a few cases on the net with people with similar problems when there has been several programs using JNA installed with different JNA versions. JNA is Java specific (Java Native Access), so the question is if you're using any other Java application as well and if there is a conflict there.

I'm not sure where to go from here, the errors indicate that a wrong version of JNA is loaded. Neither does it make any sense to me that it will run once, and not again. Have you ever installed UMS as a service, could the problem be that an old version of UMS is still running as a service? To check for that, open "services.msc" and look for "Universal Media Server".

Re: There is an incompatible JNA native library installed on this system

Posted: Wed Feb 03, 2016 6:07 am
by Nadahar
There's one thing I can thing of to try, I've made a special build of 6.0.0 with this change that you can download here. Please try that version and see if it makes a difference.

Re: There is an incompatible JNA native library installed on this system

Posted: Wed Feb 03, 2016 6:14 am
by cacafuti8888
Nadahar wrote:We upgraded from JNA 4.1.0 to 4.2.0 in UMS 5.2.2 (which means that any version to and including 5.2.1 use JNA 4.1.0). When later discovered that this posed problems on some installations, and downgraded to 4.1.0 again in UMS 5.5.0. No other JNA changes have been done in recent time, so it makes no sense whatsoever if 5.2.0 work and 5.5.0 doesn't. They have the exact same JNA version, and the downgrade resolved JNA issues on other installations.

I installed UMS 6.0.0 on a 32 bit Windows 7 to test this, and it works with no JNA issues. I tried both with Java 7 and the latest Java 8 - same result, no problems. That leads me to believe that there must be some problem on your installation/computer. I've found a few cases on the net with people with similar problems when there has been several programs using JNA installed with different JNA versions. JNA is Java specific (Java Native Access), so the question is if you're using any other Java application as well and if there is a conflict there.

I'm not sure where to go from here, the errors indicate that a wrong version of JNA is loaded. Neither does it make any sense to me that it will run once, and not again. Have you ever installed UMS as a service, could the problem be that an old version of UMS is still running as a service? To check for that, open "services.msc" and look for "Universal Media Server".
The only program that i remember it uses java is jdownloader but i never use it. Like i said before, i unistall several times Java with windows native unistaller, with ccleaner and even with the Java unistaller tool provided from its own website, so there's apparently no other version of java in my system.

Months ago when you release the version 5.3 i start having issues in the playback so i decide to downgrade to 5.2 and i've been using this version since then. I'VE GOT NO ISSUES until a couple of weeks ago when i tryied to watch a video in my TV (Panasonic). Detects UMS but when i enter to browse folders show me an error "Lost connection with the server", i tryied to reload the UMS server, and same result. I checked my router in case there's something messing with the connection and i don't see anything wrong. The only thing i've seen is the error of JNA in the log of UMS, and thats why i'm here. I think there's a problem with Java in some point, but i'm stocked, my knwolege ends here, and i can't understand the explanation of the error in the log:
To resolve this issue you may do one of the following:
- remove or uninstall the offending library
- set the system property jna.nosys=true
- set jna.boot.library.path to include the path to the version of the
jnidispatch library included with the JNA jar file you are using
If you can help me to follow this steps (i do not understand what i need to do with this) we can try this way and see if this works.

In other hand, i installed recently a SSH server in my computer to use it remotly, and in some point i remember to change some Environment Variables, so maybe there's something wrong. The software i've used is FreeSSHd, and i've got problems running it, crashes when i try to browse remotly my computer.

I'm complety lost with this problem, and i want to repair it because your software is the only compatible with my TV, and i love the quality of the "stremaing" even with my crappy router.

Thanks again for your time, and sorry for my english, i'm not used to speak/write in english.

Re: There is an incompatible JNA native library installed on this system

Posted: Wed Feb 03, 2016 6:38 am
by Nadahar
I'm not an English speaker either, but I have no problem understanding you - there's bigger problems with some of the natives ;)

The special build I liked to in the previous verison has jna.nosys=true set automatically. I don't know if it will do any difference or what other potential consequences that will have, so if that works we have to test it under other circumstances.

If you have another version of JNA on your computer it will have been installed by another software using Java, but it won't be a part of Java itself. Therefore it won't help to reinstall Java, it will only help to uninstall that application - but this is only a guess at this stage.

When it comes to FreeSSHd it looks a bit... untrustworth. It's not open source, even though they seem to want to look that way. Since it's not open source, I haven't been able to figure out if it's Java or not. Can't some of the Putty components function as a SSH server? I don't know though, I've never used SSH for anything but Linux.

Re: There is an incompatible JNA native library installed on this system

Posted: Wed Feb 03, 2016 6:46 am
by cacafuti8888
I've just read your last post, i downloaded the new "version", i fully unistall java, and installed the lastest version (8 update 71), and fully unistall UMS and installed the "6.0.1". It opened with no problem and apparently with no JNA error in the log
ums_dbg.zip
UMS 6.0.1 LOG
(19.77 KiB) Downloaded 702 times
and i checked my TV and it works again with no problem, and i close the program and open again and java don't crash and UMS open with no issue. So, at this point, which is the problem? and how i can solve it? because this is, i suppose, a custom version made from my problem.

Man, thanks, you saved my life.

PS: For FreeSSHd, this is an interesting information... i though there's open source but you open my eyes so unistalling it, and putty as i know is only a SSH client. But i only said about this software for your information because is the only software i've installed since the UMS problem.