Bug - Cannot Reproduce Character logs out but Mafia window stays open.

HasteBro

Member
This is happening with my Buffbot client (I keep a separated client for him). Every half-hour or so the character logs out without any sort of warning, no debug log or anything in the session logs that shows he logged out. I have to close the Mafia window and open it again so that I can log back in. That has been happening for the last couple of days.

I Attached some files: The last debug log printed (don't know if it's relevant or not). The last session log (there's a bunch of empty lines, no idea why either). The script where the bug happens most frequently (buffing.ash). The chatbotScript I'm using (hastybotscript.ash). And lastly the farming script I use, the bug happened once during it, also possibly the reason for the empty lines in the session log (session results seems to be doing that.)

I also use a function library, which doesn't have any problems (I use it with other accounts too, and only my Buffbot has the logging out without warning bug).
 

Attachments

  • DEBUG_20120215.txt
    8.8 KB · Views: 55
  • hastybuffer_20120216.txt
    971.9 KB · Views: 47
  • BUFFING.ash
    3.1 KB · Views: 27
  • Hastybotscript.ash
    12.4 KB · Views: 31
  • HastyBuffer Farming.ash
    7.3 KB · Views: 31

HasteBro

Member
I used the "start debug log". The file was too big to attach (3.9MB), but here's the last bit that shows what happens after the CLI stopped showing any messages:

Code:
Loading window: LoginFrame
Preparing for logout...
Sharing mall price data with other users...
Success: Update successful -- no new prices.
Sending logout request...
class net.sourceforge.kolmafia.request.LogoutRequest
Connecting to logout.php...

Requesting: http://www.kingdomofloathing.com/logout.php
1 request properties

Field: User-Agent = [KoLmafia v15.0]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/logout.php

8 header fields
Field: null = [HTTP/1.1 302 Found]
Field: Date = [Fri, 17 Feb 2012 23:52:19 GMT]
Field: Content-Length = [0]
Field: Location = [loggedout.php]
Field: Content-Type = [text/html; charset=UTF-8]
Field: Connection = [keep-alive]
Field: Server = [nginx/0.8.55]
Field: X-Powered-By = [PHP/5.1.6]

Connecting to loggedout.php...

Requesting: http://www.kingdomofloathing.com/loggedout.php
1 request properties

Field: User-Agent = [KoLmafia v15.0]

Retrieving server reply...

Retrieved: http://www.kingdomofloathing.com/loggedout.php

11 header fields
Field: null = [HTTP/1.1 200 OK]
Field: Date = [Fri, 17 Feb 2012 23:52:20 GMT]
Field: Content-Length = [1204]
Field: Expires = [Thu, 19 Nov 1981 08:52:00 GMT]
Field: Set-Cookie = [PHPSESSID=dfh0q2ioetogg3j212d6ip2uf6; path=/]
Field: Content-Type = [text/html; charset=UTF-8]
Field: Connection = [keep-alive]
Field: Server = [nginx/0.8.55]
Field: X-Powered-By = [PHP/5.1.6]
Field: Cache-Control = [no-cache]
Field: Pragma = [no-cache]

<html><head><meta http-equiv="Expires" content="Tue, 01 Jan 2000 12:12:12 GMT"><meta http-equiv="Pragma" content="no-cache"><title>The Kingdom of Loathing</title><script></script><link rel="stylesheet" type="text/css" href="https://images.kingdomofloathing.com/styles.css"></head><body bgcolor=white link=black alink=black vlink=black text=black><center><table cellpadding=5><tr><td><img src="https://images.kingdomofloathing.com/otherimages/leftswordguy.gif"></td><td><center><b><font size=+2>The Kingdom of Loathing</font></b><br>An Adventurer is You!<br></font></center></td><td><img src="https://images.kingdomofloathing.com/otherimages/rightswordguy.gif"></td></table></center><center><table  width=350  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Logged Out</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><font size=+1>You have been logged out.</font><p>Thank you for playing.<p><a href="http://www.kingdomofloathing.com/login.php">log back in</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center><p></body></html></body></html>
Processing results...
Logout request submitted.
Logout completed.


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v15.0 r10521, Windows 7, Java 1.7.0_02
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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: Fri Feb 17 21:52:33 BRST 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

EDIT: I forgot to mention, I'm using r10496.
 
Last edited:

Veracity

Developer
Staff member
That debug log shows that you logged out.

Are you aware that if somebody in a buffbot's clan sends a chat message to it that says "logoff", it logs off? Up until a couple of days ago, it would do a hard exit - no logout to KoL, no logout scripts, nothing but a hard exit. Revision 10518 or so made it do an actual "logout".

But, since you say you are running 10496, I guess that doesn't apply.
 

HasteBro

Member
I didn't know that, but also, nobody sent any chat messages with 'logoff' any of the times this happened, at least nothing in the chat logs show that.

In the debug log, right before the logging out it was the contents of my chatbotScript, but there's no 'logoff' written anywhere in that script.

Anyway, I downloaded the latest build, so I'll see what happens.
 

HasteBro

Member
Well, seems like it's not happening anymore with r10526.

Still weird that it happened. Can a faulty internet connection cause that? I was having some connection problems at the start of the week, about the same time the bug started happening.

But anyway, glad it's not happening anymore.
 
Top