Page 1 of 3

Java 'OutofMemory' error crashes - please help!

Posted: Tue Dec 06, 2016 5:06 pm
by BenjaminG
Hey all, I've been a long time customer for PMS and loved it. Despite all working fine, I decided to upgrade to USM a few months back and that's when everything went bad. After about 15-20 minutes of streaming, javaw.exe crashes and then USM quits. So earlier this week I performed a clean Windows 7 x64 install, but unfortunately the same thing occurs for both the Java 7 and Java 8 versions. In between USM uninstalls, I also make sure to perform a Java uninstall too.

I really love USM and when it works, it works great. I've done as much research as I can, but can't find any real guidance on this issue, so does anyone have any advice to fix the Java crashing issue? I've tried all different variants of heap space sizes, up to 3000, but I'm tearing my hair out! I'd be very grateful for any assistance.

EDIT: I'm not able to extract a log since the program closes, but I was able to print screen the following as it was stuttering playing music just before it crashed which reveals plenty of error message: https://postimg.org/image/frn08y87j/

Re: Java 'OutofMemory' error crashes - please help!

Posted: Wed Dec 07, 2016 7:50 pm
by BenjaminG
Nobody? :-(

Re: Java 'OutofMemory' error crashes - please help!

Posted: Sat Dec 10, 2016 11:36 am
by Triplefun
Yes, I too get this error but it is erratic and not easy to trace. When you start a new instance of UMS the system saves the previous log. Select the log file debug option and you will notice there is a 'debug.log.prev' in the C:\ProgramData\UMS directory (assuming you are running Windows 10). If like me the log file will be several megabyte then you will need to use DropBox or equivalent to share the log file with the UMS support team.

Re: Java 'OutofMemory' error crashes - please help!

Posted: Sun Dec 11, 2016 12:49 pm
by BenjaminG
Thanks for the suggestion, will take a look.

However I think I've mostly fixed the issue by ramping up the allocation of Java memory to 4GB, using the suggestion here:

http://m.wikihow.com/Increase-Java-Memory-in-Windows-7

Seems like a ridiculous amount of resourcing, but haven't had any crashes since...

Re: Java 'OutofMemory' error crashes - please help!

Posted: Thu Feb 02, 2017 8:07 am
by kprueckl
I have the same problem since adding a LG webOS TV to the network (from your screenshot I can see you have such a TV too).
UMS has been running without any problems with Panasonic & Philips TVs and PS3+PS4, but since the LG TV I have the daily OOM.

From some Java OOM dumps, I can see the problem is a huge java.lang.Object[] referenced by java.util.ArrayList, referenced by net.pms.dlna.GlobalIdRepo.
Will dig deeper...

Re: Java 'OutofMemory' error crashes - please help!

Posted: Fri Feb 03, 2017 5:40 am
by Triplefun
I also have a lg webos TV and agree my recent set of similar issues started ever since it was connected.

Re: Java 'OutofMemory' error crashes - please help!

Posted: Wed Feb 15, 2017 10:19 pm
by Triplefun
I have added my log file showing the out of memory crash relating to LG Web OS TV ..

Re: Java 'OutofMemory' error crashes - please help!

Posted: Sat Feb 18, 2017 3:07 am
by atamariya
kprueckl wrote:I have the same problem since adding a LG webOS TV to the network (from your screenshot I can see you have such a TV too).
UMS has been running without any problems with Panasonic & Philips TVs and PS3+PS4, but since the LG TV I have the daily OOM.

From some Java OOM dumps, I can see the problem is a huge java.lang.Object[] referenced by java.util.ArrayList, referenced by net.pms.dlna.GlobalIdRepo.
Will dig deeper...
The current version keeps a tree of DLNAResource for each renderer. And all of these trees are duplicates. Hence it requires huge amount of memory. I worked on using cache implementation to tackle this situation. Feel free to try it out.

Binary https://drive.google.com/open?id=0B6j7C ... TNKTm5ra00
Source https://github.com/atamariya/UniversalM ... r/tree/dev

Re: Java 'OutofMemory' error crashes - please help!

Posted: Tue Feb 21, 2017 2:48 pm
by Triplefun
Thanks for your support. I installed the executable and it failed to register on the PS3. I had some PDF files in my directory which caused a few issues with the directory scan. That aside I have loaaded the log file for your benefit.

Re: Java 'OutofMemory' error crashes - please help!

Posted: Thu Feb 23, 2017 4:08 am
by atamariya
Triplefun, can you try the new version https://drive.google.com/open?id=0B6j7C ... TNKTm5ra00 ? BTW have you forced PS3 as the default renderer?