Welcome!

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

Sign up now!

Question [Linux] "Failed to bind to the game client because of an IOException"

Joined
Jun 19, 2017
Messages
3
Hi all, (y)

I've been running RuneMate fine on Ubuntu Linux but have recently switched over to Arch as my distro. I've installed Oracle JDK 8, and the RSU client (same setup I had working in Ubuntu).

I use the standalone .JAR file and run from terminal. It opens, but upon starting the instance I'm given the following error:
Code:
[Debug] Java Home: /usr/lib/jvm/java-8-jdk/jre
[Debug] Java Version: 8u131 x64 (Oracle Corporation)
[Debug] Maximum Heap Size: 864MB
[Debug] RuneMate Version: 2.42.3
[Debug] Operating System: Linux x64
[Web Services] Connection authorized.
Scanned for and identified 1 game frames in 1690ms.
Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
    at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:411)
Caused by: java.lang.IllegalStateException: The root directory was desired to be set to /home/KundaliniRuneMate but was already defined as being /home/Kundalini/RuneMate
    at aux.iiIIIiiiiII.break(rb:338)
    at com.runemate.bind.AttachBridge.agentmain(pc:56)
    ... 6 more
Agent failed to start!
Failed to bind to the game client because of an AgentInitializationException
com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
    at sun.tools.attach.HotSpotVirtualMachine.loadAgent(qu:60)
    at nul.IIIIIiiIIiIIi.super(jyb:134)
    at nul.IIiIIiiIiiIii.run(wac:7)
Scanned for and identified 1 game frames in 1856ms.

I tried to run as 'sudo':

Code:
[Debug] Java Home: /usr/lib/jvm/java-8-jdk/jre
[Debug] Java Version: 8u131 x64 (Oracle Corporation)
[Debug] Maximum Heap Size: 864MB
[Debug] RuneMate Version: 2.42.3
[Debug] Operating System: Linux x64
[Web Services] Connection authorized.
Scanned for and identified 1 game frames in 1928ms.
Failed to bind to the game client because of an IOException
java.io.IOException: well-known file is not secure
    at sun.tools.attach.LinuxVirtualMachine.checkPermissions(Native Method)
    at sun.tools.attach.LinuxVirtualMachine.<init>(mz:88)
    at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(uw:197)
    at com.sun.tools.attach.VirtualMachine.attach(uo:22185)
    at nul.IIIIIiiIIiIIi.super(jyb:36)
    at nul.IIiIIiiIiiIii.run(wac:7)
Scanned for and identified 1 game frames in 1633ms.

Any ideas?
I will try a different desktop environment now just to be sure (currently using GNOME).

Appreciate any help here - much prefer using Arch over Ubuntu but will revert if I must..

Cheers​
 
Fire caper
Joined
May 19, 2015
Messages
296
Delete Jagex cache, uninstall the Runemate spectre and reinstall both of them again.

That's something that is worth trying if you haven't done so yet.
 
Joined
Jun 19, 2017
Messages
3
Done ^
Thanks for the suggestion :)

Unfortunately I had no luck. I tried running with Oracle JRE instead of Oracle JDK. Now I'm getting the following:

Code:
[kundalini@kpc Downloads]$ sudo java -jar RuneMate.jar -Dprism.order=sw VM
[Debug] Java Home: /usr/lib/jvm/java-8-jre/jre
[Debug] Java Version: 8u131 x64 (Oracle Corporation)
[Debug] Maximum Heap Size: 864MB
[Debug] RuneMate Version: 2.42.3
[Debug] Operating System: Linux x64
[Web Services] Connection authorized.
Scanned for and identified 1 game frames in 2138ms.
Exception in thread "29567 - Fizz WC Guild" java.lang.UnsatisfiedLinkError: no attach in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at sun.tools.attach.LinuxVirtualMachine.<clinit>(mz:17498)
    at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(uw:197)
    at com.sun.tools.attach.VirtualMachine.attach(uo:22185)
    at nul.IIIIIiiIIiIIi.super(jyb:36)
    at nul.IIiIIiiIiiIii.run(wac:7)
 
Fire caper
Joined
May 19, 2015
Messages
296
Done ^
Thanks for the suggestion :)

Unfortunately I had no luck. I tried running with Oracle JRE instead of Oracle JDK. Now I'm getting the following:

Code:
[kundalini@kpc Downloads]$ sudo java -jar RuneMate.jar -Dprism.order=sw VM
[Debug] Java Home: /usr/lib/jvm/java-8-jre/jre
[Debug] Java Version: 8u131 x64 (Oracle Corporation)
[Debug] Maximum Heap Size: 864MB
[Debug] RuneMate Version: 2.42.3
[Debug] Operating System: Linux x64
[Web Services] Connection authorized.
Scanned for and identified 1 game frames in 2138ms.
Exception in thread "29567 - Fizz WC Guild" java.lang.UnsatisfiedLinkError: no attach in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at sun.tools.attach.LinuxVirtualMachine.<clinit>(mz:17498)
    at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(uw:197)
    at com.sun.tools.attach.VirtualMachine.attach(uo:22185)
    at nul.IIIIIiiIIiIIi.super(jyb:36)
    at nul.IIiIIiiIiiIii.run(wac:7)

Have you tried to run other bots with the spectre?
 
Joined
Apr 14, 2017
Messages
4
I am using runemate bots for a few months now and never had issues until about a week ago. I keep getting the following errors when I want to start:
- failed to bind to the game client because of an exception
- failed to bind to the game client because of an AgentInitializationexception

I have added the most recent logs, can someone help me out?
 

Attachments

  • 06-21 20 12 18 - spectre.txt
    2.3 KB · Views: 3
  • 06-21 20 13 06 - game.txt
    2.6 KB · Views: 2
Engineer
Joined
Jul 28, 2013
Messages
2,776
I am using runemate bots for a few months now and never had issues until about a week ago. I keep getting the following errors when I want to start:
- failed to bind to the game client because of an exception
- failed to bind to the game client because of an AgentInitializationexception

I have added the most recent logs, can someone help me out?
Have you installed a new firewall or antivirus recently? Have you tried running RuneMate as an admin?
 
Joined
Jun 19, 2017
Messages
3
No


Yes but makes no difference.

Not sure if it relates to your issue, but I am now able to run using the standalone .jar file thru terminal. Maybe try that?

EDIT: Resolved by switching to Ubuntu Linux w/ KDE as desktop .JAR file works perfectly as of June, 2017.
 
Top