Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Implemented Look into this error

Joined
Jan 28, 2017
Messages
492
A lot of users have been posting the following error recently.
java.lang.InternalError: instrument library is missing in target VM
at sun.tools.attach.HotSpotVirtualMachine.loadAgent(fp:30)
at nul.IiiIIiiIIiiii.byte(yub:27)
at nul.IIiiIiiIiiIII.run(ozb:46)
Caused by: com.sun.tools.attach.AgentLoadException: Failed to load agent library
at sun.tools.attach.WindowsVirtualMachine.execute(wo:88)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(fp:12)
at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(fp:19)
at sun.tools.attach.HotSpotVirtualMachine.loadAgent(fp:67)
... 2 more

I took a look for 2 users, and twice runescape was installed on a different drive then C:\.
When installing the Runescape Java client, it doesn't offer to choose a directory, it just picks your default one.

The issue can be resolved by copying E:\users\myuser\jagexcache to C:\users\myuser\jagexcache
Then modify the RS shortcut properties to point to C-drive
(source Bug - All Scripts wont start? (Log In post))

I'm not sure why RuneMate requires files to be present in C:\users\myuser\jagexcache
Correct RS installation path can be pulled from :
HKEY_CLASSES_ROOT\jagex-jav\shell\open\command
HKEY_CLASSES_ROOT\jagex-javs\shell\open\command

Could this be looked into?

The following (unresolved) threads are all due to this problem. I only looked at the first page of the help section.
Bug - "Failed to bind the game because of an AgentinitializationException"
Bug - Bot suddently stuck on loading screen
Bug - Stuck on loading screen infinitely
Bug - Stuck loading after I sign in
Bug - LOADING PROBLEM AGAIN
Question - How do I prevent jagexcache from being installed in OneDrive?
Bug - All Scripts wont start? (Log In post)
Bug - (Log Inside) Failed to Bind Because AgentInitializationException
Question - Client won't load


 
This would potentially also fix the AgentInitializationException when the user enabled OneDrive as default folder with the latest Windows 10 versions.
 
Last edited:
Engineer
Joined
Jul 28, 2013
Messages
2,776
Thank you for this post, this is the most helpful post I've seen regarding these issues and I'll be taking the proposed suggestions into account.
 
My only question is why are their two locations that you suggest be searched, from what I can see they have the same content, but why are there two?
 
Assuming that registry key contains the correct location regardless of where it was installed (I have no way to verify and would like some help in that regard), than this issue is fixed on my end and a release containing it will be published as soon as someone else can help me verify it'll do what we expect.
 
Joined
Jan 28, 2017
Messages
492
The value in the registry keys are identical for me as well.
"C:\Users\<user>\jagexcache\jagexlauncher\bin\JagexLauncher.exe" "runescape" "C:\Users\<user>\jagexcache\jagexlauncher\runescape\runescape.prm" "%1"



C:\Users\<user>\jagexcache\jagexlauncher\bin\hs_err_pid.log dropped a hint. Did some further diging, per jagexlauncher:
2018-08-14 09_57_30-Start.png

It seems to decide how to approach the "jagex-jav://oldschool.runescape.com/jav_config.ws" file (which is the value of System.getProperty("com.jagex.configuri"). Which I believe is passed as a JVM Argument into the application when clicking a RS shortcut/exe.
This redirects to :
OSRS: http://oldschool.runescape.com/jav_config.ws (HTTP)
RS3: https://world1.runescape.com/jav_config.ws?userFlow=146317908382560708 (HTTPS)
(If you access the OSRS one with "HTTPS", you get rerouted to the RS3 one.)
 
perhaps someone with Mac/Linux can also take a look how RS is booted from their device. Since this is limited to Windows (10?).
 
Top