Debug log created during automatic farming

Winterbay

Active member
The recent days my automated farming multi has generated at least one stack trace each day. They all look like this:

Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v15.3 r11294, Windows XP, Java 1.6.0_33
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Please note: do not post this log in the KoLmafia thread. If you
 would like the dev team to look at it, please write a bug report
 at kolmafia.us. Include specific information about what you were 
 doing when you made this and include the log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Timestamp: Tue Jul 17 13:31:40 CEST 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.NullPointerException: null
java.lang.NullPointerException
    at net.sourceforge.kolmafia.textui.command.EditMoodCommand.run(EditMoodCommand.java:99)
    at net.sourceforge.kolmafia.KoLmafiaCLI.doExecuteCommand(KoLmafiaCLI.java:614)
    at net.sourceforge.kolmafia.KoLmafiaCLI.executeCommand(KoLmafiaCLI.java:567)
    at net.sourceforge.kolmafia.KoLmafiaCLI.executeLine(KoLmafiaCLI.java:468)
    at net.sourceforge.kolmafia.textui.RuntimeLibrary.cli_execute(RuntimeLibrary.java:1699)
    at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.sourceforge.kolmafia.textui.parsetree.LibraryFunction.execute(LibraryFunction.java:115)
    at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:169)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:465)
    at net.sourceforge.kolmafia.textui.parsetree.Conditional.execute(Conditional.java:96)
    at net.sourceforge.kolmafia.textui.parsetree.If.execute(If.java:68)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:465)
    at net.sourceforge.kolmafia.textui.parsetree.Loop.execute(Loop.java:59)
    at net.sourceforge.kolmafia.textui.parsetree.WhileLoop.execute(WhileLoop.java:100)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:465)
    at net.sourceforge.kolmafia.textui.parsetree.Conditional.execute(Conditional.java:96)
    at net.sourceforge.kolmafia.textui.parsetree.If.execute(If.java:68)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:465)
    at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:139)
    at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:169)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:465)
    at net.sourceforge.kolmafia.textui.parsetree.Try.execute(Try.java:72)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:465)
    at net.sourceforge.kolmafia.textui.parsetree.Conditional.execute(Conditional.java:96)
    at net.sourceforge.kolmafia.textui.parsetree.If.execute(If.java:68)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:465)
    at net.sourceforge.kolmafia.textui.parsetree.Conditional.execute(Conditional.java:96)
    at net.sourceforge.kolmafia.textui.parsetree.If.execute(If.java:68)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:465)
    at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:139)
    at net.sourceforge.kolmafia.textui.Interpreter.executeScope(Interpreter.java:369)
    at net.sourceforge.kolmafia.textui.Interpreter.execute(Interpreter.java:296)
    at net.sourceforge.kolmafia.textui.Interpreter.execute(Interpreter.java:289)
    at net.sourceforge.kolmafia.textui.command.CallScriptCommand.call(CallScriptCommand.java:217)
    at net.sourceforge.kolmafia.textui.command.CallScriptCommand.run(CallScriptCommand.java:74)
    at net.sourceforge.kolmafia.KoLmafiaCLI.doExecuteCommand(KoLmafiaCLI.java:614)
    at net.sourceforge.kolmafia.KoLmafiaCLI.executeCommand(KoLmafiaCLI.java:567)
    at net.sourceforge.kolmafia.KoLmafiaCLI.executeLine(KoLmafiaCLI.java:468)
    at net.sourceforge.kolmafia.KoLmafiaCLI.executeLine(KoLmafiaCLI.java:336)
    at net.sourceforge.kolmafia.swingui.CommandDisplayFrame$CommandQueueHandler.handleQueue(CommandDisplayFrame.java:190)
    at net.sourceforge.kolmafia.swingui.CommandDisplayFrame$CommandQueueHandler.run(CommandDisplayFrame.java:164)

Does anyone have any idea why this is?

I also had a few horrible relay failures with my main account. I'll post them as well in case there is any kind of connection:
Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v15.3 r11292, Windows XP, Java 1.6.0_33
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Please note: do not post this log in the KoLmafia thread. If you
 would like the dev team to look at it, please write a bug report
 at kolmafia.us. Include specific information about what you were 
 doing when you made this and include the log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Timestamp: Mon Jul 16 20:45:41 CEST 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Horrible relay failure
-----To Browser-----
HTTP/1.1 200 OK
Date: Mon Jul 16 20:45:41 CEST 2012
Server: KoLmafia v15.3
Content-Type: text/css
Connection: close
#monname {
    font-weight: bold;
}

a.error {
    color: #ff0000;
    text-decoration: underline;
}

.element0 {
    color: #000000;
}

.element1 {
    color: #0000ff;
}

.element2 {
    color: #ff0000;
}

.element3 {
    color: #8a2be2;
}

.element4 {
    color: #808080;
}

.element5 {
    color: #008000;
}

.element6 {
    color: #006400;
}

----------
class java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at net.sourceforge.kolmafia.webui.RelayAgent.readBrowserRequest(RelayAgent.java:193)
    at net.sourceforge.kolmafia.webui.RelayAgent.performRelay(RelayAgent.java:154)
    at net.sourceforge.kolmafia.webui.RelayAgent.run(RelayAgent.java:132)
Horrible relay failure


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v15.3 r11292, Windows XP, Java 1.6.0_33
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Please note: do not post this log in the KoLmafia thread. If you
 would like the dev team to look at it, please write a bug report
 at kolmafia.us. Include specific information about what you were 
 doing when you made this and include the log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Timestamp: Mon Jul 16 20:45:41 CEST 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Horrible relay failure
class java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at net.sourceforge.kolmafia.webui.RelayAgent.readBrowserRequest(RelayAgent.java:193)
    at net.sourceforge.kolmafia.webui.RelayAgent.performRelay(RelayAgent.java:154)
    at net.sourceforge.kolmafia.webui.RelayAgent.run(RelayAgent.java:132)
Horrible relay failure
 

Winterbay

Active member
For the farming multi it was
Code:
lose_effect peeled eyeballs => use 1 knob goblin eyedrops
today and for my main it was
Code:
lose_effect empathy => cast 1 empathy of the newt
lose_effect fat leon's phat loot lyric => cast 1 fat leon's phat loot lyric
lose_effect leash of linguini => cast 1 leash of linguini
lose_effect peeled eyeballs => use 1 knob goblin eyedrops
lose_effect polka of plenty => cast 1 the polka of plenty
lose_effect wasabi sinuses => use 1 knob goblin nasal spray

Which is interesting in itself since the script should've added QWOPed up as well:
Code:
cli_execute("trigger gain_effect, QWOPed Up, uneffect QWOPed Up");
 

slyz

Developer
I can't try it right now, but this is probably due to Mafia not knowing that QWOPed Up is an effect.
 

Winterbay

Active member
Well no it doesn't, but it does know about "QWOPped Up" which is apparently the correct name... I'd chalk this down to user error, although it'd probably be better if it stopped execution of the script rather than give a NPE.
 
Top