Sign in to follow this  
Gorefiend

[Resolved] Java and "hybrid" videocards

Recommended Posts

Problem: On a system with two videocards, integrated and external, client crashes, if integrated card is disabled, after system restart.

 

Intro: One of my laptop has "hybrid" videocard, i.e. integrated Intel HD 5500 and external geForce 920M. basically, Intel is responsible for desktop windows, but when i'm running a game - it runs on geForce. In a case of WURM, there is no "executable", it's jnlp, web-loading, so it always runs on a desktop card, intel HD5500. which makes game unplayable at high settings:

 

Spoiler

qt9a7Ed.jpg

 

 

1. Both cards are up.
2. WURM is running

3. External card is inactive (i.e. it's running on crappy Intel card)

 

 and i was unable to find a way, to tell web-java-launcher, that he should run a game on external, geForce, videocard. therefore, i just disabled Intel HD driver in Device Manager, and after that game was running at high resolution et cetera pretty smoothly. But after restarting the laptop i was unable to launch a client: 

 

Spoiler

====== CLIENT CRASH ======
Unexpected crash while playing
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(Unknown Source)
    at org.lwjgl.opengl.WindowsDisplay.getAdapter(WindowsDisplay.java:473)
    at org.lwjgl.opengl.Display.getAdapter(Display.java:1182)
    at com.wurmonline.client.WurmClientBase.run(SourceFile:39079)
    at java.lang.Thread.run(Unknown Source)

 

To reproduce:

 

1. Find a laptop with 2 videocards, integrated and normal one

2. Disable intgrated videocard and run a client.

3. Restart the laptop, run WURM, and enjoy "Oops" screen

 

Workaround: 

1. Open Device Manager

2. Enable integrated driver

3. Disable integrated driver

4. Run WURM

 

it will run on external videocard at high setting and you will be happy:

 

Spoiler

QQdVFDC.jpg

 

1. Integrated card is down

2. Wurm is running on an external videocard.

 

until next restart, though. 

 

I'm posting this to "Other bugs and issues" section because i think, that this is not a WURM client or server problem. This looks rather like JVM problem, looks like it tries to initiate first display found without checking is it active or not. but hopefully this info may save some nerves to the happy owners of laptop with "hybrid" videocards.

Share this post


Link to post
Share on other sites

cannot check it atm. but i think, this will not work, because our client is not a regular executable, it's a .jnlp file. i will check and get back with details.

Share this post


Link to post
Share on other sites

If it helps, I did a quick test and it allows me to add the java launcher as a program:

76b5b9d8e7.png

 

Not sure if this will also add the other java elements though. Testing needed.

  • Like 2

Share this post


Link to post
Share on other sites

you're right, works like charm. with both cards enabled, and after restart.

 

guess, this topic may be closed, since this issue is more likely related to guys from Oracle, then to WURM dev-team. 

  • Like 2

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