[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
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

Re: Javaw.exe hangs after UMS quits

Post by kuroukage »

What do you think is causing it?
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
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'm not sure but I don't think it is related to UMS. Sometimes Java just shits itself. Hopefully this fix will allow Java to shit itself without interfering with UMS.
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: Javaw.exe hangs after UMS quits

Post by squadjot »

SubJunk, thanks a lot but I'm afraid nothing has changed =/ it's still hanging as before

Edit: If it turns out difficult to fix, would it be difficult to let UMS check and wait until earlier process has shut down properly?
Attachments
debug_javawhang_01.zip
(5.06 KiB) Downloaded 604 times
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 »

Thanks for the log. It shows that the fix did what it was supposed to (to let the program carry on despite the exception) but that must not have been what was causing your slow shutdown.
I think this is a problem with your installation of Java itself and not UMS. You said you have tried uninstalling Java before, did you restart after that? Maybe if you uninstall it then restart the computer, then install it again, that could work. Also remove any other versions of JRE or JDK on the computer before the computer restart.

I have been frustrated before with a similar Java bug and it only went away after I reformatted the computer so hopefully you don't have the one I had.
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: Javaw.exe hangs after UMS quits

Post by squadjot »

Hi again

I tried exactly that, uninstalled Java, rebooted, resinstalled Java, rebooted, then install UMS.
My machine is running a vanilla Win7 32bít, no fancy security programs.. just ms essentials, and ms firewall (also tried disabling).
It's pretty much dedicated to serve as UMS server only..

I also tried changing java*.exe's to "run as" administrator.., but nothing helps really. =/


Edit: Oh yeah.. i've had java problems before.. i also had to reinstall windows completely. What about another wrapper? ^^
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 don't think another wrapper would make a difference. I share your opinion about programs like CCleaner, in my experience they have created more bugs than they fixed, but it might be worth trying a dedicated uninstaller. I Googled and found this http://singularlabs.com/software/javara/ which is just for Java, and some users reported that Revo Uninstaller worked too.
Just taking wild guesses at this point :)
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: Javaw.exe hangs after UMS quits

Post by squadjot »

I know them both.. from prior experience they are last resort.. javara was updated last time over two years ago =/
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

Re: Javaw.exe hangs after UMS quits

Post by kuroukage »

These are the steps I take whenever I reinstall a new version of Java (clean install) and it's working fine for me:
  • Uninstall Java using Revo Uninstaller (I also use the advanced option and remove any leftover registry entries)
  • Delete leftover directories such as: C:\ProgramData\Sun and C:\Users\[name]\AppData\LocalLow\Sun and C:\Program Files (x86)\Java
  • Use JavaRa and Select "Remove JRE" button, click next button, click "Perform Removal Routine"
  • Use CCleaner and run the temp file cleaner and regcleaner
  • Reboot System
  • Install latest Java
Have you tried this before (or something similar where you're removing all of the old leftover Java by hand before you reboot)?
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
User avatar
squadjot
Moderator
Posts: 652
Joined: Fri Jun 01, 2012 4:24 am

Re: Javaw.exe hangs after UMS quits

Post by squadjot »

Usually, when i start messing with those kinds of programs things go fuckstick..

I will do this.. i will use another HD, reinstall windows onto that and see if the problem still exists, maybe its hardware related
User avatar
kuroukage
Posts: 283
Joined: Wed Dec 12, 2012 3:56 pm

Re: Javaw.exe hangs after UMS quits

Post by kuroukage »

Well, if you don't know what you're doing with registry cleaning programs, it's best not to use them. Just make sure that those leftover directories are gone and that you've used JavaRa to remove whatever else has been leftover by older installs (after uninstalling Java). Uninstalling it and removing ALL the leftover files is mainly what needs to be done for a clean install. But, I think it's best to make sure the registry entries are removed as well (if you're an advanced user and know what you're doing).

EDIT: Try doing it this way. Simple and safer.
黒影
_______________________________________________|_._._._._._._._._._
\______________________________________________|_#_#_#_#_#_#_|
------------------------------------------------------------------|---------------------
Post Reply