Monday, 2007-01-08

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** mithro has quit IRC03:15
*** Demitar has joined #tp03:27
*** Demitar has quit IRC04:41
tpbCIA-1 has quit worldforge (Quit: CIA-1)04:59
tpbCIA-1 has joined on worldforge05:15
*** tpb has joined #tp06:00
*** ChanServ sets mode: +o tpb06:00
*** llnz has joined #tp07:31
llnzhi all08:05
*** mithro has joined #tp11:14
llnzhi mithro11:14
mithrohi11:15
mithrowhats up?11:22
llnznot much, updating my laptop and installing the software to run tp stuff11:22
mithroahh cool11:24
mithrowhat version of wxPython will that include?11:24
llnzwhatever is in debian11:26
llnzunstable11:26
llnzcurrently trying to build tpserver-cpp11:30
mithrollnz: which is :P11:33
llnz2.6.3.2.1.511:35
llnzi think11:35
llnzdo i need media for tpclient-pywx?11:38
mithronope11:38
llnzcool11:39
llnzi have old tpclient-pywx working, trying dev now11:48
*** llnz2 has joined #tp11:53
*** llnz has quit IRC11:53
*** llnz2 is now known as llnz11:53
llnzhumm... tpclient-pywx-dev segfaulting on me11:59
mithro:/12:00
mithrodpkg --list | grep wx12:00
mithroping?12:03
llnzall except python-wxversion were at version 2.6.3.2.1.512:03
llnzand i've just update python-wxversion12:03
llnznope, didn't help12:03
mithro:/12:05
mithrocan you paste the output just before it segfaults?12:05
mithrorun it in gdb would be good too12:06
llnzhold on while i get an irc client on my laptop12:07
llnzit crashes just after it starts displaying the download game data screen12:09
mithrohrm...12:09
llnzjust updated libmng in case it was the problem12:10
mithrolibmng-py isn't used yet12:10
llnzoh12:11
*** llnz_laptop has joined #tp12:11
llnz_laptopReceiving: 0x54(T) 0x50(P) 0x30(0) 0x33(3) 0x0 0x0 0x0 0x4 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0xc 0x0 0x0 0x0 0x8 0x57(W) 0x65(e) 0x6c(l) 0x63(c) 0x6f(o) 0x6d(m) 0x65(e) 0x012:12
llnz_laptopCreating the Cache fresh (/home/lee/.tp/cache.dHA6Ly9sZWVAbG92ZS5sbG5).12:12
llnz_laptopSegmentation fault12:12
mithroyou do a "gdb python" then "run ./tpclient-pywx"12:12
llnz_laptoprogram received signal SIGSEGV, Segmentation fault.12:14
llnz_laptop[Switching to Thread -1209850176 (LWP 7800)]12:14
llnz_laptop0x0000006e in ?? ()12:14
llnz_laptop(gdb) where12:14
llnz_laptop#0  0x0000006e in ?? ()12:14
llnz_laptop#1  0xb540b695 in wxAnimationPlayer::Play () from /usr/lib/libwx_gtk2u_animate-2.6.so.012:15
mithrobt?12:15
llnz_laptop#2  0xb540b794 in wxAnimationCtrlBase::Play () from /usr/lib/libwx_gtk2u_animate-2.6.so.012:15
llnz_laptop#3  0xb543442c in init_animate ()12:15
llnz_laptop   from /usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_animate.so12:15
llnz_laptop#4  0x080589d7 in PyObject_Call ()12:15
mithroahh I think i know what is causing it12:15
llnz_laptop#5  0x080b7e2c in PyEval_EvalFrame ()12:15
llnz_laptop#6  0x080ba745 in PyEval_EvalCodeEx ()12:15
llnz_laptop#7  0x080b87cb in PyEval_EvalFrame ()12:15
llnz_laptop#8  0x080ba745 in PyEval_EvalCodeEx ()12:15
llnz_laptop#9  0x08100c25 in PyClassMethod_New ()12:15
mithroapt-get install python-pil12:15
llnz_laptopinstalling python-imaging12:16
mithrookay12:18
llnzworking now12:18
mithrookay12:18
mithrobit annoying that it segfaults12:18
llnzhumm, another bug in tpserver-cpp12:21
mithrollnz: can you add a bug report for that?12:27
llnzsure12:27
mithrothe animation crash12:27
tpb<CIA-1@worldforge> Lee Begg <[email protected]> * tpserver-cpp/modules/games/minisec/colonise.cpp :12:30
tpb<CIA-1@worldforge> Make sure the destination is set for the move order inside the colonise order:12:30
tpb<CIA-1@worldforge>  Produces a problem when persistence is on.12:30
*** llnz_laptop has quit IRC12:30
mithrollnz: any news on the random objects?12:34
llnzyes, i'm going to lift the code from MTsec, and put it somewhere (probably game)12:35
llnzbtw: i will break persistence one more time, when objects get parameterised12:36
mithrookay12:36
mithrothe universe could be a bit more universe :P12:36
llnzbug posted12:36
mithros/universe/intresting12:36
llnzyeah, i know12:36
tpb<CIA-1@worldforge> Lee Begg <[email protected]> * tpserver-cpp/modules/games/mtsec/ (colonise.cpp colonise.cpp planet.cpp planet.cpp):12:39
tpb<CIA-1@worldforge> Sync MTSec with minisec for Colonise and Planet:12:39
tpb<CIA-1@worldforge>  A forward port of bug fixes for persistence and ordername related problems.12:39
tpb<CIA-1@worldforge> Lee Begg <[email protected]> * tpserver-cpp/tpserver/ (metaserverconnection.cpp metaserverconnection.cpp): Fix string length parameters for ip address to send to metaserver13:00
tpb<CIA-1@worldforge> Lee Begg <[email protected]> * tpserver-cpp/ (sample.conf sample.conf): Added missing default settings for admin_email and game_comment13:09
tpb<CIA-1@worldforge> Lee Begg <[email protected]> * tpserver-cpp/tpserver/ (advertiser.cpp advertiser.cpp):13:15
tpb<CIA-1@worldforge> Start the MetaserverPublisher in the right place of Advertiser:13:15
tpb<CIA-1@worldforge>  Now works correct if the network doesn't start, or the network is stop and13:15
tpb<CIA-1@worldforge>  then started again.13:15
tpb<CIA-1@worldforge> Lee Begg <[email protected]> * tpserver-cpp/tpserver/ (5 files):13:15
tpb<CIA-1@worldforge> Update the metaserver as soon as possible if a metaserver specific setting changes:13:15
tpb<CIA-1@worldforge>  Useful when the wrong ip address is published, or the wrong dns name. Just change the setting13:15
tpb<CIA-1@worldforge>  on the console, and in less than two minutes, the world knows.13:15
llnzshould i update the metaserver after every turn?13:17
* llnz notes it's one line of code13:21
mithrollnz: if turns are more then 3 minutes apart13:32
llnz2 minutes apart, you mean?13:33
llnzi would still inforce the 2 minutes minimum between updates13:33
llnzs/inforce/enforce/13:34
tpb<CIA-1@worldforge> [email protected] * libtpclient-py-dev/tp/client/ (13 files): Cache is now more robust and portable.13:45
tpb<CIA-1@worldforge> [email protected] * libtpclient-py-dev/tp/client/threads.py : Print an error.13:45
tpb<CIA-1@worldforge> [email protected] * libtpclient-py-dev/tp/client/cache.py : Cleanup stray subobjects.13:45
mithrollnz: I will enforce it on the server eventually13:45
llnzcool13:45
mithroI plan to make it remove your server if you try and post to often ;)13:46
llnztpserver-cpp will publish down to exactly 2 minutes (to within 200ms +- delay of metaserver connection *2)13:47
llnzand at least every 10 minutes13:47
mithroi think13:47
mithroi've reproduced the socket close bug13:48
llnzoh? cool13:48
llnzhow?13:48
tpbI guess how is the test, llnz13:48
mithro  File "/home/tim/oss/tp/tpclient-pywx-dev/tp/netlib/client.py", line 403, in _get_idsequence13:48
mithro    p = self._recv(no)13:48
mithro  File "/home/tim/oss/tp/tpclient-pywx-dev/tp/netlib/common.py", line 243, in _recv13:48
mithro    raise IOError("Socket.recv returned no data, connection must have been closed...")13:48
mithrocan you check the server?13:48
llnzdemo1?13:48
mithroyeah13:48
llnznope, still running fine, except an interesting log message or two13:49
llnzahhh13:50
mithronot complaining about the socket errors?13:50
llnznot the socket close bug, but the non-blocking socket issue13:50
mithro?13:51
mithroie when you have the non-blocking socket issue you close the socket?13:51
llnz2007-01-08 13:47:42 < Debug > Stage3 : logged in13:51
llnz2007-01-08 13:47:42 < Debug > Data Length: 190813:51
llnz2007-01-08 13:47:42 < Debug > Read data not the length needed13:51
llnzyeah13:51
mithro:P13:52
mithroquite a bit packet tat13:52
mithros/tat/that/13:52
* llnz thought you meant the segfault when getting player connection13:52
llnzyeah13:52
llnzbigger than an ethernet frame13:52
mithroyes, which will cause the issue you are seeing13:52
llnzok13:53
mithro:P13:53
llnznow the cause is confirmed, i'll have to figure a way of fixing it13:53
mithroI can tell you two ways to fix it,13:53
mithro 1. change it to blocking13:54
mithro 2. Use a wrapper which does the IO independent of the operations13:54
mithro2 is what I use in libtpproto13:54
mithrobtw is it likely you have the same problem in libtpproto-cpp?13:55
llnzwell... 1 is out because you will tell me off for using blocking sockets (and being open to DOS)13:55
llnzlibtpproto-cpp doesn't have the same problem because it uses blocking sockets13:56
llnz(i think)13:56
llnzalso libtpproto-cpp tries to read the rest again until it gets everything, or the server disconnects13:56
mithrollnz: well with 1 you need to figure out how is ready before getting it13:57
mithroyou can't use MSG_PEEK either13:58
llnzi am already using select to see which one has data13:58
llnzit's just that the socket didn't have enough data ready13:59
mithroas the buffer is a maximum of 1500 bytes13:59
mithrollnz: i know13:59
mithroI use a simple class which works like this14:00
llnzi will fix it14:00
mithrouse a consumure-producer type method14:00
mithrowell I should head to bed14:07
mithrognight14:07
mithroI'm guessing you should be in bed too :P14:07
llnzsame14:07
llnzcya later14:07
llnz:-)14:07
* llnz wanders off14:08
*** llnz has quit IRC14:08
*** Demitar has joined #tp15:50
*** mithro has quit IRC17:24
tpb<CIA-1@worldforge> Matthew Draper <[email protected]> * libtpproto2-py/ (protocol.xml protocol.xml): Corrected member type for Sequence packet; the number is an integer, not at string.17:25
tpb<CIA-1@worldforge> Matthew Draper <[email protected]> * libtpproto2-py/ (protocol.xml protocol.xml protocol.xml): Added sub-typed packets for the various object types... not sure whether this stuff should be elsewhere, though.17:25
tpb<CIA-1@worldforge> Matthew Draper <[email protected]> * libtpproto-rb/ (32 files):17:34
tpb<CIA-1@worldforge> Various improvements...: * Added a Connection class, to encapsulate the Socket, handle17:34
tpb<CIA-1@worldforge>  non-blocking requests, and usefully manage incoming Sequences17:34
tpb<CIA-1@worldforge>  * Added support for the new object-specific packet types in the XML17:34
tpb<CIA-1@worldforge>  * Fixed a couple of issues with the Array#pack/String#unpack extensions17:34
tpb<CIA-1@worldforge>  * Can now connect to a server and recursively list all objects in the17:34
tpb<CIA-1@worldforge>  Universe -- ruby -rtest_client_help -e 'c!; object_tree'17:34
*** Demitar has quit IRC18:08
*** Demitar has joined #tp18:25
*** mithro has joined #tp21:46
*** mithro has quit IRC22:07

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!