I think you missed this.
I can also confirm that the "Looking at item #..." appears at the gCLI for items not found in the mafia database. It is where i copied the items i pasted in the Feb 2018 IotM thread.
Sorry for the late response. It was already way past midnight at the time of my last post.
1. General > Preferences, Extra Debugging > check "Verbosely log communication between KoLmafia and browser"
2. Help > Start Debug Log
3. Try logging in.
If nothing else, this should tell us the last section of code Mafia successfully executes, but if we're lucky, it'll point to further problems.
However, I can reliably reproduce the freezes when running scripts. Here is a debug log from the log in up until it freezes while running EatDrink.ash:
It is a 3.1MB file (due to the verbose debug log), and it seems to freeze while awaiting the server reply.
I'll run another debug log when I execute VeracityMeatFarm.ash to see if I'm able to capture the instance of the script crashing.
Last edited by WARriorer; 02-14-2018 at 05:59 AM.
I'll copy them from the session log in the future.
Looks like the hang isn't tied to a mall search per se, since there are multiple successful mall searches before that. Now that I've taken a closer look at the OP: I'm somewhat more inclined to think it's your system somehow (especially since it's not happening in a consistent place).
- If you bring up task manager (ctrl-alt-del) during one of these hangs and look for the task (probably KoLmafia, but possibly Java / JRE), does it look like anything's saturated (CPU, Memory, Disk, etc)? My first guess is that somehow Java is running out of memory (and trying to do a stop-the-world GC while swapping, e.g.).
- Has Mafia ever recovered from one of these hangs (if you just leave it open for a few hours)? (would lend more credence to Mafia swapping while performing very slow operations)
- Is the UI still responsive (i.e. can you still interact with Mafia), or is that frozen too (probably would see Windows's "(Not Responding)" indicator)? (i.e.is the entire JVM having issues, or is it just a processing thread that's getting deadlocked somewhere?)
Nothing appears to be saturated in the task manager (CPU <10%, Memory < 50%, Disk ~0%, Network ~0%, GPU ~0%). I too initially wondered if it was an issue with my system (desktop), hence I tried running Mafia on my laptop (which worked fine before I encountered this issue), but the same lag/freezing also surfaced there.- If you bring up task manager (ctrl-alt-del) during one of these hangs and look for the task (probably KoLmafia, but possibly Java / JRE), does it look like anything's saturated (CPU, Memory, Disk, etc)? My first guess is that somehow Java is running out of memory (and trying to do a stop-the-world GC while swapping, e.g.).
Some of the freezes appear to be temporary, lasting anywhere between 5-30mins. Other freezes on log in appear to last well over a few hours with no signs of recovery.- Has Mafia ever recovered from one of these hangs (if you just leave it open for a few hours)? (would lend more credence to Mafia swapping while performing very slow operations)
The UI is responsive. While logged in, it is possible to type in the gCLI, which allows for the queuing of additional scripts (although none of the scripts actually run). It is also possible to open the relay browser to carry out actions (which are reflected and recorded on the gCLI) while the scripts freeze.- Is the UI still responsive (i.e. can you still interact with Mafia), or is that frozen too (probably would see Windows's "(Not Responding)" indicator)? (i.e.is the entire JVM having issues, or is it just a processing thread that's getting deadlocked somewhere?)
(I would note that the relay browser is significantly laggier than Vanilla KOL, which may hint at a possible reason why Mafia appears to freeze while awaiting for the server reply)
I do have another debug log which captured the freezing during logging in, although I don't think it would shed any further light on this issue (similar to the previous debug log, it appears to hang while awaiting the server reply): https://paste.ee/p/okRy2
First off - Thank you for responding and assisting with this.
I had my KOLMafia freeze and I closed it. I went into the task manager and it still showed that it was open, so it might have had the problem where I had more than one (or two) instance(s) of mafia going at the same time which isn't good per a previous post.
I killed the java, and restarted my computer.
At this point, my mafia is running better than it had when I posted this. I can run scripts and actually just burn turns now in any given location.
Thank you for your help and if it starts happening again, I will come back to get assistance.
( I am glad that worked for me, as reading the other posts totally threw me for a loop. I tried to put the --> jps -1 <-- in the CLI and it gave me an error, so you were probably talking about a different place to put it. I tried to drag and drop my logs into a reply here, but I found that didn't work. If I have more problems, I will come back and hopefully everyone would be as helpful and patient with me as you have been with WARriorer. I really enjoy the KOL community and appreciate the helpfulness there and also here on this forum. Kudos!!)
Edit: also, I was not able to reply earlier as RL came up and bit me in the buttocks.
Last edited by deadleeplatapus; 02-14-2018 at 04:51 PM. Reason: reason for delay in response
Whoops. When I said 'command line' above in connection with jps and jstack I meant the operating system command line ("Command Prompt") and not the KoLmafia gCLI.
This is sounding like a threading issue but I'm not sure what I can bring to bear on the problem yet.