Bug - Cannot Reproduce Error initializing chat interface

slyz

Developer
This is happening to me today during login, with r8559, I have no idea why:
Code:
Validating login server (www2.kingdomofloathing.com)...
917 players online.
Sending login request...
Initializing session for slyz...
Refreshing session data...
Synchronizing moon data...
Retrieving character data...
Retrieving familiar data...
Familiar data retrieved.
Refreshing closet...
Updating consumable items...
Updating miscellaneous items...
Refreshing stickers...
Retrieving campground data...
Session data refreshed.
You have a present under the Crimbo tree in your clan's VIP lounge!
Initializing chat interface...
Error during session initialization

The login stops here, without executing my logon script.

I'll post the debug log here because it's small
Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
            KoLmafia r8559, Windows XP, Java 1.6.0_20
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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 27 20:42:45 CEST 2010
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Error during session initialization
class java.lang.ArrayIndexOutOfBoundsException: 1
java.lang.ArrayIndexOutOfBoundsException: 1
	at net.sourceforge.kolmafia.chat.StyledChatBuffer.initializeHighlights(StyledChatBuffer.java:72)
	at net.sourceforge.kolmafia.chat.ChatManager.initialize(ChatManager.java:108)
	at net.sourceforge.kolmafia.KoLmafiaGUI.constructFrame(KoLmafiaGUI.java:253)
	at net.sourceforge.kolmafia.KoLmafiaGUI.initialize(KoLmafiaGUI.java:210)
	at net.sourceforge.kolmafia.KoLmafia.login(KoLmafia.java:692)
	at net.sourceforge.kolmafia.request.LoginRequest.processLoginRequest(LoginRequest.java:434)
	at net.sourceforge.kolmafia.request.GenericRequest.handleServerRedirect(GenericRequest.java:1527)
	at net.sourceforge.kolmafia.request.GenericRequest.retrieveServerReply(GenericRequest.java:1457)
	at net.sourceforge.kolmafia.request.GenericRequest.execute(GenericRequest.java:1173)
	at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1064)
	at net.sourceforge.kolmafia.request.LoginRequest.run(LoginRequest.java:288)
	at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:73)
	at net.sourceforge.kolmafia.KoLmafiaGUI.initialize(KoLmafiaGUI.java:129)
	at net.sourceforge.kolmafia.KoLmafia.main(KoLmafia.java:475)

I can't get the chat to start afterwards, but the rest of Mafia seems to be working.


EDIT: the KoLMafia chat window appeared once I logged into the chat via the Relay Browser.
 
Last edited:

slyz

Developer
Sorry for the double post, I just wanted to put a little more info out here.
It seems like the rest of Mafia isn't working all that well apparently. This is still r8559, with a fresh installation (well, a new folder where I only moved settings and essential scripts).

In this bit, I set Mafia to auto-adventure for 2 adventures in the Haunted Library, and added an agua de vida as a goal. Mafia went on adventuring without the usual adventure logging, as if it didn't realize turns were being spent. It doesn't even stop when the sandworm drops an agua.
Code:
Condition added: agua de vida
agua de vida
Validating adventure sequence...
Condition added: agua de vida
agua de vida

Request 1 of 2 (Manor1: Haunted Library) in progress...

[4617] Haunted Library
Encounter: Take a Look, it's in a Book!
Round 0: slyz attacks!
Encounter: bookbat
Strategy: attack with weapon
Round 0: slyz wins initiative!
Round 0: slyz tries to steal an item! (auto-attack)
Round 2: slyz attacks!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: bookbat takes 292 damage.
You acquire an item: tattered scrap of paper
After Battle: Dusty smiles a three-lipped smile from beneath the shade of his little sombrero.
You gain 4 Strongness
You gain 7 Wizardliness
You gain 9 Cheek
Round 0: slyz attacks!
Encounter: banshee librarian
Strategy: attack with weapon
Round 0: slyz wins initiative!
Round 0: slyz tries to steal an item! (auto-attack)
Round 2: slyz attacks!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: banshee librarian takes 289 damage.
After Battle: Dusty smiles a three-lipped smile from beneath the shade of his little sombrero.
You gain 7 Beefiness
You gain 4 Mysteriousness
You gain 10 Sarcasm
Encounter: Take a Look, it's in a Book!
Round 0: slyz attacks!
Encounter: bookbat
Strategy: attack with weapon
Round 0: slyz wins initiative!
Round 0: slyz tries to steal an item! (auto-attack)
Round 2: slyz attacks!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: bookbat takes 296 damage.
After Battle: Dusty leans against a cactus, produces a bottle of tequila, and drinks it. A few minutes later, he belches some murky fluid back into the bottle and hands it to you.
You acquire an item: agua de vida
You gain 3 Strongness
You gain 5 Wizardliness
You gain 8 Sarcasm
Encounter: Take a Look, it's in a Book!
Round 0: slyz attacks!
Encounter: bookbat
Strategy: attack with weapon
Round 0: slyz wins initiative!
Round 0: slyz tries to steal an item! (auto-attack)
Round 2: slyz attacks!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: bookbat takes 294 damage.
After Battle: Dusty smiles a three-lipped smile from beneath the shade of his little sombrero.
You gain 5 Strongness
You gain 7 Mysteriousness
You gain 8 Roguishness
KoLmafia declares world peace.
Encounter: bookbat
Strategy: attack with weapon
Round 0: slyz wins initiative!
Round 0: slyz tries to steal an item! (auto-attack)

Round 2: slyz attacks!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: bookbat takes 296 damage.
You acquire an item: tattered scrap of paper
After Battle: Dusty smiles a three-lipped smile from beneath the shade of his little sombrero.
You gain 4 Strengthliness
You gain 6 Wizardliness
You gain 11 Smarm

Here is the debug log. A lot of -----To Browser----- and -----From Browser----- is going on that I don't recall seeing in other debug logs. Apparently it has something to do with newchatmessages.php.

Any idea if this is Firefox's fault?
 

Attachments

  • DEBUG_20100727.txt
    934.1 KB · Views: 125
Top