AlbinoRhino
Active member
I've been experiencing a strange issue the last couple of days.
This folder:
https://drive.google.com/open?id=1trpckPkg726VcCoGQVd4XNQZTxi0FRYG
contains 2 debug logs which were both produced in this way,
Start Debug Log
Tools > Refresh session
Stop Debug Log
The first log (labeled as 'full' in the file name) is ~45 MB was made with all of the options in Preferences > Extra Debugging enabled.
In an effort to reduce the log file size, I disabled the option "Verbosely log communication between KoLmafia and browser" and ran the test again (labeled, as 'non_verbose' in the file name). This log was ~50 MB. So!
If there is some way I can make a less lengthy log for you please advise me of the procedure to make it.
In any event, in the first log (full):
The line "Refreshing stash contents..." appears 1061 times according to Notepad++.
The line "Requesting: https://www.kingdomofloathing.com/clan_stash.php" appears 1053 times.
The second log is similar.
I'm not sure what is triggering this behavior but it seems to appear later in a session (perhaps, after switching clans a few times?). However, once it starts I am able to reproduce it with the "Refresh session" link.
Maybe a static variable somewhere getting set false/true and never being set back?
Interestingly, executing the line "ash refresh_stash()" in the cli does NOT trigger this behavior and behaves normally.
Obviously, this can take several minutes to reproduce, but eventually it does resolve itself and mafia's final idea of the stash contents seems accurate.
One other thing I noted was that trying to interrupt this behavior by mashing the ESC key one, or more, times, seems to leave mafia in an unresponsive state. IE, I had to exit and restart. Or, perhaps I was too impatient to wait long enough. I also noted that memory usage (I use the javaw.exe) appeared totally normal while this is going on.
This folder:
https://drive.google.com/open?id=1trpckPkg726VcCoGQVd4XNQZTxi0FRYG
contains 2 debug logs which were both produced in this way,
Start Debug Log
Tools > Refresh session
Stop Debug Log
The first log (labeled as 'full' in the file name) is ~45 MB was made with all of the options in Preferences > Extra Debugging enabled.
In an effort to reduce the log file size, I disabled the option "Verbosely log communication between KoLmafia and browser" and ran the test again (labeled, as 'non_verbose' in the file name). This log was ~50 MB. So!

If there is some way I can make a less lengthy log for you please advise me of the procedure to make it.
In any event, in the first log (full):
The line "Refreshing stash contents..." appears 1061 times according to Notepad++.
The line "Requesting: https://www.kingdomofloathing.com/clan_stash.php" appears 1053 times.
The second log is similar.
I'm not sure what is triggering this behavior but it seems to appear later in a session (perhaps, after switching clans a few times?). However, once it starts I am able to reproduce it with the "Refresh session" link.
Maybe a static variable somewhere getting set false/true and never being set back?
Interestingly, executing the line "ash refresh_stash()" in the cli does NOT trigger this behavior and behaves normally.
Obviously, this can take several minutes to reproduce, but eventually it does resolve itself and mafia's final idea of the stash contents seems accurate.
One other thing I noted was that trying to interrupt this behavior by mashing the ESC key one, or more, times, seems to leave mafia in an unresponsive state. IE, I had to exit and restart. Or, perhaps I was too impatient to wait long enough. I also noted that memory usage (I use the javaw.exe) appeared totally normal while this is going on.