[FIXED] Javaw.exe hangs after UMS quits

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
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

[FIXED] Javaw.exe hangs after UMS quits

Post by squadjot »

Hi

Everytime i quit UMS, it takes 3-4 minutes for the javaw.exe to disappear from the tasklist.
UMS interface shuts down, and the server is not accesible from DLNA renderer, as expected. But still javaw.exe hangs.

The problem is that if i start UMS again before the javaw process quits, then the newly started UMS won't find any renderers.

I've had this problem for a while. I don't quite know how to debug it. I can make a process dump of the process, but i don't know if that helps anything.
Also in general, it often seems like, that if UMS fails on a movie then it's likely to fail on other movies aswell, and a restart is required.

I hoped that someone else might be experiencing the same issue.

Edit: It seems like when something goes wrong.. an error keeps occurring, the app gets jammed somehow.. eventually it "fixes" itself , probably overrun or timeout ..anyways something is clearly wrong
Edit2: It happens with PMS aswell
Last edited by squadjot on Fri Feb 08, 2013 6:12 am, edited 1 time in total.
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

Re: Javaw.exe hangs after UMS quits

Post by kuroukage »

Are you using the latest version of Java 7 (u13)? If so have you tried doing a re-install of UMS from the ground up to see if that works? I'd try both of those things. Also, when you're updating Java versions it's best to uninstall the old one and then use a tool like JavaRa to completely get rid of the files that's left over (before installing Java again).
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

Re: Javaw.exe hangs after UMS quits

Post by kuroukage »

Have you used something like CCleaner to cleanup old temp files and fix registry errors?
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: Javaw.exe hangs after UMS quits

Post by squadjot »

The machine is a fresh install of Win7 32Bit, so i think i already have a clean registry. + i dont' really fancy CC Cleaner..and all those apps.
I think it's not related to UMS i just tried old version of PMS 120.412 from 2009, same thing happens.
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

Re: Javaw.exe hangs after UMS quits

Post by kuroukage »

Yeah, to me it sounds like it's a Java related issue. Which is why I suggested to do a completely clean install of the latest version of Java. The only other thing I can think of is that Java likes to leave a program running in the background called SunJavaUpdateSched and I usually disable this with CCleaner, so it doesn't load at start. That could be causing you issues, but I wouldn't recommend disabling that unless you understand what it does and you're not worried about having auto update for it run.
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: Javaw.exe hangs after UMS quits

Post by squadjot »

Another hint is: i cannot rename \Program Files\Universal Media Server\debug.log It's locked until javaw.exe has closed.
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: Javaw.exe hangs after UMS quits

Post by squadjot »

Ah..Heres something ..

Whilst javaw.exe is runing, the debug.log shows as 0kb.. when it closes, here's whats at the very end

INFO 2013-02-05 22:54:02.314 [PMS Listeners Stopper] Exception in thread "PMS Listeners Stopper" java.lang.NullPointerException
INFO 2013-02-05 22:54:02.319 [PMS Listeners Stopper] at net.pms.network.UPNPHelper.shutDownListener(UPNPHelper.java:317)
INFO 2013-02-05 22:54:02.319 [PMS Listeners Stopper] at net.pms.PMS$4.run(PMS.java:538)
Attachments
debug.zip
(5.72 KiB) Downloaded 695 times
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

Re: Javaw.exe hangs after UMS quits

Post by kuroukage »

There we go. Java related issues in your debug.log. Figured it was Java related. :P

Use the DbgPack plugin for UMS and upload a complete set of logs from the .zip file it will generate. That's the best way for everyone to help troubleshoot your problem.
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
User avatar
SubJunk
Lead Developer
Posts: 3797
Joined: Sun May 27, 2012 4:12 pm

Re: Javaw.exe hangs after UMS quits

Post by SubJunk »

I couldn't reproduce the error but I made a possible fix that ignores it, please test http://www.spirton.com/uploads/UMS/UMS-javahang.exe
Post Reply