Saturday, 2010-06-12

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** StupidIncarnate has quit IRC00:09
*** Agon has joined #tp00:13
*** verhoevenv has quit IRC00:49
*** Erroneous has quit IRC01:20
*** glew has quit IRC02:49
*** tote has quit IRC03:30
*** tote has joined #tp03:39
*** llnz has joined #tp04:54
llnzhi all05:04
*** muthusuba has joined #tp07:09
*** Vadtec_ has quit IRC07:12
*** Vadtec_ has joined #tp07:23
*** null_000 has joined #tp07:24
null_000morning all07:24
*** Q_x has joined #tp07:40
Q_xhiho07:40
*** Q_x has quit IRC07:41
*** Vadtec_ has quit IRC08:02
*** Vadtec_ has joined #tp08:09
*** bisc has joined #tp09:34
*** mithro has joined #tp09:49
biscmithro: ping10:01
null_000mithro: ping10:08
* llnz wonders if he can help10:09
null_000llnz: issue 97 is blocking my AI development... can't do any serious testing.10:10
null_000llnz: it looks like the problem is that timestamps of an object are not (always) updated when orders of that object are updated10:11
null_000is this a bug or a feature?10:13
llnzbug, probably10:15
llnzthere is also an issue between order queues and objects10:16
null_000this might be related...10:20
null_000since the python client started having this problem when the library "corrected" something with order queue id and object id10:21
null_000if anyone plans to look into this... information here might help http://code.google.com/p/thousandparsec/issues/detail?id=9710:29
tpb<http://ln-s.net/75lY> (at code.google.com)10:29
llnzit could be server side, I will have a look tomorrow10:46
* llnz wanders off10:46
llnzlater all10:46
null_000later10:46
*** llnz has quit IRC10:48
biscnull_000: I'm trying to reproduce your bug, but ai client sometimes (and sometimes not) meets an error at end of turn. here's log:11:05
biscnull_000: Now in python mode!11:06
biscI am 2 . My name is ai11:06
biscTraceback (most recent call last):11:06
bisc  File "./daneel-ai.py", line 267, in <module>11:06
bisc    gameLoop(options.filename,turns=options.numturns,uri=options.uri,verbosity=options.verbosity,benchmark=options.benchmark)11:06
bisc  File "./daneel-ai.py", line 200, in gameLoop11:06
bisc    gameLoopWrapped(rulesfile,turns,connection,cache,verbosity,benchmark)11:06
bisc  File "./daneel-ai.py", line 221, in gameLoopWrapped11:06
bisc    endTurn(cache,rulesystem,connection)11:06
bisc  File "./daneel-ai.py", line 143, in endTurn11:06
bisc    m.endTurn(cache,rulesystem,connection)11:06
bisc  File "./daneel/mod-minisec.py", line 22, in endTurn11:06
bisc    AICode()11:06
bisc  File "./daneel/mod-minisec.py", line 229, in AICode11:06
bisc    helper.printAboutMe()11:06
bisc  File "./daneel/helper.py", line 123, in printAboutMe11:06
bisc    for x in enemies():11:06
bisc  File "./daneel/helper.py", line 118, in enemies11:06
bisc    players.remove(whoami())11:06
biscValueError: list.remove(x): x not in list11:06
null_000now this is weird...11:07
biscnull_000: this error seems to be probabilistic. this time only one ai client has managed to get to the end of 4th turn. and I connected with the latest tpclient-pywx with no problems.11:08
null_000you can avoid running this code by commenting out helper.printAboutMe() in AICode()11:08
null_000bisc: when I try it it has a 100% success rate ^_^11:09
null_000bisc: this not the only way to get this error, I get it all the time... but this way has proven to be the quickest and most certain one (at least on my computer)11:14
biscnull_000: After commenting this line ai clients seem to work stable. I think I have reproduced it. The pywx client freezes on downloading the new turn info?11:15
null_000an error message should pop up (with no text) and the console should print an error "object isn't new enough"11:17
*** muthusuba has quit IRC11:18
null_000which version of the client are you using? tp04?11:18
biscno, haven't still got anything like that. moreover, the last time the connect was successful.11:18
biscyes. it's several commits ahead of official tp04, but these commits are GUI-connected11:19
biscdo you recieve this error in 100% of attempts?11:19
null_000are you connecting as guest? I've sometimes been able to connect with other usernames.11:20
null_000yes 100%11:20
biscno, I'm using "guest2" login, as the config for guest is broken (don't remember the password :))11:20
null_000this might be it11:21
null_000the server returns different modification times for different users (don't know why)11:21
null_000i usualy login with guest (and the password guest)11:21
null_000I think that is the default password11:22
biscnull_000: yes, that's correct password. and I got the discussed error: The object isn't new enough to update the dictionary with! Current 2010-06-12 15:21:53, update 2010-06-12 15:21:5011:23
null_000this is it11:23
biscso. if the server sends an outdated object, it seems to me that he's responsible for the bug, no?11:24
null_000not sure11:24
null_000since the tp03 works11:25
null_000it might be something in the tp04 client...11:25
null_000but if I would have to guess I would say it's the server11:26
bisctp03 could have no check for such error, or something. I'll look through the code, but most probably we should ask mithro about who violated the protocol11:26
biscnull_000: to get your testing running again, I'd advise just using another username. I've just had 2 successful connects for "guest2"11:31
null_000the problem is that I get this error after a while (say 20 turns)11:32
null_000I'm now using a dirty hack that modifies the modtime in case there should be an error... this might cause some other problems but at least I can test for a while11:34
biscanother way to temporary avoid this issue is to comment lines 23-24 in libtpclient-py/tp/client/ChangeDict.py11:36
null_000I've tried that... but I think some data got corrupt later on...11:37
null_000bisc: thanks for all the help...11:40
biscnull_000: that's ok, haven't really helped you yet. llnz or mithro will do, I suppose.11:41
*** muthusuba has joined #tp12:15
*** shenki has joined #tp14:19
*** bisc has quit IRC14:50
*** null_000 has quit IRC15:20
*** muthusuba has quit IRC15:55
*** muthusuba has joined #tp16:10
*** tuna-fish has joined #tp16:16
*** bisc has joined #tp16:29
*** tuna-fish has quit IRC16:40
*** muthusuba has quit IRC16:53
*** glew has joined #tp18:41
*** Epyon has joined #tp20:17
*** bisc has quit IRC21:24
*** verhoevenv has joined #tp21:41
*** verhoevenv has quit IRC22:12
*** Greywhind has joined #tp22:39
*** Greywhind has quit IRC23:52

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!