OutOfMemory Error

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
boss
Posts: 410
Joined: Thu Jun 30, 2016 1:07 pm

Re: OutOfMemory Error

Post by boss »

With the Linux installs, UMS does not install libzen and libmediainfo.
Those 2 library files need to be already on the Linux computer.

The only options that I know of are:
You can configure UMS.sh to use the included Java or use the Linux system Java.
I always my Linux system Java.
I did try using the included UMS Java in V14.12.1 but the issue was still present.

You can use the UMS included ffmpeg and tsMuxeR or use the Linux system ffmpeg and tsMuxeR
I always use my Linux system ffmpeg and tsMuxeR.
With a UMS install for Linux, it is set to use the Linux system ffmpeg and tsMuxeR.
This can be overridden to use the UMS supplied ffmpeg and tsMuxeR in UMS.conf
EG:
# Path to ffmpeg (absolute or relative from project.binaries.dir)
# Example: /usr/bin/ffmpeg
# Win: win32/ffmpeg.exe
# Mac: osx/ffmpeg
# Linux: ffmpeg + system PATH
ffmpeg_path =
# Remux videos with tsMuxeR when possible instead of transcoding
# Whether FFmpeg should remux videos with tsMuxeR when possible instead of
# Remux videos with tsMuxeR when possible instead of transcoding
# Transcoding Settings Tab: tsMuxeR Page
# Path to tsMuxeR (absolute or relative from project.binaries.dir)
# Example: /usr/ums/linux/tsMuxeR
# Win: win32/tsMuxeR.exe
# Mac: osx/tsMuxeR
# Linux: tsMuxeR + system PATH

I don't believe that any of this is the issue as it worked fine prior to UMS V14.12

My UMS is running on a 32-BIT version of Gentoo Linux.
So I would think the relative folder in ums.jar is: Linux-i386.
But that folder has no files relating to libzen and libmediainfo in either V14.12 or V14.11 of ums.jar.
There is a another folder though named "linux-x86".
It is located at: "com\sun\jna\linux-x86" in ums.jar
The file inside this folder "libjnidispatch.so" is exactly the same for V14.11 and V14.12 so I wouldn't think this is the issue.

My guess is that a configuration file in ums.jar now has the path for libzen and libmediainfo set to "com\sun\jna\linux-x86" which is incorrect.
I'm sure the developers would know straight away where this configuration file is in ums.jar.
Thanks
boss
Posts: 410
Joined: Thu Jun 30, 2016 1:07 pm

Re: OutOfMemory Error

Post by boss »

Bump
User avatar
mik_s
Moderator
Posts: 1477
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: OutOfMemory Error

Post by mik_s »

I'm not sure if the other linux-x86 folder at "com\sun\jna\linux-x86" is the same as the one where UMS is looking for libzen.so

Try what I suggested and make the "linux-x86" folder in the root of ums.jar and copy libzen.so and libmediainfo.so from your install in here and see if it at least gets rid of this message. You could also try putting them into "com\sun\jna\linux-x86" too but I am guessing this is more for Java libraries.

All of this is guesswork as I don't know the structure of the code and don't know how different it will be on Linux

If this does clear this libzen message then we will have an idea if this was the cause of the OutOfMemory error or if it is something else.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Post Reply