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

Bug Non-numeric value found - int expected - Macbook Pro '17

Discussion in 'Client & Site Support' started by JontyMcNab, Nov 12, 2018.

  1. JontyMcNab

    Joined:
    Nov 12, 2018
    Messages:
    4
    Likes Received:
    1
    Yeah so initially i had issue's running osrs without runemate, i couldnt be bothered to fix it so i used runelite and all was good. Been botting with other software since on OSRS and RS3.

    Anyway decided to test runemate today and i was unable to attach to runelite so tried to fix my osrs client.

    I'm running Java10/11 (I can't just "delete and install java8" as i'm a freelance backend developer and i need java10+ (who doesnt use updated java versions anyway?).
    Anyway, i was able to run osrs client after running the following commands:

    Code (Text):
    1. /usr/libexec/PlistBuddy -c "Delete :JVMOptions:7" /Applications/Old\ School\ RuneScape.app/Contents/Info.plist
    Code (Text):
    1.  
    2. /Applications/Old\ School\ RuneScape.app/Contents/MacOS/JavaAppLauncher
    and its able to run. OT: i hope code formatting is enabled, otherwise i'll look silly.

    Yet now i'm able to run OSRS i cant attach to the client due to an IOException, heres my log:

    Code (Text):
    1.  
    2.  
    3. [Debug] Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre
    4. [Debug] Java Version: 8u181 x64 (Oracle Corporation)
    5. [Debug] Maximum Heap Size: 683MB
    6. [Debug] RuneMate Version: 2.90.0
    7. [Debug] Operating System: Mac OS X x64
    8. [Clouse] Downloaded 1000 human mouse movements selected for you by Clouse.
    9. [Notice] Your bot list has been refreshed.
    10. Checking for a new game client every second for two minutes or until one is found.
    11. Checking for a new game client every second for two minutes or until one is found.
    12. Found a new game instance after 78 seconds.
    13. java.io.IOException: Non-numeric value found - int expected
    14.    at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
    15.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
    16.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
    17.    at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
    18.    at nul.IIIIiIiiiiIII.int(ozc:25)
    19.    at nul.iiIIIIiiIiIii.run(pyc:217)
    20. java.io.IOException: Non-numeric value found - int expected
    21.    at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
    22.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
    23.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
    24.    at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
    25.    at nul.IIIIiIiiiiIII.int(ozc:25)
    26.    at nul.iiIIIIiiIiIii.run(pyc:217)
    27. java.io.IOException: Non-numeric value found - int expected
    28.    at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
    29.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
    30.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
    31.    at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
    32.    at nul.IIIIiIiiiiIII.int(ozc:25)
    33.    at nul.iiIIIIiiIiIii.run(pyc:217)
    34. java.io.IOException: Non-numeric value found - int expected
    35.    at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
    36.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
    37.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
    38.    at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
    39.    at nul.IIIIiIiiiiIII.int(ozc:25)
    40.    at nul.iiIIIIiiIiIii.run(pyc:217)
    41. Checking for a new game client every second for two minutes or until one is found.
    42. Found a new game instance after 3 seconds.
    43. java.io.IOException: Non-numeric value found - int expected
    44.    at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
    45.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
    46.    at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
    47.    at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
    48.    at nul.IIIIiIiiiiIII.int(ozc:25)
    49.    at nul.iiIIIIiiIiIii.run(pyc:217)
    More info:

    Code (Text):
    1.  
    2. java -version
    3. java version "11" 2018-09-25
    4. Java(TM) SE Runtime Environment 18.9 (build 11+28)
    5. Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)
    and no conflicting java packages:

    Code (Text):
    1.  
    2.  brew ls
    3. adwaita-icon-theme       gtksourceview3           neovim
    4. aspell               harfbuzz           node
    5. atk               hicolor-icon-theme       openssl
    6. cairo               icu4c               pango
    7. curl               iso-codes           pcre
    8. enchant               jemalloc           pcre2
    9. fontconfig           jpeg               pixman
    10. freetype           libcroco           pkg-config
    11. fribidi               libepoxy           py2cairo
    12. gd               libffi               py3cairo
    13. gdbm               libidn2               pygobject
    14. gdk-pixbuf           libpeas               pygobject3
    15. gedit               libpng               pygtk
    16. gettext               librsvg               python
    17. git               libtermkey           python@2
    18. glib               libtiff               readline
    19. gobject-introspection       libtool               sqlite
    20. gradle               libunistring           unibilium
    21. graphite2           libuv               vala
    22. graphviz           libvterm           watch
    23. gsettings-desktop-schemas   libxml2               webp
    24. gspell               luajit               wget
    25. gtk+               maven               xz
    26. gtk+3               mongodb
    27. gtk-mac-integration       msgpack
    28.  
    I also think theres something to do with alias' so i've changed my .bash_profile to:

    Code (Text):
    1.  
    2.  
    3. export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
    4. export JAVA_10_HOME=$(/usr/libexec/java_home -v10)
    5. export JAVA_11_HOME=$(/usr/libexec/java_home -v11)
    6.  
    7. alias java8='export JAVA_HOME=$JAVA_8_HOME'
    8. alias java10='export JAVA_HOME=$JAVA_10_HOME'
    9. alias java11='export JAVA_HOME=$JAVA_11_HOME'
    10.  
    11. java11
    12.  
    Still nothing, heres my
    Code (Text):
    1. Macbook:JavaVirtualMachines ****$ ls
    2. jdk-10.0.1.jdk       jdk-11.jdk       jdk1.8.0_181.jdk

    i think its compatibility with runemate/osrs launchers and Mac OSX, i launched OSRS from terminal and it's booting in jdk10:

    Code (Text):
    1.  
    2. /Applications/Old\ School\ RuneScape.app/Contents/MacOS/JavaAppLauncher
    3. Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
    4. Java Version: 10.0.1
    5. Startup config url:http://oldschool.runescape.com/jav_config.ws
    6. Config URL is http://oldschool.runescape.com/jav_config.ws
    7. Received command: resize
    8.  

    --- Double Post Merged, Nov 12, 2018, Original Post Date: Nov 12, 2018 ---
    [FIXED]
    I used my .bash_profile to change current jdk to jdk8

    use this in your .bash_profile folder
    Code (Text):
    1.  
    2.  
    3. export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
    4. export JAVA_10_HOME=$(/usr/libexec/java_home -v10)
    5. export JAVA_11_HOME=$(/usr/libexec/java_home -v11)
    6.  
    7. alias java8='export JAVA_HOME=$JAVA_8_HOME'
    8. alias java10='export JAVA_HOME=$JAVA_10_HOME'
    9. alias java11='export JAVA_HOME=$JAVA_11_HOME'
    10.  
    11. java11
    12.  
    then before you run your ./runemate.sh type
    Code (Text):
    1. java8
     

Share This Page

Loading...