Bug Kolmafia takes over a minute to open up after clicking login

Not sure if I have any settings that affect the load up time. Please see attached debug log.
 

Attachments

  • DEBUG_20221129.txt
    783.2 KB · Views: 4

Veracity

Developer
Staff member
These are the requests from your DEBUG log:

Code:
Requesting: https://www.kingdomofloathing.com/login.php
Requesting: https://www.kingdomofloathing.com/actionbar.php?action=fetch
Requesting: https://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/main.php
Requesting: https://www.kingdomofloathing.com/topmenu.php
Requesting: https://www.kingdomofloathing.com/charsheet.php
Requesting: https://www.kingdomofloathing.com/api.php?what=inventory&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/closet.php?which=1
Requesting: https://www.kingdomofloathing.com/api.php?what=closet&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/account_manageoutfits.php
Requesting: https://www.kingdomofloathing.com/questlog.php?which=3
Requesting: https://www.kingdomofloathing.com/questlog.php?which=2
Requesting: https://www.kingdomofloathing.com/questlog.php?which=1
Requesting: https://www.kingdomofloathing.com/familiar.php
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=chateau
Requesting: https://www.kingdomofloathing.com/campground.php?action=inspectdwelling
Requesting: https://www.kingdomofloathing.com/campground.php?action=bookshelf
Requesting: https://www.kingdomofloathing.com/campground.php?action=inspectkitchen
Requesting: https://www.kingdomofloathing.com/campground.php?action=workshed
Requesting: https://www.kingdomofloathing.com/cafe.php?cafeid=2
Requesting: https://www.kingdomofloathing.com/peevpee.php?place=fight
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=697608546
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=311743898
Requesting: https://www.kingdomofloathing.com/desc_effect.php?whicheffect=297ee9fadfb5560e5142e0b3a88456db
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=651314979
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=712482724
Requesting: https://www.kingdomofloathing.com/showplayer.php?who=1965526
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?whichfloor=2
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=hotdogstand
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=speakeasy&whichfloor=2
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=floundry
Requesting: https://www.kingdomofloathing.com/clan_rumpus.php?action=click&spot=7
Requesting: https://www.kingdomofloathing.com/account_contactlist.php
Requesting: https://www.kingdomofloathing.com/standard.php?date=2020-01-02&pwd
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=forestvillage&action=fv_friar
Requesting: https://www.kingdomofloathing.com/inventory.php?ponder=1
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/inventory.php?reminisce=1
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/guild.php
Requesting: https://www.kingdomofloathing.com/game.php
Requesting: https://www.kingdomofloathing.com/charpane.php
Requesting: https://www.kingdomofloathing.com/topmenu.php
Requesting: https://www.kingdomofloathing.com/chatlaunch.php
Requesting: https://www.kingdomofloathing.com/main.php
It's a lot, but it all seems normal.
I'm not sure what-all the various desc_item things are, but you've been around for a long time and I assume you have a fair number of IOTM things that we have to look at when you log in to see their current enchantments.

I'll look more tomorrow, but, 47 requests to KoL taking over a minute?
How fast is your internet connection?
How fast is your CPU for processing those pages?
 

Veracity

Developer
Staff member
FWIW, I joined KoL 5 years before you. I also have a lot of IOTMS and such.
Here are the requests that are executed for me - after clicking "login":

Code:
Requesting: https://www.kingdomofloathing.com/login.php
Requesting: https://www.kingdomofloathing.com/actionbar.php?action=fetch
Requesting: https://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=640494952
Requesting: https://www.kingdomofloathing.com/main.php
Requesting: https://www.kingdomofloathing.com/topmenu.php
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=809051828
Requesting: https://www.kingdomofloathing.com/charsheet.php
Requesting: https://www.kingdomofloathing.com/api.php?what=inventory&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/closet.php?which=1
Requesting: https://www.kingdomofloathing.com/api.php?what=closet&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/account_manageoutfits.php
Requesting: https://www.kingdomofloathing.com/questlog.php?which=3
Requesting: https://www.kingdomofloathing.com/questlog.php?which=2
Requesting: https://www.kingdomofloathing.com/questlog.php?which=1
Requesting: https://www.kingdomofloathing.com/familiar.php
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=chateau
Requesting: https://www.kingdomofloathing.com/campground.php?action=inspectdwelling
Requesting: https://www.kingdomofloathing.com/campground.php?action=bookshelf
Requesting: https://www.kingdomofloathing.com/campground.php?action=inspectkitchen
Requesting: https://www.kingdomofloathing.com/campground.php?action=workshed
Requesting: https://www.kingdomofloathing.com/shop.php?whichshop=mayoclinic
Requesting: https://www.kingdomofloathing.com/peevpee.php?place=fight
Requesting: https://www.kingdomofloathing.com/storage.php?which=5
Requesting: https://www.kingdomofloathing.com/api.php?what=storage&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=239178788
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=697608546
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=311743898
Requesting: https://www.kingdomofloathing.com/desc_skill.php?whichskill=7323&self=true
Requesting: https://www.kingdomofloathing.com/desc_effect.php?whicheffect=e9c3b4f9a7f9b24166b835481f15c875
Requesting: https://www.kingdomofloathing.com/desc_effect.php?whicheffect=8de6fb855433dc4b90fb4dbc2a5c919d
Requesting: https://www.kingdomofloathing.com/desc_effect.php?whicheffect=297ee9fadfb5560e5142e0b3a88456db
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=294224337
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=651314979
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=712482724
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=town_right&action=town_horsery
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/desc_familiar.php?which=189
Requesting: https://www.kingdomofloathing.com/showplayer.php?who=121572
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=fwshop
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?whichfloor=2
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=crimbotree
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=hotdogstand
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=speakeasy&whichfloor=2
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=floundry
Requesting: https://www.kingdomofloathing.com/clan_rumpus.php?action=click&spot=7
Requesting: https://www.kingdomofloathing.com/account_contactlist.php
Requesting: https://www.kingdomofloathing.com/standard.php?date=2020-01-02&pwd
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=forestvillage&action=fv_friar
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=720&option=4
Requesting: https://www.kingdomofloathing.com/inventory.php?ponder=1
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/inventory.php?reminisce=1
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=529185925
Requesting: https://www.kingdomofloathing.com/shop.php?whichshop=still
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=1
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=3
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=4
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=6
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=9
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=11
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=12
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=14
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Observations:

1) 87 vs. 47 requests. 28 of those were from auto_mushroom.ash
2) You have a bunch of things - like game.php - which make me think you are launching the relay browser upon startup.
Is that true? I don't do that. I just login and start the GUI and when I am finally ready to adventure in the browser, I launch the Relay Browser.
3) I have an Apple M1 processor and 1G internet. From "Login" to "GUI is ready and no more requests are happening" takes about 15 seconds.

So, I guess an additional question is:

Are you opening the Relay Browser on login? And does your "more than 1 minute" therefore include the length of time for your browser to start up and open the window and make additional requests from KoL?
 

MCroft

Developer
Staff member
searching on date = , I found line 3543
Rich (BB code):
Retrieved: https://www.kingdomofloathing.com/choice.php?forceoption=0
11 header fields
Field: :status = [200]
Field: cache-control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: content-encoding = [gzip]
Field: content-type = [text/html; charset=UTF-8]
Field: date = [Tue, 29 Nov 2022 04:07:42 GMT]

The next date entry is line 3946
Rich (BB code):
Retrieved: https://www.kingdomofloathing.com/guild.php
11 header fields
Field: :status = [200]
Field: cache-control = [no-store, no-cache, must-revalidate, post-check=0, pre-check=0]
Field: content-encoding = [gzip]
Field: content-type = [text/html; charset=UTF-8]
Field: date = [Tue, 29 Nov 2022 04:08:49 GMT]

So that's your minute. In those 400 lines we should find the issue.
So, we're reminiscing about those monsters we caught (locket) in the first bit. There's also a player snapshot in there.

But what makes me think Veracity is absolutely correct is that just before the 3946 entry, there's an entry for
Rich (BB code):
class net.sourceforge.kolmafia.request.RelayRequest
Connecting to game.php...

Like Veracity, I don't start the relay browser until the game is up. Sometimes I just want to run a script. Is your browser up when you start up KoLmafia or does it have to launch it.
 
FWIW, I joined KoL 5 years before you. I also have a lot of IOTMS and such.
Here are the requests that are executed for me - after clicking "login":

Code:
Requesting: https://www.kingdomofloathing.com/login.php
Requesting: https://www.kingdomofloathing.com/actionbar.php?action=fetch
Requesting: https://www.kingdomofloathing.com/api.php?what=status&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=640494952
Requesting: https://www.kingdomofloathing.com/main.php
Requesting: https://www.kingdomofloathing.com/topmenu.php
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=809051828
Requesting: https://www.kingdomofloathing.com/charsheet.php
Requesting: https://www.kingdomofloathing.com/api.php?what=inventory&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/closet.php?which=1
Requesting: https://www.kingdomofloathing.com/api.php?what=closet&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/account_manageoutfits.php
Requesting: https://www.kingdomofloathing.com/questlog.php?which=3
Requesting: https://www.kingdomofloathing.com/questlog.php?which=2
Requesting: https://www.kingdomofloathing.com/questlog.php?which=1
Requesting: https://www.kingdomofloathing.com/familiar.php
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=chateau
Requesting: https://www.kingdomofloathing.com/campground.php?action=inspectdwelling
Requesting: https://www.kingdomofloathing.com/campground.php?action=bookshelf
Requesting: https://www.kingdomofloathing.com/campground.php?action=inspectkitchen
Requesting: https://www.kingdomofloathing.com/campground.php?action=workshed
Requesting: https://www.kingdomofloathing.com/shop.php?whichshop=mayoclinic
Requesting: https://www.kingdomofloathing.com/peevpee.php?place=fight
Requesting: https://www.kingdomofloathing.com/storage.php?which=5
Requesting: https://www.kingdomofloathing.com/api.php?what=storage&for=KoLmafia
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=239178788
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=697608546
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=311743898
Requesting: https://www.kingdomofloathing.com/desc_skill.php?whichskill=7323&self=true
Requesting: https://www.kingdomofloathing.com/desc_effect.php?whicheffect=e9c3b4f9a7f9b24166b835481f15c875
Requesting: https://www.kingdomofloathing.com/desc_effect.php?whicheffect=8de6fb855433dc4b90fb4dbc2a5c919d
Requesting: https://www.kingdomofloathing.com/desc_effect.php?whicheffect=297ee9fadfb5560e5142e0b3a88456db
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=294224337
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=651314979
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=712482724
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=town_right&action=town_horsery
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/desc_familiar.php?which=189
Requesting: https://www.kingdomofloathing.com/showplayer.php?who=121572
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=fwshop
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?whichfloor=2
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=crimbotree
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=hotdogstand
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=speakeasy&whichfloor=2
Requesting: https://www.kingdomofloathing.com/clan_viplounge.php?action=floundry
Requesting: https://www.kingdomofloathing.com/clan_rumpus.php?action=click&spot=7
Requesting: https://www.kingdomofloathing.com/account_contactlist.php
Requesting: https://www.kingdomofloathing.com/standard.php?date=2020-01-02&pwd
Requesting: https://www.kingdomofloathing.com/place.php?whichplace=forestvillage&action=fv_friar
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/choice.php?whichchoice=720&option=4
Requesting: https://www.kingdomofloathing.com/inventory.php?ponder=1
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/inventory.php?reminisce=1
Requesting: https://www.kingdomofloathing.com/choice.php?forceoption=0
Requesting: https://www.kingdomofloathing.com/desc_item.php?whichitem=529185925
Requesting: https://www.kingdomofloathing.com/shop.php?whichshop=still
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=1
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=3
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=4
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=6
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=9
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=11
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=12
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php?action=click&pos=14
Requesting: https://www.kingdomofloathing.com/knoll_mushrooms.php
Observations:

1) 87 vs. 47 requests. 28 of those were from auto_mushroom.ash
2) You have a bunch of things - like game.php - which make me think you are launching the relay browser upon startup.
Is that true? I don't do that. I just login and start the GUI and when I am finally ready to adventure in the browser, I launch the Relay Browser.
3) I have an Apple M1 processor and 1G internet. From "Login" to "GUI is ready and no more requests are happening" takes about 15 seconds.

So, I guess an additional question is:

Are you opening the Relay Browser on login? And does your "more than 1 minute" therefore include the length of time for your browser to start up and open the window and make additional requests from KoL?
I have a Windows Surface Laptop 3 with Intel(R) Core(TM) i5-1035G7 CPU @ 1.20GHz 1.50 GHz. DOWNLOAD Mbps 96.31

After I click login, the GUI disappears and reappears only after a Relay Browser page is opened automatically along with the Mafia GUI. Is there anyway to turn off the need to open Relay Browser page?
 

Veracity

Developer
Staff member
Go to Preferences/Look & Feel/Main Interface
I assume you have "Relay Server" under "Startup as Window".
Select it and drag it out of there. (Back to Complete List?)
 

fronobulax

Developer
Staff member
I have a Windows Surface Laptop 3 with Intel(R) Core(TM) i5-1035G7 CPU @ 1.20GHz 1.50 GHz. DOWNLOAD Mbps 96.31

After I click login, the GUI disappears and reappears only after a Relay Browser page is opened automatically along with the Mafia GUI. Is there anyway to turn off the need to open Relay Browser page?

Perhaps of interest...

Windows Laptop. I never let the relay browser open automatically. There is routinely a noticeable amount of time between when the GUI disappears and when it reappears. On very rare occasions it has been long enough to kill the Java task and then restart mafia. Rare means maybe once every two years. The one time I got tools on it it appeared that two threads were waiting for each other to finish. But I never figured it out and it is obviously not reproducible.

I have detected some start up anomalies by starting in a command line because some useful messages do get written to the console but never to the session log.
 
Top