*** tpb has joined #freeorion | 00:00 | |
*** STalKer-X has quit IRC | 00:50 | |
*** STalKer-X has joined #freeorion | 00:50 | |
*** Reisiger has joined #freeorion | 05:11 | |
Reisiger | Good morning everyone :-) | 05:13 |
---|---|---|
Reisiger | I'm having trouble getting SCons to recognize the Python registry entries in Win 7 64-bit (which is more a Vista v1.5 64-bit). Has anyone ever encountered a similar problem? | 05:13 |
GeoffTheMedio2 | possibly... just a sec | 05:24 |
Reisiger | I did check the registry... both python25 and 26 make entries... it's a little puzzeling | 05:24 |
GeoffTheMedio2 | similar to this: http://www.freeorion.org/forum/viewtopic.php?f=24&t=2520 ? | 05:25 |
tpb | <http://ln-s.net/317-> (at www.freeorion.org) | 05:25 |
Reisiger | It's an issue while trying to install SCons o.O | 05:25 |
GeoffTheMedio2 | I see you've already posted on the forums though | 05:25 |
GeoffTheMedio2 | probably not the same issue then | 05:26 |
Reisiger | Yes... I got MSVC 08, but wanted to give SCons a go. | 05:26 |
GeoffTheMedio2 | I don't think anyone else has reported about trying to build freeorion on windows 7 | 05:27 |
Reisiger | Currently building with MSVC 08 using Python25... looking forward to the result | 05:27 |
GeoffTheMedio2 | do you know if it's just a problem with python, and that nothing else is affected? | 05:27 |
Reisiger | It's a bit exotic an OS atm, but I like it. Any any successfull build that works should also go for Vista x64 | 05:28 |
Reisiger | Seems to be the installer from SCons... for some reason it can't read the registry... or can't find the entries | 05:28 |
GeoffTheMedio2 | you mean the freeorion scons install script, or the installer for SCons itself? | 05:29 |
Reisiger | The later | 05:29 |
GeoffTheMedio2 | I had an issue with error popups when installing scons in vista as well | 05:29 |
GeoffTheMedio2 | i still got it to work eventually though | 05:30 |
GeoffTheMedio2 | I tried building with SCons anyway, and I was getting an error about TEMPFILE not being found during linking | 05:31 |
GeoffTheMedio2 | tzlaine suggested the following: | 05:31 |
GeoffTheMedio2 | Add this line somewhere in your SConstruct file, after the env | 05:31 |
GeoffTheMedio2 | variable is declared: | 05:31 |
GeoffTheMedio2 | env['ENV']['TMP'] = os.environ['TMP'] | 05:31 |
GeoffTheMedio2 | It doesn't look applicable to your issue though, so I didn't mention it until now | 05:31 |
Reisiger | E:\Downloads\Programme\Scons\7zE7638.tmp>scons.py | 05:34 |
Reisiger | 05:34 | |
Reisiger | scons: *** No SConstruct file found. | 05:34 |
Reisiger | File "E:\Downloads\Programme\Scons\7zE7638.tmp\scons-local-1.2.0\SCons\Script\Main.py", line 826, in _main | 05:34 |
Reisiger | Thats what it throws at me when using the 'local' variant | 05:34 |
GeoffTheMedio2 | I don't know what "local variant" refers to... | 05:34 |
GeoffTheMedio2 | (I don't use SCons much myself...) | 05:35 |
Reisiger | One that doesn't use the installer | 05:35 |
GeoffTheMedio2 | oh | 05:35 |
Reisiger | What do you use for compiling? | 05:35 |
GeoffTheMedio2 | well, probably there aren't registry or environment variables set | 05:35 |
GeoffTheMedio2 | MSVC 2008 | 05:35 |
GeoffTheMedio2 | (not set since the installer wasn't run) | 05:35 |
Reisiger | Do you also get "void_cast.hpp(36) : warning C4091: '__declspec(dllimport)'" when building? | 05:36 |
GeoffTheMedio2 | yes | 05:36 |
GeoffTheMedio2 | and various other warnings | 05:37 |
GeoffTheMedio2 | should still build and run, though | 05:37 |
Reisiger | I'm new to MSVC 2008 :-) Good thing we can download it for free via the University | 05:37 |
Reisiger | Well, I do have a question with MSVC and Tortoise... if I have to change the path to i.e. python26, is there a way to do it without causing one of the files pulled from the SVN to be changed? | 05:39 |
GeoffTheMedio2 | I also got mine free from MS via dreamspark | 05:39 |
GeoffTheMedio2 | I don't think so... you'd have to edit the project file, which is in SVN | 05:40 |
GeoffTheMedio2 | just don't commit changes to that file or include changes to it in a patch... updates should still work, since it can usually merge changes to the same file | 05:40 |
Reisiger | Ok. Will do so. | 05:41 |
Reisiger | That's an odd result: | 06:05 |
Reisiger | 5>freeorion - 0 error(s), 233 warning(s) | 06:05 |
Reisiger | ========== Rebuild All: 5 succeeded, 1 failed, 0 skipped ========== | 06:05 |
Reisiger | 1 failed? | 06:05 |
GeoffTheMedio2 | check the errors tab | 06:05 |
GeoffTheMedio2 | View -> Other Windows -> Error List | 06:06 |
GeoffTheMedio2 | although it should show up by default... | 06:06 |
Reisiger | k found it. Shows 47 errors and 540 warnings... does the list carry over errors/warnings found before I rebuild? | 06:07 |
GeoffTheMedio2 | no | 06:09 |
Reisiger | Error 337 fatal error LNK1120: 21 unresolved externals e:\Ext-Projects\FreeOrion_SDK\FreeOrion\freeorionca.exe | 06:09 |
Reisiger | Seems an issue with python... but the build path points to the right directory | 06:09 |
GeoffTheMedio2 | are there any unable to open file errors? | 06:09 |
GeoffTheMedio2 | you might need to put python26.dll into the freeorion directory | 06:09 |
Reisiger | lots of unresolved external symbol_imp_Py_NoneStruct | 06:10 |
GeoffTheMedio2 | could be the same issue, if it can't find the python dll or lib it needs | 06:11 |
GeoffTheMedio2 | you might also need to update the additional dependencies | 06:12 |
GeoffTheMedio2 | project properties -> linker -> input -> additional dependencies | 06:12 |
GeoffTheMedio2 | should be python26.lib not python25.lib | 06:13 |
Reisiger | ok, going to try it with python26 | 06:13 |
GeoffTheMedio2 | and the additional library directories, if you're using python 2.6, needs to be updated to point to that directory | 06:13 |
GeoffTheMedio2 | (in linker -> general -> ... ) | 06:14 |
Reisiger | ok now to find the python26.dll ^^ | 06:14 |
Reisiger | got it | 06:15 |
Reisiger | do I need to rename the python26.dll? | 06:16 |
GeoffTheMedio2 | no | 06:16 |
GeoffTheMedio2 | it should look for it in the freeorion directory if you're linking to python26.lib | 06:16 |
Reisiger | ok | 06:16 |
Reisiger | Building :) | 06:17 |
Reisiger | THanks for your help. | 06:17 |
GeoffTheMedio2 | np | 06:17 |
Reisiger | Seems it's finding all it needs, it's now taking it's time to compile freeorionca/AIInterface.cpp | 06:18 |
*** Reisiger is now known as Reisiger|Away | 06:20 | |
*** mithro has quit IRC | 06:35 | |
*** mithro has joined #freeorion | 06:41 | |
Reisiger|Away | Bugger... still failed with 47 errors | 06:50 |
*** Reisiger|Away is now known as Reisiger | 06:50 | |
GeoffTheMedio2 | what's the first? | 06:50 |
Reisiger | Error 48 error LNK2001: unresolved external symbol __imp___Py_NoneStruct PythonLoggingWrapper.obj | 06:50 |
Reisiger | here's one with a little bit more information: | 06:53 |
Reisiger | Error 55 error LNK2019: unresolved external symbol __imp__PyObject_IsTrue referenced in function "public: __thiscall boost::python::api::object_operators<class boost::python::api::object>::operator struct _object * (__thiscall boost::python::api::object::*)(void)const (void)const " (??B?$object_operators@Vobject@api@python@boost@@@api@python@boost@@QBEP8object@123@BEPAU_object@@XZXZ) PythonAI.obj | 06:53 |
GeoffTheMedio2 | you changed the additional dependencies to python26.lib ? | 06:54 |
Reisiger | Yes | 06:55 |
GeoffTheMedio2 | and the additional library directories for where you have python 2.6 ? | 06:55 |
Reisiger | yes | 06:55 |
GeoffTheMedio2 | hmm. strange. | 06:58 |
Reisiger | Indeed... I haven't yet checked if I have to recompile the libpng/zlib... but I sort of doubt this being the issue here | 06:59 |
GeoffTheMedio2 | I don't think freeorionca uses libpng | 07:00 |
Reisiger | http://www.freeorion.org/index.php/Zlib | 07:00 |
tpb | Title: Zlib - FreeOrionWiki (at www.freeorion.org) | 07:01 |
GeoffTheMedio2 | I know... I wrote that page. freeorionCA still doesn't use libpng as far as I know. | 07:02 |
GeoffTheMedio2 | regardless, you can probably try running freeorion without building freeorionca | 07:02 |
GeoffTheMedio2 | just make sure you set the number of AIs in your universe to 0 | 07:02 |
Reisiger | Ah, sorry o.O | 07:02 |
Reisiger | I'll give it a try | 07:02 |
GeoffTheMedio2 | during game setup | 07:02 |
Reisiger | E:\Ext-Projects\FreeOrion_SDK\FreeOrion>freeorion.exe | 07:04 |
Reisiger | main() caught exception(std::exception): OGRE XCEPTION(7:InternalErrorException ): Could not load dynamic library .\Plugin_CgProgramManager. System Error: The specified module could not be found. | 07:04 |
Reisiger | in DynLib::load at ..\src\OgreDynLib.cpp (line 80) | 07:04 |
GeoffTheMedio2 | hmm. perhaps the SDK hasn't been updated since that was added. | 07:05 |
Reisiger | could be | 07:05 |
GeoffTheMedio2 | I vaguely recall having to copy that plugin DLL from the ogre sdk | 07:05 |
GeoffTheMedio2 | Plugin_CgProgramManager.dll | 07:05 |
Reisiger | Shouldn't it then be part of the SVN? | 07:05 |
GeoffTheMedio2 | no, it's windows specific | 07:05 |
GeoffTheMedio2 | it should be in the SDK, but it just hasn't been updated yet | 07:06 |
Reisiger | ok | 07:06 |
GeoffTheMedio2 | I emailed tzlaine about it, so he should fix that soon. until then, you'll need to download the ogre SDK and copy that file into the freeorion directory | 07:07 |
Reisiger | Ok. I'm looking at adding the Maintenance SVN for Ogre | 07:07 |
GeoffTheMedio2 | I don't think you need the latest SVN of ogre... just the 1.6.1 release should be fine | 07:08 |
GeoffTheMedio2 | much easier than building it youself... | 07:09 |
GeoffTheMedio2 | yourself | 07:09 |
Reisiger | Hm... true :P | 07:09 |
Reisiger | Could that have caused the missing externals? | 07:10 |
GeoffTheMedio2 | no | 07:10 |
GeoffTheMedio2 | dlls aren't loaded until you run the program. not while building or linking it. | 07:10 |
Reisiger | Then it has to be something with python and my machine o.O | 07:12 |
Reisiger | Otherwise it wouldn't just be freeorionca that's affected | 07:12 |
GeoffTheMedio2 | something between msvc and python, apparently | 07:14 |
Reisiger | now it can't find cg.dll | 07:14 |
GeoffTheMedio2 | should be in the same place | 07:15 |
Reisiger | found it | 07:17 |
Reisiger | Hm... this is odd... looks like the FreeOrion I installed clashes with the one I just build: | 07:18 |
Reisiger | E:\Ext-Projects\FreeOrion_SDK\FreeOrion | 07:18 |
Reisiger | E:\Ext-Projects\FreeOrion_SDK\FreeOrion>freeorion.exe | 07:19 |
Reisiger | main() caught exception(GG::Font::BadFile): Face object created from "C:\Program | 07:19 |
Reisiger | Files (x86)\FreeOrion\default\DejaVuSans.ttf" was invalid | 07:19 |
GeoffTheMedio2 | delete your config.xml | 07:19 |
GeoffTheMedio2 | wherever it gets put on win 7 | 07:19 |
Reisiger | I'll uninstall. Can't get the Win32 installer version of 0.3.12 to work anyway | 07:20 |
GeoffTheMedio2 | uninstalling might not remove the config.xl | 07:20 |
GeoffTheMedio2 | xml | 07:20 |
Reisiger | looks like it... still points to the same place | 07:21 |
GeoffTheMedio2 | what happens when you try to run the installed version? | 07:21 |
Reisiger | Black screen, some flickering then it closes. | 07:21 |
Reisiger | I posted the ogre_log and dxdiag to the forum | 07:21 |
Reisiger | are any registry entries added via the installer? | 07:22 |
GeoffTheMedio2 | no | 07:23 |
Reisiger | Odd... | 07:23 |
GeoffTheMedio2 | because? | 07:23 |
Reisiger | This: | 07:24 |
Reisiger | E:\Ext-Projects\FreeOrion_SDK\FreeOrion>freeorion.exe | 07:24 |
Reisiger | main() caught exception(GG::Font::BadFile): Face object created from "C:\Program Files (x86)\FreeOrion\default\DejaVuSans.ttf" was invalid | 07:24 |
Reisiger | The directory doesn't even exist anymore | 07:24 |
GeoffTheMedio2 | did you delete config.xml ? | 07:24 |
Reisiger | where would it be located? | 07:25 |
Reisiger | Couldn't find it in the FreeOrion_SDK directory | 07:25 |
GeoffTheMedio2 | it's not there. it's a settings file created when the program is run. you can't create files in the program files directory, so it's not created in the directory where freeorion.exe is located | 07:26 |
GeoffTheMedio2 | on vista, it's in the equivalent of C:\Users\UserName\AppData\Roaming\FreeOrion | 07:26 |
GeoffTheMedio2 | win7 is probably similar | 07:26 |
Reisiger | yes, there it is ^^ Thanks | 07:27 |
Reisiger | It runs! :D | 07:27 |
Reisiger | and I can't move my mouse out of the edges in windowed mode o.O | 07:28 |
GeoffTheMedio2 | yeah... ogre is a bit quirky with that | 07:28 |
GeoffTheMedio2 | there's a way to make it so you can, but then you see the windows cursor on top of the in-game cursor | 07:28 |
Reisiger | Ow... that wouldn't look good... | 07:29 |
GeoffTheMedio2 | this is a recent development... I'm not very happy about it. | 07:29 |
Reisiger | Well... if windowed and fullscreen are toggles then there'd be a crude way around by making the ingame cursor invisible when windowed... o.O | 07:30 |
Reisiger | Crude and ugly | 07:30 |
GeoffTheMedio2 | yes, it could be hidden / fixed. | 07:31 |
Reisiger | Hm... works as long as I don't have AI players... I'll go research into that issue | 07:31 |
GeoffTheMedio2 | mkay | 07:32 |
Reisiger | since Win7 has the build number 6.1 I'd daresay the issue has to be close to vista x64 | 07:32 |
Reisiger | Issue solved | 07:48 |
GeoffTheMedio2 | ? | 07:48 |
Reisiger | Python messed up the x64 dlls of 2.5.4 and 2.6.1 | 07:48 |
Reisiger | they forgot to add those symbols | 07:48 |
GeoffTheMedio2 | hmm | 07:48 |
Reisiger | I installed python 2.6.1 32-bit and it compiled | 07:48 |
Reisiger | http://lists.boost.org/Archives/boost/2008/09/142776.php | 07:49 |
tpb | <http://ln-s.net/318Z> (at lists.boost.org) | 07:49 |
GeoffTheMedio2 | does it run? | 07:49 |
Reisiger | yes | 07:49 |
Reisiger | including the AI :) | 07:49 |
GeoffTheMedio2 | could you register on the wiki and put a note about this on the windows compile page? | 07:50 |
Reisiger | Will do | 07:50 |
Reisiger | I'll add it under Compilation Errors. Or should I post it elsewhere? | 07:53 |
GeoffTheMedio2 | re: your forum post: just call me Geoff the Medio ... the 2 is there because the IRC client won't stay connected and IRC doesn't automatically re-use the same name properly | 07:53 |
Reisiger | oops, sorry | 07:54 |
GeoffTheMedio2 | (afaik there's only one Geoff the Medio) | 07:54 |
Reisiger | ^^ | 07:54 |
Reisiger | Just wait until folks start misselling my nick ... somehow they all plant a 'n' o_O | 07:54 |
GeoffTheMedio2 | it does look like a typo | 07:55 |
Reisiger | Yep, but it's of german origin with a swiss application ;) | 08:02 |
Reisiger | The Wiki's updated | 08:09 |
GeoffTheMedio2 | can you throw in a link to that boost discussion about it, and refer to the errors using "you may get python-related errors while linking freeorionca" or something similar | 08:11 |
Reisiger | ok | 08:12 |
Reisiger | better? | 08:14 |
GeoffTheMedio2 | somewhat. I edited a bit. | 08:19 |
Reisiger | Ok... While I'm pretty good at english... it's not my motherlanguage | 08:20 |
GeoffTheMedio2 | and I'm kinda nitpicky | 08:20 |
Reisiger | ^^ | 08:20 |
Reisiger | Argh... stupid me... I forgot to set the number of AI players back from 0 | 08:26 |
Reisiger | So now I can build, but using AI crashes FreeOrion | 08:27 |
Reisiger | I'll try the zlib fix now ;) | 08:28 |
GeoffTheMedio2 | what's in the AI log files? (Same dir as config.xml) | 08:38 |
Reisiger | 2009-03-16 13:25:22,231 ERROR Client : SidePanel::PlanetPanelContainer::DoPanelsLaout passed positive top. It is expected to be 0 or negative only. | 08:40 |
Reisiger | this kind of error a lot of times | 08:40 |
GeoffTheMedio2 | AI log files. not freeorion.log | 08:40 |
Reisiger | one line stating it initiallised | 08:41 |
GeoffTheMedio2 | what's the last few lines of freeoriond.log ? | 08:42 |
Reisiger | ... | 08:43 |
Reisiger | 2009-03-16 13:42:22,449 DEBUG Server : starting freeorionca.exe | 08:43 |
Reisiger | 2009-03-16 13:42:22,451 DEBUG Server : done starting freeorionca.exe | 08:43 |
Reisiger | 2009-03-16 13:42:22,451 DEBUG Server : (ServerFSM) WaitingForSPGameJoiners.CheckStartConditions | 08:43 |
Reisiger | 2009-03-16 13:42:49,284 DEBUG Server : ServerFSM::HandleNonLobbyDisconnection : Host player disconnected; server terminating. | 08:43 |
Reisiger | 2009-03-16 13:42:51,284 FATAL Server : Initiating Exit (code 1 - error termination) | 08:43 |
GeoffTheMedio2 | hmm. and the last few lines of freeorion.log ? | 08:44 |
GeoffTheMedio2 | (it doesn't look like the problem is AI-related) | 08:44 |
Reisiger | it is | 08:44 |
Reisiger | I get as many runtime exceptions as I've set AI's | 08:45 |
Reisiger | ... | 08:45 |
Reisiger | 2009-03-16 13:44:34,499 DEBUG Client : (HumanClientFSM) WaitingForSPHostAck.HostSPGame | 08:45 |
Reisiger | 2009-03-16 13:44:34,501 DEBUG Client : (HumanClientFSM) ~WaitingForSPHostAck | 08:45 |
Reisiger | 2009-03-16 13:44:34,501 DEBUG Client : (HumanClientFSM) PlayingGame | 08:45 |
Reisiger | 2009-03-16 13:44:34,525 DEBUG Client : (HumanClientFSM) WaitingForTurnData | 08:45 |
Reisiger | 2009-03-16 13:44:34,527 DEBUG Client : (HumanClientFSM) WaitingForTurnDataIdle | 08:45 |
GeoffTheMedio2 | strange | 08:46 |
Reisiger | could be python 32-bit on a x64 OS o.O | 08:46 |
GeoffTheMedio2 | I suppose... but python scripts are getting executed... the "Initialized FreeOrion Python AI" comes from in python | 08:47 |
Reisiger | I'll try the x64 python26.dll in FreeOrion's directory... | 08:48 |
Reisiger | nothing... | 08:52 |
Reisiger | I don't think the version of python installed on a machine has any influence on a finished build when running freeorion.exe? | 08:52 |
GeoffTheMedio2 | is that a question? | 08:53 |
Reisiger | Sort of. | 08:53 |
GeoffTheMedio2 | rephrase? | 08:53 |
Reisiger | the python2x.dll in the FreeOrion's directory is there to enable the game incase someone has no python on his machine? | 08:53 |
GeoffTheMedio2 | even if you have python installed, I think you need the dll in the freeorion directory to run freeorionca | 08:54 |
Reisiger | Well using the x64 python didn't solve the issue... time to hit google | 08:58 |
Reisiger | could the exception coem from the loop that initialises the AI's? | 09:04 |
Reisiger | *come | 09:04 |
GeoffTheMedio2 | not sure... you can add some debug output to boost::statechart::result WaitingForSPGameJoiners::react(const CheckStartConditions& u) | 09:07 |
GeoffTheMedio2 | in serverfsm.cpp | 09:07 |
Reisiger | k then compile again and run from MSVC? | 09:11 |
GeoffTheMedio2 | yes | 09:11 |
Reisiger | Once it's done recompiling freeoriond, how do I monitor it? Launch FreeOrion and attach myself to the exe? | 09:25 |
GeoffTheMedio2 | depends what you want to monitor. if you added debug output using Logger().debugStream() you can open op the freeoriond.log and refresh it while the program is running, or just have a look after running and getting a crash | 09:27 |
GeoffTheMedio2 | attaching to freeorion.exe won't help you debug freeoriond.exe though | 09:28 |
Reisiger | I added some breakpoints... so i could attach myself to freeoriond? | 09:28 |
GeoffTheMedio2 | sure | 09:28 |
GeoffTheMedio2 | you shouldn't need to recompile after adding breakpoints though | 09:28 |
Reisiger | now I have to... it cleared everything o.O (stupid me) | 09:29 |
GeoffTheMedio2 | freeoriond starts up as soon as you click the single player button... so you can connect to it while on the galaxy setup screen | 09:29 |
GeoffTheMedio2 | debug output is probably easier to work with though | 09:29 |
Reisiger | Yep :) | 09:30 |
GeoffTheMedio2 | stepping through code and using breakpoints can be tricky and misleading | 09:30 |
Reisiger | Obvious enough to completely forget how I've usually littered any nwscript with debugging info going into a MySQL DB :D | 09:30 |
Reisiger | hm... attached and then made freeorion start a game with 2 AI's... immediately gt the exception yet the function you mentionned just got entered | 09:45 |
GeoffTheMedio2 | so something happening before that caused the errors | 09:48 |
GeoffTheMedio2 | maybe try boost::statechart::result Idle::react(const HostSPGame& msg) | 09:48 |
Reisiger | ok | 09:48 |
Reisiger | got to reboot, brb | 09:52 |
*** Reisiger has quit IRC | 09:52 | |
*** Reisiger has joined #freeorion | 09:55 | |
Reisiger | Note to self: always 'attach'... | 09:58 |
Reisiger | MS V C++ Runtime Library reports that Runtime Error again | 10:00 |
Reisiger | I'll try in | 10:01 |
Reisiger | boost::statechart::result WaitingForSPGameJoiners::react(const JoinGame& msg) | 10:01 |
Reisiger | caught it... added each a breakpoint in the SP funktions | 10:05 |
Reisiger | Happens in/after WaitingForSPGameJoiners::WaitingForSPGameJoiners(my_context c) : | 10:06 |
Reisiger | Base(c), | 10:06 |
Reisiger | m_setup_data(context<ServerFSM>().m_setup_data), | 10:06 |
Reisiger | m_server_save_game_data(new ServerSaveGameData()), | 10:06 |
Reisiger | m_num_expected_players(0) | 10:06 |
Reisiger | Exception occurs when the debugger gets to line 417: Base::post_event(CheckStartConditions()); | 10:11 |
Reisiger | Previousely he completed the 'if' conditional and skipped the 'else' | 10:11 |
GeoffTheMedio2 | probably crashing in server.CreateAIClients or in the AI initialization after they're created | 10:13 |
Reisiger | I'll add log output | 10:14 |
Reisiger | Time for a coffee :) Back in 5 (should finish compiling by then) | 10:18 |
Reisiger | back | 10:22 |
Reisiger | 2009-03-16 15:22:44,121 DEBUG Server : starting freeorionca.exe | 10:23 |
Reisiger | 2009-03-16 15:22:44,123 DEBUG Server : done starting freeorionca.exe | 10:23 |
Reisiger | 2009-03-16 15:22:44,123 DEBUG Server : If - After: server.CreateAIClients(... | 10:23 |
Reisiger | 2009-03-16 15:22:44,123 DEBUG Server : Before: Base::post_event(CheckStartConditions()); | 10:23 |
Reisiger | 2009-03-16 15:22:44,123 DEBUG Server : After: Base::post_event(CheckStartConditions()); | 10:23 |
Reisiger | 2009-03-16 15:22:44,123 DEBUG Server : (ServerFSM) WaitingForSPGameJoiners.CheckStartConditions | 10:23 |
Reisiger | 2009-03-16 15:22:50,149 DEBUG Server : ServerFSM::HandleNonLobbyDisconnection : Host player disconnected; server terminating. | 10:23 |
Reisiger | 2009-03-16 15:22:52,149 FATAL Server : Initiating Exit (code 1 - error termination) | 10:23 |
Reisiger | starting freeorionca twice? | 10:23 |
GeoffTheMedio2 | as in why is it, or why isn't it starting it twice? | 10:24 |
Reisiger | as in 'why is' | 10:24 |
GeoffTheMedio2 | didn't you ask for two AIs? | 10:24 |
Reisiger | *facepalm* Again with the obvious | 10:25 |
GeoffTheMedio2 | looks like the server is aborting in checkstartconditions | 10:26 |
Reisiger | next place for some debug logs... | 10:27 |
Reisiger | hm... CheckStartConditions looks like an empty struct... or am I looking at the wrong place? | 10:32 |
GeoffTheMedio2 | you are | 10:32 |
GeoffTheMedio2 | it's an event that the finite state machine reacts to | 10:33 |
GeoffTheMedio2 | when the CheckStartConditions() event is posted, the current state's reaction to it is executed | 10:33 |
GeoffTheMedio2 | (so I was misleading above) | 10:34 |
Reisiger | Nah... blame my java coding and inexperience with C/C++ | 10:34 |
Reisiger | So in that case, where do I have to place additional log outputs? | 10:36 |
GeoffTheMedio2 | if the previous crashes were in a member function of WaitingForSPGameJoiners, then posting CheckStartConditinos would execute WaitingForSPGameJoiners::react(const CheckStartConditions&) | 10:38 |
Reisiger | ok, I'll hoop into it | 10:40 |
Reisiger | *hook | 10:40 |
Reisiger | Error occured before boost::statechart::result WaitingForSPGameJoiners::react(const CheckStartConditions& u) | 10:41 |
Reisiger | ... | 10:44 |
Reisiger | 2009-03-16 15:41:01,735 DEBUG Server : Before: Base::post_event(CheckStartConditions()); | 10:44 |
Reisiger | 2009-03-16 15:41:01,735 DEBUG Server : After: Base::post_event(CheckStartConditions()); | 10:44 |
Reisiger | looks like it happens right after | 10:44 |
Reisiger | WaitingForSPGameJoiners::WaitingForSPGameJoiners(my_context c) | 10:44 |
GeoffTheMedio2 | my guess is that the server is launching the AIs, which barf for some reason, after which the server gets notified of this, and aborts | 10:46 |
Reisiger | I'll slap breakpoints at the start of every function in ServerFSM.cpp | 10:46 |
Reisiger | Possible... given the funky behaviour of x64 and python | 10:46 |
Reisiger | I'll go add breakpoints in PythonAI.cpp | 10:53 |
Reisiger | hm... is freeorionca a seperate process? | 10:58 |
GeoffTheMedio2 | yes | 10:58 |
GeoffTheMedio2 | several of them... one per ai | 10:58 |
Reisiger | How can I hook into them? | 10:59 |
GeoffTheMedio2 | not very easily if they're crashing right after starting... | 11:00 |
Reisiger | log entries then | 11:00 |
GeoffTheMedio2 | maybe put a big 10 second delay into them with a suitable loop, and then attach the debugger during those 10 seconds | 11:00 |
Reisiger | Compiling ... :) | 11:04 |
*** GeofftheMedio has joined #freeorion | 11:08 | |
Reisiger | 2009-03-16 16:10:07,969 DEBUG AI : AI_1 logger initialized. | 11:11 |
Reisiger | 2009-03-16 16:10:07,970 DEBUG AI : PythonAI::PythonAI() | 11:11 |
Reisiger | doesn't go further... | 11:12 |
GeofftheMedio | consistent with above theory, I suppose | 11:18 |
Reisiger | Yes. I added some more loggers | 11:19 |
*** mithro has quit IRC | 11:19 | |
Reisiger | interesting... now no exception, but it doesn't finish generating either | 11:20 |
*** GeoffTheMedio2 has quit IRC | 11:21 | |
Reisiger | odd... 2009-03-16 16:20:03,668 DEBUG AI : AI_1 logger initialized. | 11:21 |
Reisiger | 2009-03-16 16:20:03,669 DEBUG AI : PythonAI::PythonAI() | 11:21 |
Reisiger | 2009-03-16 16:20:03,692 DEBUG AI : Shutting down AI_1 logger... | 11:21 |
Reisiger | 2009-03-16 16:20:02,065 DEBUG Server : After: Base::post_event(CheckStartConditions()); | 11:22 |
Reisiger | 2009-03-16 16:20:02,065 DEBUG Server : (ServerFSM) WaitingForSPGameJoiners.CheckStartConditions | 11:22 |
Reisiger | stuck o_O | 11:22 |
GeofftheMedio | what did you change? | 11:22 |
Reisiger | I added some more loggers to PythonAI::PythonAI() | 11:23 |
Reisiger | I'll comment them out, build again and see what happens | 11:23 |
Reisiger | ok... now the exceptions again ... | 11:27 |
GeofftheMedio | odd | 11:28 |
Reisiger | AI_1error.txt | 11:28 |
Reisiger | main() caught exception(std::runtime_error): Attempted to create more than one Python AI instanceUsage: | 11:28 |
GeofftheMedio | uhm... | 11:29 |
GeofftheMedio | ok | 11:29 |
Reisiger | I'll revert the scripts back to the latest SVN version, then try again | 11:29 |
GeofftheMedio | don't think this is a script issue | 11:30 |
Reisiger | I doubt it aswell, but just incase I messed up while adding the log output | 11:31 |
GeofftheMedio | were you adding log output to the .py files or the .cpp files? | 11:32 |
Reisiger | the cpp | 11:32 |
GeofftheMedio | "scripts" usually doesn't refer to cpp files | 11:32 |
Reisiger | would 'code' be more apropriate? | 11:33 |
Reisiger | No more AI error txt's | 11:34 |
GeofftheMedio | sure. | 11:35 |
Reisiger | *facepalm* What am I doing to that poor program?! | 11:35 |
GeofftheMedio | hmm... maybe the text of that exception was misleading...? | 11:35 |
Reisiger | it must have apeated around... | 11:36 |
Reisiger | PythonAI.cpp line 172 | 11:36 |
Reisiger | Oh the shame... I forgot to add braces when I slapped in the log output | 11:38 |
Reisiger | So that was miseading | 11:39 |
Reisiger | Adding a delay to the PythonAI() funktion to attach the debugger | 11:44 |
Reisiger | Interesting... crashes even before going into PythonAI? | 11:51 |
GeofftheMedio | maybe fails trying to load a dll that wasn't built for the os? | 11:52 |
Reisiger | would python make a log? | 11:52 |
GeofftheMedio | don't know | 11:53 |
Reisiger | hm... need to reboot again. brb | 11:55 |
*** Reisiger has quit IRC | 11:55 | |
*** Reisiger has joined #freeorion | 12:01 | |
Reisiger | Back. Going to add more breakpoints to PythonAI | 12:03 |
Reisiger | Now I'm getting something new | 12:10 |
Reisiger | Unhandled exception at 0x002aa1c4 in freeorionca.exe: 0xC0000005: Access violation reading location 0x00000004. | 12:10 |
GeofftheMedio | uhm... dunno | 12:10 |
Reisiger | and the debugger points me to template<class T> | 12:10 |
Reisiger | rebuilding helped... | 12:16 |
Reisiger | Py_Initialize(); | 12:16 |
Reisiger | that's the troublemaker | 12:17 |
Reisiger | or not o_O | 12:19 |
Reisiger | exception this time around initfreeOrionAIInterface(); | 12:20 |
Reisiger | AI logs stop at: | 12:24 |
Reisiger | 2009-03-16 17:23:36,488 ERROR AI : Before: initfreeOrionLogger(); | 12:24 |
Reisiger | Hm... I'll give upgrading to Boost 1.38 a shot... otherwise I'm clueless. | 13:15 |
GeofftheMedio | maybe see if a simple example boost python program can run? | 13:16 |
Reisiger | k, making one | 13:18 |
Reisiger | bugger tells me all the time the boost_python... dll is missing o_O | 13:33 |
GeofftheMedio | is it? | 13:33 |
Reisiger | might be not a simple enough example | 13:34 |
Reisiger | Either I messed up the hello world variant while copy/pasting or I forgot one of the project settings | 13:39 |
Reisiger | I give up for today... going to get a clean setup of everything | 13:42 |
GeofftheMedio | mkay | 13:42 |
Reisiger | Have a nice evening :) | 13:44 |
GeofftheMedio | morning actually | 13:44 |
*** Reisiger has left #freeorion | 13:45 | |
*** kroddn has quit IRC | 13:55 | |
*** kroddn has joined #freeorion | 14:01 | |
*** ChanServ sets mode: +o kroddn | 14:01 | |
*** kroddnoMobil has joined #freeorion | 15:39 | |
*** ChanServ sets mode: +o kroddnoMobil | 15:39 | |
*** Reisiger has joined #freeorion | 16:47 | |
Reisiger | Good evening ;) | 16:47 |
Reisiger | Got FreeOrion to work | 16:47 |
Reisiger | Updating to Boost 1.38 did the trick | 16:48 |
kroddnoMobil | which os are you using? | 16:50 |
Reisiger | Win 7 beta build 700 x64 | 16:51 |
Reisiger | err build 7000 | 16:51 |
Reisiger | Which translates to Vista 1.1 x64 ^_^ | 16:51 |
kroddnoMobil | GeofftheMedio | 17:12 |
kroddnoMobil | can you check if I still have rights on FreeOrion at SourceForge ? | 17:12 |
kroddnoMobil | I cannot find the admin menu... | 17:12 |
Reisiger | shall I make a wiki entry in compiling in windows --> runtime errors? | 17:14 |
kroddnoMobil | if it helps others... | 17:15 |
kroddnoMobil | GeofftheMedio: found it, there's no admin menu any more | 17:15 |
Reisiger | hm... not sure... might be a specific issue with my OS & Python26 & MSVC 2008 IDE... | 17:16 |
kroddnoMobil | every problem that is solved should be written down about somewhere | 17:19 |
kroddnoMobil | so, use the wiki or the forums | 17:19 |
GeofftheMedio | kroddn make sure you're logged in? | 17:20 |
Reisiger | I posted an update to the thread I started in the support forum. So it 's written down :) | 17:20 |
kroddnoMobil | GeofftheMedio: the "Upload" links appear after clicking on Download | 17:22 |
kroddnoMobil | I just released a 0.3.12 linux version | 17:23 |
GeofftheMedio | awesome | 17:24 |
kroddnoMobil | Can you add a posting to http://www.freeorion.org/forum/viewtopic.php?f=12&t=1220&p=35315#p35315 ? | 17:25 |
tpb | <http://ln-s.net/31GX> (at www.freeorion.org) | 17:25 |
kroddnoMobil | I named it 0.3.12.1 because its a never release then the 0.3.12 win32 one | 17:25 |
kroddnoMobil | never = newer | 17:25 |
GeofftheMedio | I'll get to it, but not immediately | 17:26 |
kroddnoMobil | Please add a note that it may not run on every ATI card, even if it supports OpenGL >= 2.0 | 17:28 |
Reisiger | Good night everyone :) | 17:47 |
kroddnoMobil | hF | 17:48 |
*** Reisiger has left #freeorion | 17:48 | |
*** hagish has joined #freeorion | 18:58 | |
*** mithro has joined #freeorion | 20:17 | |
*** hagish has quit IRC | 20:32 | |
*** kroddnoMobil has quit IRC | 20:37 | |
*** mithro has quit IRC | 21:47 | |
*** ChanServ sets mode: +o GeofftheMedio | 22:43 | |
GeofftheMedio | kroddn: could you update the Tarballs section of the Compile wiki page with the relevant versions of FO and GG for your new linux release? | 22:51 |
*** welterde has quit IRC | 23:49 | |
*** GeofftheMedio has quit IRC | 23:49 | |
*** STalKer-X has quit IRC | 23:49 | |
*** kroddn has quit IRC | 23:49 | |
*** kroddn has joined #freeorion | 23:51 | |
*** GeofftheMedio has joined #freeorion | 23:51 | |
*** STalKer-X has joined #freeorion | 23:51 | |
*** welterde has joined #freeorion | 23:51 | |
*** irc.freenode.net sets mode: +oo kroddn GeofftheMedio | 23:51 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!