Bug - Waiting for Info Crash on some choice adventures.

muczachan

Member
A point of order first: I compile KoLmafia from svn, and I have checked that I have the most current version (10475) -- I have no idea why it thinks it's 10161.

A part of mafia died on me twice today. At least the relay browser part.

While opening Oasis and on reaching Mr. Alarm, I had to close mafia, log into vanilla www interface, click on the proper choice, log out and only then mafia did start again without complaining about choice adv instead of main.php -- and with functioning relay browser.. Here are the dumps:


Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
           KoLmafia v15.0 r10161, Linux, Java 1.6.0_26
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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: Mon Feb 13 12:15:14 CET 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



class net.sourceforge.kolmafia.request.PasswordHashRequest: choice.php?whichchoice=132&option=2&pwd
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/jquery-1.5.1.js"></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/window.20111231.js"></script><script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}defaultBind(47, CTRL, chatFocus); defaultBind(190, CTRL, chatFocus);defaultBind(191, CTRL, chatFocus); defaultBind(47, META, chatFocus);defaultBind(190, META, chatFocus); defaultBind(191, META, chatFocus);</script><script>function switchFocus(){if (top.chatpane.document.chatform.graf.focus)top.chatpane.document.chatform.graf.focus();return false;}function repeat(){var linx = document.getElementsByTagName("A");for (var i = 0; i < linx.length; i++){if (typeof timersfunc != 'undefined') {if (!timersfunc()) {return;}timersfunc = null;}var link = linx[i];if (link.innerHTML.match(/Adventure Again/) || link.innerHTML.match(/Do it again/))location.href = link.href;}}defaultBind(47, CTRL, switchFocus);defaultBind(191, CTRL, switchFocus);defaultBind(47, META, switchFocus);defaultBind(191, META, switchFocus);defaultBind(192, NONE, repeat);defaultBind(220, NONE, repeat);</script><script language="javascript">function updateParseItem(iid, field, info) {var tbl = $('#ic'+iid);var data = parseItem(tbl);if (!data) return;data[field] = info;var out = [];for (i in data) {if (!data.hasOwnProperty(i)) continue;out.push(i+'='+data[i]);}tbl.attr('rel', out.join('&'));}function parseItem(tbl) {tbl = $(tbl);var rel = tbl.attr('rel');var data = {};if (!rel) return data;var parts = rel.split('&');for (i in parts) {if (!parts.hasOwnProperty(i)) continue;var kv = parts[i].split('=');tbl.data(kv[0], kv[1]);data[kv[0]] = kv[1];}return data;}</script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/pop_query.20090915.js"></script><script type="text/javascript"> function pop_ircm(clicked) { return false; } </script><script>var currentkey = 49;$(document).ready(function () {$('form').each(function () {var form = this;defaultBind(currentkey++, NONE, function () { form.submit(); });return currentkey < 58;});});</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.css"></head><body><Center><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Let's Make a Deal!</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><img src="http://images.kingdomofloathing.com/adventureimages/gnefgnome.gif" width=100 height=100></center><p>The blazing sun beats down upon you as you crawl through the desert, gasping for water like a fish out of... metaphors.<p>"Strewth, you look pretty rough, mate." You turn your head to look, blearily, for the voice. It appears to be a gnome dressed in black leather. "Gneed some water?" he says. Too parched to talk, you nod, panting. He crouches down next to you, holding up a waterskin.<p>"Right. Well, I'll give you this water, see, but only if you'll do something for me in return." He points at a beaten-up black meatcar parked nearby, which you somehow failed to notice before. For some reason, it's got big metal spikes meatpasted all over it. "She's a bonzer little gnumber, yeah? Only she's a bit clapped out presently. I give you the water, and you fetch me back a new carbie. Deal?"<p>You nod again, and he tosses you the waterskin, which lands near your head with a lovely 'bloop!' sound. The gnome leans on his front bumper, cleaning his fingernails with a penknife while he watches you drink. After a minute, you stand, refreshed, and toss the waterskin back to him.<p>He directs you to a gnome encampment nearby, and after an hour's walk or so, you find, amongst some rough-looking shacks welded together from bits of rusty metal, what passes for a merchant, sitting on the ground behind a blanket piled with various meatcar parts. "What a tortuously-constructed sentence," you think.<p>You poke through the gnome's wares, eventually turning up a carburetor in reasonable condition, and inquire about the price. "Five dense," he grunts.<center><form name=choiceform1 action=choice.php method=post><input type=hidden name=pwd value='81f687f7cb91b7121fa667fd6dd96d6a'><input type=hidden name=whichchoice value=132><input type=hidden name=option value=1><input class=button type=submit value="Buy the carburetor (5,000 Meat)"></form><form name=choiceform2 action=choice.php method=post><input type=hidden name=pwd value='81f687f7cb91b7121fa667fd6dd96d6a'><input type=hidden name=whichchoice value=132><input type=hidden name=option value=2><input class=button type=submit value="Haggle for a better price"></form></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
           KoLmafia v15.0 r10161, Linux, Java 1.6.0_26
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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: Mon Feb 13 12:33:31 CET 2012
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



class net.sourceforge.kolmafia.request.PasswordHashRequest: choice.php?whichchoice=517&option=1&pwd
<html><head><script language=Javascript><!--if (parent.frames.length == 0) location.href="game.php";top.charpane.location.href="charpane.php";//--></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/jquery-1.5.1.js"></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/keybinds.min.2.js"></script><script language=Javascript src="http://images.kingdomofloathing.com/scripts/window.20111231.js"></script><script language="javascript">function chatFocus(){if(top.chatpane.document.chatform.graf) top.chatpane.document.chatform.graf.focus();}defaultBind(47, CTRL, chatFocus); defaultBind(190, CTRL, chatFocus);defaultBind(191, CTRL, chatFocus); defaultBind(47, META, chatFocus);defaultBind(190, META, chatFocus); defaultBind(191, META, chatFocus);</script><script>function switchFocus(){if (top.chatpane.document.chatform.graf.focus)top.chatpane.document.chatform.graf.focus();return false;}function repeat(){var linx = document.getElementsByTagName("A");for (var i = 0; i < linx.length; i++){if (typeof timersfunc != 'undefined') {if (!timersfunc()) {return;}timersfunc = null;}var link = linx[i];if (link.innerHTML.match(/Adventure Again/) || link.innerHTML.match(/Do it again/))location.href = link.href;}}defaultBind(47, CTRL, switchFocus);defaultBind(191, CTRL, switchFocus);defaultBind(47, META, switchFocus);defaultBind(191, META, switchFocus);defaultBind(192, NONE, repeat);defaultBind(220, NONE, repeat);</script><script language="javascript">function updateParseItem(iid, field, info) {var tbl = $('#ic'+iid);var data = parseItem(tbl);if (!data) return;data[field] = info;var out = [];for (i in data) {if (!data.hasOwnProperty(i)) continue;out.push(i+'='+data[i]);}tbl.attr('rel', out.join('&'));}function parseItem(tbl) {tbl = $(tbl);var rel = tbl.attr('rel');var data = {};if (!rel) return data;var parts = rel.split('&');for (i in parts) {if (!parts.hasOwnProperty(i)) continue;var kv = parts[i].split('=');tbl.data(kv[0], kv[1]);data[kv[0]] = kv[1];}return data;}</script><script type="text/javascript" src="http://images.kingdomofloathing.com/scripts/pop_query.20090915.js"></script><script type="text/javascript"> function pop_ircm(clicked) { return false; } </script><script>var currentkey = 49;$(document).ready(function () {$('form').each(function () {var form = this;defaultBind(currentkey++, NONE, function () { form.submit(); });return currentkey < 58;});});</script><link rel="stylesheet" type="text/css" href="http://images.kingdomofloathing.com/styles.css"></head><body><Center><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Mr. Alarm, I Presarm</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><img src="http://images.kingdomofloathing.com/adventureimages/mralarm.gif" width=100 height=100></center><p>Looking around the Cobb's Knob Laboratory, you spot a human at a sink, cleaning beakers.<center><form name=choiceform1 action=choice.php method=post><input type=hidden name=pwd value='1e40648c3690d62e0bbddd9f1764db2a'><input type=hidden name=whichchoice value=517><input type=hidden name=option value=1><input class=button type=submit value="Talk to him"></form></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body></html>
 

lostcalpolydude

Developer
Staff member
A point of order first: I compile KoLmafia from svn, and I have checked that I have the most current version (10475) -- I have no idea why it thinks it's 10161.

Occasionally when building, though not recently, I've had REVISION in KoLConstants.java (line 73 for me) set to a revision number instead of null (which it should be).
 

fronobulax

Developer
Staff member
A point of order first: I compile KoLmafia from svn, and I have checked that I have the most current version (10475) -- I have no idea why it thinks it's 10161.

Probably because you are not using the svn version of build.xml and related fiels. There is a rather embarrassing thread of minearound here about displaying version numbers in mafia. It turned out that I was asking for or complaining about the absence of things that were already there. It's just that I was using Netbeans and had let Netbeans create a build file. Solution was to tweak Netbeans to use the build file from SVN which was not as easy as one would hope.
 

Veracity

Developer
Staff member
A point of order first: I compile KoLmafia from svn, and I have checked that I have the most current version (10475) -- I have no idea why it thinks it's 10161.
You have a local version of KoLConstants.java. Delete it and update from the svn to get a fresh copy.

A part of mafia died on me twice today. At least the relay browser part.
Define "died". What happened?

While opening Oasis and on reaching Mr. Alarm, I had to close mafia, log into vanilla www interface, click on the proper choice, log out and only then mafia did start again without complaining about choice adv instead of main.php -- and with functioning relay browser.

Why did you "have to close mafia"?
Why is mafia "complaining about choice.php instead of main.php" a problem? I you log out in the middle of a choice, when you log in again, KoL gives you choice.php. Mafia detects this, tells you to finish (in the relay browser or mini browser) and, when you have done so, refreshes your session as normal when logging in. What didn't work?
In what way was the relay browser "not functioning"?

Your thread title uses the word "crash". To me, that implies an exception, stack trace, something of that sort. Your debug log shows nothing abnormal. Well, it's obviously missing a lot of stuff; you have clearly edited out things you didn't think we'd need to see.

From what you have supplied, I see no problem. I need a more detailed explanation of what wasn't working. Thanks.
 

muczachan

Member
Thanks for the KoLConstants.java info. I'll try that.

About what "crashed" means: The UI was still there, responding to clicks. I have not tried any meaningful operations, though. Just tried opening the Relay Browser.

A new tab opened in my browser, but it has been the internal Firefox generated page about being unable to connect ("Firefox can't establish a connection to the server at 127.0.0.1"). At this moment, I do not remember whether on full page or just in central pane, sorry.

I exited mafia, started it again (exit, not logout -- just to be sure) -- it complained (rightly) about it being a choice adventure, but it still behaved the same way. The relay browser did not display the adventure choice. Only the "Unable to connect" FF generated page.

I exited again, logged through vanilla www KoL interface, picked a choice, logged out, started KoLmafia again and it worked like nothing happened.

Then it happened again on Mr. Alarm.

Debug log is complete. I have not touched anything inside. So there's your abnormality, I guess. But I'm afraid I can't supply you with any more data. I'll be on the lookout, though. If I can't replicate it next run, I'll have to classify it as a fluke, flip the BOFH excuse calendar and say the sunspot activity has been the cause of it.
 

Theraze

Active member
Also, if you get to the interface with the relay browser not loading, next time try the mini-browser? It's been the primary tool of the people with the "relay browser has stopped loading in combat, at least until THIS specific combat gets done" bug. :) Might work for your "relay browser has stopped loading in choiceadv, at least until THIS specific choice gets done" bug. If it is one, and not just a partial, garbled download of the source files...
 

fronobulax

Developer
Staff member
Also, FWIW, if the relay browser is open, mafia is shutdown and restarted, the expected behavior (at least my experience on my system) is that the previously open relay browser window is unresponsive and I have to relaunch the relay browser from mafia. Your description makes me wonder if you expect otherwise.
 

roippi

Developer
Also, FWIW, if the relay browser is open, mafia is shutdown and restarted, the expected behavior (at least my experience on my system) is that the previously open relay browser window is unresponsive and I have to relaunch the relay browser from mafia. Your description makes me wonder if you expect otherwise.

Indeed. The password hash between the two sessions will not match, or something along those lines.

There are several issues with this bug report:

I have concerns that the user tried to use a stale instance of the relay browser to connect to a new instance of mafia.

What does Mr. Alarm have to do with the Oasis quest?

Most importantly: the report contains a lot of extraneous "I did this, then did that" detail, but does not give us a concise set of directions to follow to reproduce the problem. "Then it happened again on Mr. Alarm" is not a reproducible set of instructions. "I am adventuring in the relay browser. I get to x adventure. I logout. I login and do y" is getting closer to some information that we are able to do something with.
 

muczachan

Member
Mr. Alarm has nothing to do with Oasis quest. This has been just the second occurrence of the same behaviour.

Concise description of what happened would be:

Automatic adventure in Desert with goal "1 choiceadv". Upon reaching the "Let's make a deal!" adventure:
* there's no information in gCLI (choice 1, choice 2)
* relay browser fails with browser's info page "Unable to connect to 127.0.0.1"
* I exited mafia.
* I started mafia again.
* It complained about getting a choice adventure instead of main page -- which is good, I know, but...
* a freshly opened relay browser (icon click from mafia UI) failed the same way as before.
* exit, login into vanilla KoL www, unlocking Oasis, log out
* another fresh KoLMafia start -- everything works fine

Exactly the same thing later for Mr. Alarm. At "Mr. Alarm I Presarm", also with "1 choiceadv" as goal for Laboratory zone.

I'll try to replicate it next time I'm ascending. If I can't… well. Sunspot activity and/or black magic.
 

fronobulax

Developer
Staff member
I have not been paying attention but I wonder...

There was a period of time when logging in with mafia when KoL thought you were in a fight caused all sorts of interesting behavior. I know there was a lot of effort expended recently to make things less interesting and more reliable and predictable. Is there any chance that the fix to this would be to do the same things, that were done when logging into a combat, when logging in to a choice?

I also note that "unresponsive" relay browser could be related to this and similar duplicate reports.
 
Top