Welcome!

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

Sign up now!

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

Joined
Nov 12, 2018
Messages
4
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:
/usr/libexec/PlistBuddy -c "Delete :JVMOptions:7" /Applications/Old\ School\ RuneScape.app/Contents/Info.plist

Code:
/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:
[Debug] Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre
[Debug] Java Version: 8u181 x64 (Oracle Corporation)
[Debug] Maximum Heap Size: 683MB
[Debug] RuneMate Version: 2.90.0
[Debug] Operating System: Mac OS X x64
[Clouse] Downloaded 1000 human mouse movements selected for you by Clouse.
[Notice] Your bot list has been refreshed.
Checking for a new game client every second for two minutes or until one is found.
Checking for a new game client every second for two minutes or until one is found.
Found a new game instance after 78 seconds.
java.io.IOException: Non-numeric value found - int expected
   at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
   at nul.IIIIiIiiiiIII.int(ozc:25)
   at nul.iiIIIIiiIiIii.run(pyc:217)
java.io.IOException: Non-numeric value found - int expected
   at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
   at nul.IIIIiIiiiiIII.int(ozc:25)
   at nul.iiIIIIiiIiIii.run(pyc:217)
java.io.IOException: Non-numeric value found - int expected
   at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
   at nul.IIIIiIiiiiIII.int(ozc:25)
   at nul.iiIIIIiiIiIii.run(pyc:217)
java.io.IOException: Non-numeric value found - int expected
   at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
   at nul.IIIIiIiiiiIII.int(ozc:25)
   at nul.iiIIIIiiIiIii.run(pyc:217)
Checking for a new game client every second for two minutes or until one is found.
Found a new game instance after 3 seconds.
java.io.IOException: Non-numeric value found - int expected
   at sun.tools.attach.HotSpotVirtualMachine.readInt(ria:21863)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:129)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(ria:157)
   at sun.tools.attach.HotSpotVirtualMachine.loadAgent(ria:11)
   at nul.IIIIiIiiiiIII.int(ozc:25)
   at nul.iiIIIIiiIiIii.run(pyc:217)

More info:

Code:
java -version
java version "11" 2018-09-25
Java(TM) SE Runtime Environment 18.9 (build 11+28)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11+28, mixed mode)

and no conflicting java packages:

Code:
 brew ls
adwaita-icon-theme       gtksourceview3           neovim
aspell               harfbuzz           node
atk               hicolor-icon-theme       openssl
cairo               icu4c               pango
curl               iso-codes           pcre
enchant               jemalloc           pcre2
fontconfig           jpeg               pixman
freetype           libcroco           pkg-config
fribidi               libepoxy           py2cairo
gd               libffi               py3cairo
gdbm               libidn2               pygobject
gdk-pixbuf           libpeas               pygobject3
gedit               libpng               pygtk
gettext               librsvg               python
git               libtermkey           python@2
glib               libtiff               readline
gobject-introspection       libtool               sqlite
gradle               libunistring           unibilium
graphite2           libuv               vala
graphviz           libvterm           watch
gsettings-desktop-schemas   libxml2               webp
gspell               luajit               wget
gtk+               maven               xz
gtk+3               mongodb
gtk-mac-integration       msgpack

I also think theres something to do with alias' so i've changed my .bash_profile to:

Code:
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_10_HOME=$(/usr/libexec/java_home -v10)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)

alias java8='export JAVA_HOME=$JAVA_8_HOME'
alias java10='export JAVA_HOME=$JAVA_10_HOME'
alias java11='export JAVA_HOME=$JAVA_11_HOME'

java11

Still nothing, heres my
Code:
Macbook:JavaVirtualMachines ****$ ls
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:
/Applications/Old\ School\ RuneScape.app/Contents/MacOS/JavaAppLauncher
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.
Java Version: 10.0.1
Startup config url:http://oldschool.runescape.com/jav_config.ws
Config URL is http://oldschool.runescape.com/jav_config.ws
Received command: resize
 
[FIXED]
I used my .bash_profile to change current jdk to jdk8

use this in your .bash_profile folder
Code:
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_10_HOME=$(/usr/libexec/java_home -v10)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)

alias java8='export JAVA_HOME=$JAVA_8_HOME'
alias java10='export JAVA_HOME=$JAVA_10_HOME'
alias java11='export JAVA_HOME=$JAVA_11_HOME'

java11

then before you run your ./runemate.sh type
Code:
java8
 
Top