Sign in to follow this  
Xsamuraizx

Installing Java & Recent Crashes (Out Of Memory)

Recommended Posts

If you've been crashing a lot lately due to a recent patch since May, it's most likely out-of-memory crashes.
 
The obvious solution is to lower settings, but if that does not work, read below.
 
 
Enabling Use compressed textures and Use S3TC/DXT when using compressed textures in the Advanced graphics tab under Settings will save you around a third of both RAM and VRAM at almost no notable loss in visual quality, so it is a good idea to always have these settings activated. Additionally it will result in a higher framerate under many circumstances.
 
 
If you have a 64 bit os, then your best bet is to make sure you have 64bit java installed.
 
If you're using 32bit java, have wurm run 64bit instead. Methods to stop the crashes are listed below.
(Note: If you're not sure if wurm is using 32bit, open task manager and check the directory when you have the wurm client up. In windows 7, if you see *32 in the image name, then it's using 32bit)
 
1) If you don't need 32bit java, completely uninstall java. Install only 64bit java from the official website.
http://java.com/en/download/manual.jsp
-If you're not installing 64bit java for whatever reason, you may need to google for the specific update and download from oracle.com; You can check what update version you have for both 32bit and 64bit in your control panel Programs and Features.
-Another way to do this is to use Ninite which will install and upgrade for you. Make sure wurm client isn't running and you may need to redownload client. http://ninite.com/java/
Wurm client should be in 64bit java.
 
2) If you have 64bit java installed, can create a shortcut off the wurm client. Check properties of the shortcut. Paste everything from the code below to Target.
Make sure Start In have C:\Windows\system32
 
Stable

"C:\Program Files\Java\jre7\bin\javaws.exe" "http://www.wurmonline.com/client/wurmclient.jnlp"

Unstable



"C:\Program Files\Java\jre7\bin\javaws.exe" "http://www.wurmonline.com/client/wurmclient_unstable.jnlp"

3) Mainly for advanced users. Creating a .bat file. Open a .txt file like notepad and paste One of the two codes below into the file, then rename it to whatever you want .bat file. (e.g. Wurm.bat). Just open the .bat file and it'll open the client from the site. Can do optional things in the .bat file like allocating memory, again that's for advanced users. (e.g.  -J-Xmx4000M -XX)
 
Stable Client



"C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient.jnlppause

Unstable Client



"C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient_unstable.jnlppause

Raises the question of how much memory would you as a client dev allocate to Wurm, especially if someone dual clients? The 2000mb in the example? I can do 2048mb/2G easily, even over 4G since Im usually running the latest Java release.
 
Also single line batch files are boring:
 
 
@echo off
color 3
title Wurm Online Launcher
:start
cls
echo Choose client:
echo.
echo 1) Regular
echo 2) Unstable
echo 3) Test
echo 4) Quit
set /p choice=enter your choice #:
if %choice%==1 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient.jnlp
if %choice%==2 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient_unstable.jnlp
if %choice%==3 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient_test.jnlp
exit

Windows 7 fix
 
Go to your Windows search/run prompt:
 
bwkCGbj.png
 
 
In the search prompt paste one of these two text strings:
 
 
32 bit version
c:\windows\system32\javaws.exe -J-Dhttp.agent=Mozilla http://www.wurmonline.com/client/wurmclient.jnlp
64 bit version
C:\Windows\SysWOW64\javaws.exe -J-Dhttp.agent=Mozilla http://www.wurmonline.com/client/wurmclient.jnlp


This is done with windows 7, though it should be very similar in other versions such as XP:
 

 
1. Create a shortcut on the desktop by right clicking the desktop and going to new and then shortcut:
 
zrPimvF.jpg
 
 
2. In the "Type the location of the item:" field, type in: 
c:\windows\system32\javaws.exe -J-Dhttp.agent=Mozilla http://www.wurmonline.com/client/wurmclient.jnlp
ZnIcuRX.png
 
 
3. Put a name in to the "Type a name for this shortcut:", name it whatever you want, i named it "Wurm workaround"
 
MdYU6Zc.png
 
 
Click finish and double-click the newly created shortcut and it should work fine

 

Credits to Paradox as well when we were discussing about this back then.

Edited by Xsamuraizx
  • Like 1

Share this post


Link to post
Share on other sites

huh i have 64 bit and and windows 7 and i crashing holetime and i dont no why ? and when i farming all i come 1 when i have 4 WTF what dis dam bad crashing when i walk :( i can play wurm


Share this post


Link to post
Share on other sites

huh i have 64 bit and and windows 7 and i crashing holetime and i dont no why ? and when i farming all i come 1 when i have 4 WTF what dis dam bad crashing when i walk :( i can play wurm

The logs you posted a few minutes earlier still have you using 32 bit java

Share this post


Link to post
Share on other sites

Raises the question of how much memory would you as a client dev allocate to Wurm, especially if someone dual clients? The 2000mb in the example? I can do 2048mb/2G easily, even over 4G since Im usually running the latest Java release.


 


Also single line batch files are boring:


 


@echo off
color 3
title Wurm Online Launcher
:start
cls
echo Choose client:
echo.
echo 1) Regular
echo 2) Unstable
echo 3) Test
echo 4) Quit
set /p choice=enter your choice #:
if %choice%==1 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient.jnlp
if %choice%==2 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient_unstable.jnlp
if %choice%==3 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient_test.jnlp
exit

  • Like 1

Share this post


Link to post
Share on other sites

Thanks! :) What I've seen tho is that it now takes quite a while for the client to launch. Any way to shorten the loading time? (until the "options screen" shows up, not the log in to the actual game.)


Share this post


Link to post
Share on other sites

As to the question of memory from klaa. After running 64 bit java i still crashed running 2 clients. After adding 4GB of mem to a total of 8 im stable with 2 fullscreen (dual widescreen) clients.


Total memory use is now just under 5GB so going from 4 to 6GB should do the trick i guess.


 


Test only a few days old and also i got a lot of crap running in background.


Share this post


Link to post
Share on other sites

Thanks much....forcing the 64 bit JAVA has appeared to solve all crashing issues.


Share this post


Link to post
Share on other sites

Klaa's fix worked wonders for my game. I was sometimes crashing right at login, sometimes after between 5 and 15 minutes into the game. I had turned all my graphics down and disabled various options to try and counter it. With Klaa's .bat file, I've been playing for days now, with maybe only 1 or 2 crashes that whole time. Very stable, and now I've been able to crank all my graphics up too! Thanks, Klaa!


Share this post


Link to post
Share on other sites

2) If you have 64bit java installed, can create a shortcut off the wurm client. Check properties of the shortcut. Paste everything from the code below to Target.

Make sure Start In have C:\Windows\SysWOW64

The start in folder shouild by C:\Windows\system32. Syswow64 is the 32bit folder (yeah, this looks backwards)

  • Like 1

Share this post


Link to post
Share on other sites

I would love to be able to do this and I cannot find or figure out how to use the neat little program where you can select the version you would like to run. will someone please walk me through it for a win7 home premium. I lost it at #2.


thank you

Share this post


Link to post
Share on other sites

Klaa's fix worked wonders for my game. I was sometimes crashing right at login, sometimes after between 5 and 15 minutes into the game. I had turned all my graphics down and disabled various options to try and counter it. With Klaa's .bat file, I've been playing for days now, with maybe only 1 or 2 crashes that whole time. Very stable, and now I've been able to crank all my graphics up too! Thanks, Klaa!

Share this post


Link to post
Share on other sites

I used Klaa's fix since he made it, and been very happy for it :)


but now nothing happends for me


I cant open game with it anymore


tried deleting it and make a new - didnt fix it


please Klaa any idea of what happend ?


 


 


 


 


 




 


Raises the question of how much memory would you as a client dev allocate to Wurm, especially if someone dual clients? The 2000mb in the example? I can do 2048mb/2G easily, even over 4G since Im usually running the latest Java release.


 


Also single line batch files are boring:



@echo off
color 3
title Wurm Online Launcher
:start
cls
echo Choose client:
echo.
echo 1) Regular
echo 2) Unstable
echo 3) Test
echo 4) Quit
set /p choice=enter your choice #:
if %choice%==1 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient.jnlp
if %choice%==2 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient_unstable.jnlp
if %choice%==3 "C:\Program Files\Java\jre7\bin\Javaws.exe" http://www.wurmonline.com/client/wurmclient_test.jnlp
exit


Share this post


Link to post
Share on other sites

Maybe a Java update changed where your javaws.exe is located. Try searching for it and change the path accordingly


Share this post


Link to post
Share on other sites

Maybe a Java update changed where your javaws.exe is located. Try searching for it and change the path accordingly

got it here

 

C:\Program Files (x86)\Java\jre7\bin\javaw.exe

will test make a new and write that in instead  :)

ty that must be the problem since it havnt worked since last update

 

 

EDIT:

I wrote this:

 

 

@echo off

color 3

title Wurm Online Launcher

:start

cls

echo Choose client:

echo.

echo 1) Regular

echo 2) Unstable

echo 3) Test

echo 4) Quit

set /p choice=enter your choice #:

if %choice%==1 "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" http://www.wurmonline.com/client/wurmclient.jnlp

if %choice%==2 "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" http://www.wurmonline.com/client/wurmclient_unstable.jnlp

if %choice%==3 "C:\Program Files (x86)\Java\jre7\bin\javaw.exe" http://www.wurmonline.com/client/wurmclient_test.jnlp

exit

 

 

BUT still not work

it open the page there i can choose number 2 for unstable and so but that is all :(

Edited by Maiya

Share this post


Link to post
Share on other sites

You want javaws.exe, not javaw.exe :)

TY what  a little s can do :)

Share this post


Link to post
Share on other sites

Aye seems like every major update they go moving the file hierarchy around.


Share this post


Link to post
Share on other sites

Aye seems like every major update they go moving the file hierarchy around.

yah but it have worked since you posted it here so its not too bad :)

Share this post


Link to post
Share on other sites

got it here

 

C:\Program Files (x86)\Java\jre7\bin\javaw.exe

This is the 32bit Java. If you don't have C:\Program Files\Java\jre7 then install 64bit Java as outlined in the very first post.

Javaws.exe may also live in C:\Windows\System32\javaws.exe

Edited by ago

Share this post


Link to post
Share on other sites

This is the 32bit Java. If you don't have C:\Program Files\Java\jre7 then install 64bit Java as outlined in the very first post.

Javaws.exe may also live in C:\Windows\System32\javaws.exe

hmm checked what is running now when i got game going and yes you right

Im tired of java :/

I was at the page and special downloaded for 64 bit

so why now got 32 bit back again I got no clue of :/

 

EDIT:

C:\Program Files\Java\jre7 contains only empty maps

C:\Windows\System32\javaws.exe  not on my comp

 

I only got java on C:\Program Files (x86)\Java\jre7\bin\javaw.exe

 

guess I need ot try toget 64 bit ones again :/

Edited by Maiya

Share this post


Link to post
Share on other sites

I've got the impression the Java 7u51 update removed any old Java version (at least it removed jre6 and jre7u45 for me). You may have accidently installed the 32bit update which may have removed the older 64bit version and installed only the latest 32bit version.

Share this post


Link to post
Share on other sites

yah i know it removed old files of java but never checked back again so i still used 64 bits since i was downloading that


ty for pointing it out for me it explains why i have been crashing alot again lately :/


Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this