[FIXED] Javaw.exe hangs after UMS quits
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
[FIXED] Javaw.exe hangs after UMS quits
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
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.
Re: Javaw.exe hangs after UMS quits
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).
天 黒影 天
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
Re: Javaw.exe hangs after UMS quits
Have you used something like CCleaner to cleanup old temp files and fix registry errors?
天 黒影 天
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
Re: Javaw.exe hangs after UMS quits
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.
I think it's not related to UMS i just tried old version of PMS 120.412 from 2009, same thing happens.
Re: Javaw.exe hangs after UMS quits
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.
天 黒影 天
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
Re: Javaw.exe hangs after UMS quits
Another hint is: i cannot rename \Program Files\Universal Media Server\debug.log It's locked until javaw.exe has closed.
Re: Javaw.exe hangs after UMS quits
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)
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
Re: Javaw.exe hangs after UMS quits
There we go. Java related issues in your debug.log. Figured it was Java related. 
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.

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.
天 黒影 天
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
Re: Javaw.exe hangs after UMS quits
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