1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Client & Site Support' started by Kundalini, Jun 19, 2017.

  1. Kundalini

    Joined:
    Jun 19, 2017
    Messages:
    3
    Likes Received:
    0
    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 (Text):
    1. [Debug] Java Home: /usr/lib/jvm/java-8-jdk/jre
    2. [Debug] Java Version: 8u131 x64 (Oracle Corporation)
    3. [Debug] Maximum Heap Size: 864MB
    4. [Debug] RuneMate Version: 2.42.3
    5. [Debug] Operating System: Linux x64
    6. [Web Services] Connection authorized.
    7. Scanned for and identified 1 game frames in 1690ms.
    8. Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException
    9.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    11.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    12.     at java.lang.reflect.Method.invoke(Method.java:498)
    13.     at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
    14.     at sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:411)
    15. 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
    16.     at aux.iiIIIiiiiII.break(rb:338)
    17.     at com.runemate.bind.AttachBridge.agentmain(pc:56)
    18.     ... 6 more
    19. Agent failed to start!
    20. Failed to bind to the game client because of an AgentInitializationException
    21. com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
    22.     at sun.tools.attach.HotSpotVirtualMachine.loadAgent(qu:60)
    23.     at nul.IIIIIiiIIiIIi.super(jyb:134)
    24.     at nul.IIiIIiiIiiIii.run(wac:7)
    25. Scanned for and identified 1 game frames in 1856ms.
    26.  
    I tried to run as 'sudo':

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

    Jaakkol Fire caper

    Joined:
    May 19, 2015
    Messages:
    293
    Likes Received:
    76
    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.
     
  3. Kundalini

    Joined:
    Jun 19, 2017
    Messages:
    3
    Likes Received:
    0
    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 (Text):
    1. [kundalini@kpc Downloads]$ sudo java -jar RuneMate.jar -Dprism.order=sw VM
    2. [Debug] Java Home: /usr/lib/jvm/java-8-jre/jre
    3. [Debug] Java Version: 8u131 x64 (Oracle Corporation)
    4. [Debug] Maximum Heap Size: 864MB
    5. [Debug] RuneMate Version: 2.42.3
    6. [Debug] Operating System: Linux x64
    7. [Web Services] Connection authorized.
    8. Scanned for and identified 1 game frames in 2138ms.
    9. Exception in thread "29567 - Fizz WC Guild" java.lang.UnsatisfiedLinkError: no attach in java.library.path
    10.     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
    11.     at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    12.     at java.lang.System.loadLibrary(System.java:1122)
    13.     at sun.tools.attach.LinuxVirtualMachine.<clinit>(mz:17498)
    14.     at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(uw:197)
    15.     at com.sun.tools.attach.VirtualMachine.attach(uo:22185)
    16.     at nul.IIIIIiiIIiIIi.super(jyb:36)
    17.     at nul.IIiIIiiIiiIii.run(wac:7)
    18.  
     
  4. Jaakkol

    Jaakkol Fire caper

    Joined:
    May 19, 2015
    Messages:
    293
    Likes Received:
    76
    Have you tried to run other bots with the spectre?
     
  5. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,216
    Likes Received:
    1,043
    @Cloud the IllegalStateException in the first snippet seems interesting
     
  6. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    I agree, and I may know a potential fix but I'm hesitant to deploy it since it could break existing linux support for other cases.
     
  7. osrskevin

    Joined:
    Apr 14, 2017
    Messages:
    4
    Likes Received:
    0
    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?
     

    Attached Files:

  8. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Have you installed a new firewall or antivirus recently? Have you tried running RuneMate as an admin?
     
  9. osrskevin

    Joined:
    Apr 14, 2017
    Messages:
    4
    Likes Received:
    0
    No

    Yes but makes no difference.
     
  10. Kundalini

    Joined:
    Jun 19, 2017
    Messages:
    3
    Likes Received:
    0
    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.
     

Share This Page

Loading...