Wiki updates and maintenance?

Re: Wiki updates and manteniance?

Postby domtron » 09 Jul 2013, 22:47

sorry, didn't realize there was a response to this topic

here is the output near the crash point
{l Code}: {l Select All Code}
*** Initializing OIS ***
==970== Warning: silly arg (-1) to __builtin_vec_new()
**970** new/new[] failed and should throw an exception, but Valgrind
**970**    cannot throw exceptions and so is aborting instead.  Sorry.
==970==    at 0x4C29F8D: VALGRIND_PRINTF_BACKTRACE (valgrind.h:4550)
==970==    by 0x4C2BBEF: operator new[](unsigned long) (vg_replace_malloc.c:363)
==970==    by 0x58A066: loadFile(char const*, long&) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==970==    by 0x58A268: PrefixTreeLL::build(char const*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==970==    by 0x556461: ConsoleMode::ConsoleMode(ModeContext*, Console*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==970==    by 0x5804FA: ModeManager::ModeManager(GameMap*, MiniMap*, Console*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==970==    by 0x584DAE: ODFrameListener::ODFrameListener(Ogre::RenderWindow*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==970==    by 0x583C11: ODApplication::ODApplication() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==970==    by 0x460E28: main (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==970==
==970== HEAP SUMMARY:
==970==     in use at exit: 31,352,008 bytes in 20,631 blocks
==970==   total heap usage: 136,397 allocs, 115,766 frees, 83,019,541 bytes allocated
==970==
==970== LEAK SUMMARY:
==970==    definitely lost: 4,096 bytes in 1 blocks
==970==    indirectly lost: 0 bytes in 0 blocks
==970==      possibly lost: 13,674,380 bytes in 4,776 blocks
==970==    still reachable: 17,673,532 bytes in 15,854 blocks
==970==         suppressed: 0 bytes in 0 blocks
==970== Rerun with --leak-check=full to see details of leaked memory
==970==
==970== For counts of detected and suppressed errors, rerun with: -v
==970== Use --track-origins=yes to see where uninitialised values come from
==970== ERROR SUMMARY: 778 errors from 4 contexts (suppressed: 0 from 0)


most of the log here: http://pastebin.com/CRBiVWkA
I lost the first part of the log because it overfills the cache and I can't get tee or > to work for some odd reason
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Wiki updates and manteniance?

Postby paul424 » 10 Jul 2013, 10:46

Ahh I get it , you don't have file >>dictionary.txt<< which is needed to be in ./OpenDungeons.bin dir . It's in OD main dir.
Just put it there.
We need to modify cmake scripts so it moves the dictionary.txt to proper place .
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Wiki updates and manteniance?

Postby Bodsda » 10 Jul 2013, 14:56

paul424 {l Wrote}:Ahh I get it , you don't have file >>dictionary.txt<< which is needed to be in ./OpenDungeons.bin dir . It's in OD main dir.
Just put it there.
We need to modify cmake scripts so it moves the dictionary.txt to proper place .

Who are you replying to, I can't see anything in domtrons log that indicates a missing file
User avatar
Bodsda
OD Moderator
 
Posts: 195
Joined: 18 Feb 2010, 08:19

Re: Wiki updates and manteniance?

Postby domtron » 10 Jul 2013, 16:41

Awesome! I would love to know how you figured that out. I can get to the main menu and hit new game and edit map! But now it's crashing just after showing the map.

{l Code}: {l Select All Code}
Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_00001110.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/domtron/.ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
*** ERROR: Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_00001110.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/domtron/.ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)


in valgrind
{l Code}: {l Select All Code}
Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_00001110.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/domtron/.ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
*** ERROR: Internal Ogre3D exception: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource Dirt_00001110.mesh in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /home/domtron/.ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
==17845== Thread 13:
==17845== Invalid read of size 8
==17845==    at 0x567037: queueServerNotification(ServerNotification*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x581190: MovableGameEntity::setAnimationState(std::string const&, bool) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x581491: MovableGameEntity::clearDestinations() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x581938: MovableGameEntity::setWalkPath(std::list<Tile*, std::allocator<Tile*> >, unsigned int, bool) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x55E182: Creature::doTurn() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x567FFD: GameMap::creatureDoTurnHelperThread(void*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x6451E99: start_thread (pthread_create.c:308)
==17845==    by 0x6F70CCC: clone (clone.S:112)
==17845==  Address 0x178 is not stack'd, malloc'd or (recently) free'd
==17845==
==17845==
==17845== Process terminating with default action of signal 11 (SIGSEGV)
==17845==  Access not within mapped region at address 0x178
==17845==    at 0x567037: queueServerNotification(ServerNotification*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x581190: MovableGameEntity::setAnimationState(std::string const&, bool) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x581491: MovableGameEntity::clearDestinations() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x581938: MovableGameEntity::setWalkPath(std::list<Tile*, std::allocator<Tile*> >, unsigned int, bool) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x55E182: Creature::doTurn() (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x567FFD: GameMap::creatureDoTurnHelperThread(void*) (in /home/domtron/games/opendoungen/opendungeons-git/test_build/OpenDungeons.bin)
==17845==    by 0x6451E99: start_thread (pthread_create.c:308)
==17845==    by 0x6F70CCC: clone (clone.S:112)
==17845==  If you believe this happened as a result of a stack
==17845==  overflow in your program's main thread (unlikely but
==17845==  possible), you can try to increase the size of the
==17845==  main thread stack using the --main-stacksize= flag.
==17845==  The main thread stack size used in this run was 8388608.
==17845==
==17845== HEAP SUMMARY:
==17845==     in use at exit: 143,442,051 bytes in 689,474 blocks
==17845==   total heap usage: 1,411,106 allocs, 721,632 frees, 316,390,414 bytes allocated
==17845==
==17845== LEAK SUMMARY:
==17845==    definitely lost: 17,928 bytes in 103 blocks
==17845==    indirectly lost: 110,315 bytes in 286 blocks
==17845==      possibly lost: 96,656,335 bytes in 341,281 blocks
==17845==    still reachable: 46,657,473 bytes in 347,804 blocks
==17845==         suppressed: 0 bytes in 0 blocks
==17845== Rerun with --leak-check=full to see details of leaked memory
==17845==
==17845== For counts of detected and suppressed errors, rerun with: -v
==17845== Use --track-origins=yes to see where uninitialised values come from
==17845== ERROR SUMMARY: 833 errors from 19 contexts (suppressed: 0 from 0) Killed


I know from reading through the tile code files that the file name is constructed. Is it possible there is a bug in it?

Also I'm making a list for changes to cmake so go ahead and keep telling me stuff. this is what I have so far:
* cmake needs version checks for prerequisits added
* cmake needs to move dictionary from OD main dir to the build directory

Finally I have a cal test tomorrow so I can't work on anything else today or tomorrow. I'll probably be back on friday.
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Wiki updates and manteniance?

Postby paul424 » 10 Jul 2013, 17:32

Well you need to look at models dir and find and choose from two of Dirt_<YourMissingPrefix>a and Dirt_<YourMissingPrefix>b and rename one of to Dirt_<YourMissingPrefix> . There are a few such cases of tiles in NST.
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Wiki updates and manteniance?

Postby domtron » 10 Jul 2013, 18:49

There are no Dirt_<number> files only Dirt<number> and there are no Dirt<number> with 00001110 which is why I was thinking there was an error in constructing the mesh filename. Is there a different media repository for the dev branch?
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Wiki updates and manteniance?

Postby paul424 » 10 Jul 2013, 19:33

Ahh of course , you don't know yet about NST:
http://opendungeons.svn.sourceforge.net/viewvc/opendungeons/mediaSource/Models/OD_Tilesets/OD_Tilesets_export/Tilesets_binary/
There's a tarball on the bottom of the page ..
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Wiki updates and manteniance?

Postby domtron » 11 Jul 2013, 14:32

Ok I couldn't keep away :P

First what is NST and why are those separate from the rest of the media files.

Second I downloaded it and did what you said and OD ran with out error. I then grabbed the new updates you made this month(everything after commit c654b37a34ed03585e78fcdf4645f94c4f1efae3) and it wouldn't compile. It's odd because the last thing is a warning then it exits...
{l Code}: {l Select All Code}
/home/domtron/games/opendoungen/opendungeons-git/dependencies/angelscript/add_on/scripthelper/scripthelper.h:46:95: error: ‘::value’ has not been declared
/home/domtron/games/opendoungen/opendungeons-git/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp: In function ‘void PrintException(asIScriptContext*, bool)’:
/home/domtron/games/opendoungen/opendungeons-git/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp:432:19: warning: unused variable ‘engine’ [-Wunused-variable]
make[2]: *** [CMakeFiles/OpenDungeons.bin.dir/dependencies/angelscript/add_on/scripthelper/scripthelper.cpp.o] Error 1
make[1]: *** [CMakeFiles/OpenDungeons.bin.dir/all] Error 2
make: *** [all] Error 2


Also there are numerous errors like the following
{l Code}: {l Select All Code}
/home/domtron/games/opendoungen/opendungeons-git/dependencies/angelscript/add_on/scripthelper/scripthelper.h:46:94: error: expected primary-expression before ‘>’ token


@jipuf you might want to revert to the commit I just mentioned. you can use ""git checkout c654b37a34ed03585e78fcdf4645f94c4f1efae3"" to move to the commit that compiles and runs. Unless someone thinks this is a bad way to do it. As I've said I'm not very familiar with the "fancier" commands. so far it has worked for me.
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Wiki updates and manteniance?

Postby Jipuf » 11 Jul 2013, 17:45

I try the last commit and the commit you mentioned and both compiles. Do you use c++11 when you compile?
Also you do not have the last commit in which scripthelper.h has only 32 lines.
Jipuf
 
Posts: 9
Joined: 05 Jul 2013, 21:25

Re: Wiki updates and manteniance?

Postby domtron » 12 Jul 2013, 02:23

Yaaa... those c++11 flags >.> thanks for reminding me Jipuf. Paul should the flag be permanently added to the cmake since it not optional?

Anyway, I did well on my test and I just got the latest OD To compile so I'm happy :). Thanks for putting up with me Paul. ;)

My OD build is running really fast is it just me?
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Wiki updates and manteniance?

Postby Danimal » 12 Jul 2013, 11:55

God, you guys need to streamline the building process a lot, all this post sounded like hell on earth
User avatar
Danimal
OD Moderator
 
Posts: 1407
Joined: 23 Nov 2010, 13:50

Re: Wiki updates and manteniance?

Postby Jipuf » 12 Jul 2013, 14:24

I made a list as precise as I can of all step i took to compile OD. I hope that this will help you. :)

- Install dépendencies:
    - Install Ogre 1.8.1:
      - Install dependencies:
        - Run
        {l Code}: {l Select All Code}
        sudo apt-get install build-essential automake libtool libfreetype6-dev libfreeimage-dev libzzip-dev libxrandr-dev libxaw7-dev freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev libxt-dev libpng12-dev libglew1.6-dev

      - Download SDK on this page: http://www.ogre3d.org/download/source
      - Build:
        - Go to the download dir and extract the archive
        - Run
        {l Code}: {l Select All Code}
        cd ogre_src_v1-8-1/
        mkdir Build
        cd Build
        cmake ..
        make
        sudo make install

      - Install CEGUI 0.8.2
      - Run
      {l Code}: {l Select All Code}
      sudo apt-get install cmake libois-dev libfreeimage3-dbg libsfml-dev libopenal-dev

- Get the source
    - Run
    {l Code}: {l Select All Code}
    git clone git://opendungeons.git.sourceforge.net/gitroot/opendungeons/opendungeons
    git checkout -b development remotes/origin/development

- Extract the source archive and go to the source dir
- Get the media files
- Compiling
- Run
{l Code}: {l Select All Code}
cp ../dictionary.txt .

- Run the game
{l Code}: {l Select All Code}
./OpenDungeons.bin
Jipuf
 
Posts: 9
Joined: 05 Jul 2013, 21:25

Re: Wiki updates and manteniance?

Postby Bodsda » 12 Jul 2013, 15:34

Jipuf {l Wrote}:I made a list as precise as I can of all step i took to compile OD. I hope that this will help you. :)


I'll test and script this tonight.
User avatar
Bodsda
OD Moderator
 
Posts: 195
Joined: 18 Feb 2010, 08:19

Re: Wiki updates and manteniance?

Postby domtron » 12 Jul 2013, 17:07

That is great Jipuf! I'll rework it a bit and add it to the build page.

Bodsda, I'm going to rename that page you made to Ubuntu Prerequisite Instructions and put the above for ubuntu 12.04 to 13.04 dev branch. Do you think we should include the script your making with the repo? we could have an auto_tools/build folder with scripts specific to different distros and a main ./build.sh script that takes some variables(build folder ect) and then tries to run the closest build script in the folder above. It's an unusual setup, any comments?
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Wiki updates and manteniance?

Postby Bodsda » 12 Jul 2013, 23:04

domtron {l Wrote}:That is great Jipuf! I'll rework it a bit and add it to the build page.

Bodsda, I'm going to rename that page you made to Ubuntu Prerequisite Instructions and put the above for ubuntu 12.04 to 13.04 dev branch. Do you think we should include the script your making with the repo? we could have an auto_tools/build folder with scripts specific to different distros and a main ./build.sh script that takes some variables(build folder ect) and then tries to run the closest build script in the folder above. It's an unusual setup, any comments?


I would have preferred that all dependencies are handled by package managers but if this project is always going to be a minefield of manually compiling prereqs then we should probably script it. I can get this done in an evening or so but won't have the time until next week, a basic PyGTK gui and automated builds of CEGUI, Ogre and OD should be quite simple assuming I can figure out adding the C++11 flags to cmake programitcally (Paul424 this would be a good time to fix this in the git branch before I waste hours on it).
User avatar
Bodsda
OD Moderator
 
Posts: 195
Joined: 18 Feb 2010, 08:19

Re: Wiki updates and manteniance?

Postby domtron » 13 Jul 2013, 05:06

Bodsda {l Wrote}:
domtron {l Wrote}:I would have preferred that all dependencies are handled by package managers ...


Your right, just doing some specific documentation should be enough for now.

The problem is that anyone using a old distro version that doesn't have the right versions of our dependencies now probably won't ever get them, correct me if I'm wrong, since the repositories of distro versions 2-3 releases old don't get newer versions of packages.(sorry if that is horribly worded >.<). The long term solution would be setting up repositories for different distros and distro versions that contain stable releases and all nessasary dependancies(but that would be alot of work). I've never done anything like this before so I don't have anything to base my ideas or possible solutions on. :/

For now we should just keep up decent build instructions and make sure we help people on the forums and irc.
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Wiki updates and manteniance?

Postby Bodsda » 13 Jul 2013, 06:43

domtron {l Wrote}:For now we should just keep up decent build instructions and make sure we help people on the forums and irc.

Agreed
User avatar
Bodsda
OD Moderator
 
Posts: 195
Joined: 18 Feb 2010, 08:19

Re: Wiki updates and manteniance?

Postby domtron » 14 Jul 2013, 00:47

Hay just putting the finishing touches on the prerequisites section. I would really appreciate feed back, grammar checking, and most importantly fact checking.
domtron
 
Posts: 101
Joined: 10 Jun 2013, 16:22

Re: Wiki updates and maintenance?

Postby Bodsda » 14 Jul 2013, 06:39

domtron {l Wrote}:Hay just putting the finishing touches on the prerequisites section. I would really appreciate feed back, grammar checking, and most importantly fact checking.

Cool, I'll take a look when I get home tonight.
User avatar
Bodsda
OD Moderator
 
Posts: 195
Joined: 18 Feb 2010, 08:19

Re: Wiki updates and maintenance?

Postby Jipuf » 16 Jul 2013, 10:01

domtron {l Wrote}:My OD build is running really fast is it just me?

I get the same behaviour. I will work on it.
Jipuf
 
Posts: 9
Joined: 05 Jul 2013, 21:25

Re: Wiki updates and maintenance?

Postby Jipuf » 16 Jul 2013, 10:41

It comes from the commit 0d5582bc03e81747306aec41d0c5698debbfc02 (http://sourceforge.net/p/opendungeons/git/ci/0d5582bc03e81747306aec41d0c5698debbfc020/). I made a patch to correct this and back to a normal speed.
Attachments
time.patch
patch for back to a normal speed
(712 Bytes) Downloaded 420 times
Jipuf
 
Posts: 9
Joined: 05 Jul 2013, 21:25

Re: Wiki updates and maintenance?

Postby paul424 » 16 Jul 2013, 14:23

Uhh I set this on purpose to see OD's characters running :) and crash it faster , than with another commit I didn't bother to clear it out .....
So that was the tutorial quest - like bring the mage's forgotten book from stable :P , I understand that you are going for more exp points ;) ...
EDIT : can someone grant Jipuf access to ssh git repo ?
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Wiki updates and maintenance?

Postby Danimal » 16 Jul 2013, 15:06

So its now a new windows release possible?
User avatar
Danimal
OD Moderator
 
Posts: 1407
Joined: 23 Nov 2010, 13:50

Re: Wiki updates and maintenance?

Postby paul424 » 23 Jul 2013, 11:15

I got the following reply from Bertram : "In fact, I still am for one more day and hopefully I'll be back on track soon.
If you got any useful info (just as fixes for the angel script problems, or
such, feel free to tell), I'll try to follow the development done on OD
while
I'm doing my own tries on the 4.10 branch."

So let's keep our finger crossed for Windows build .
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Who is online

Users browsing this forum: No registered users and 1 guest