Author Topic: Trunk Testing  (Read 12441 times)

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Trunk Testing
« on: 23 July 2009, 08:25:33 »
Just some notes on testing the trunk on revision 117.

This was when I did the advanced tutorial.

- lags on returning to the resource (not sure if I caused this when I refactored HarvestCommandType ???)
- lags on long paths (@silnarm: you probably already know this)
- initiates started wandering off and eventually came back to harvesting (looked as if they were lost)
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Trunk Testing
« Reply #1 on: 24 July 2009, 00:19:28 »
- lags on returning to the resource (not sure if I caused this when I refactored HarvestCommandType ???)
You're safe... the refactoring's not in trunk yet :)

Quote from: hailstone
- lags on long paths (@silnarm: you probably already know this)
- initiates started wandering off and eventually came back to harvesting (looked as if they were lost)
I've noticed that selecting a large group and sending them on a long path barely causes a glitch, if they are spread out.  But if they're bunched up, lag-time. I think they block each other a lot causing paths to be recalculated. 
I've changed the default algorithm to Greedy search, and reduced the node limit, played one game through and didn't notice any problems.  We may have to leave it that way for now, until we can come up with some viable option for co-operation in path finding.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Trunk Testing
« Reply #2 on: 24 July 2009, 05:37:04 »
I get this link error when compiling trunk on Linux [revision 120]:

Code: [Select]
LinkApplication glestadv
./build/i686-pc-linux-gnu/optimize/glest_game/path_finder/path_finder.o: In function `Glest::Game::Search::PathFinder::findPath(Glest::Game::Unit*, Shared::Graphics::Vec2<int> const&)':
/home/hailstone/workspace/trunk/mk/linux/glest_game/path_finder/path_finder.cpp:200: undefined reference to `Glest::Game::Search::GraphSearch::canPathOut(Shared::Graphics::Vec2<int> const&, int, Glest::Game::Field)'
collect2: ld returned 1 exit status

I've also uploaded a release build win32 binary of trunk [revision 120] at sourceforge that comes with lua51.dll. https://sourceforge.net/projects/glestae/files/
« Last Edit: 24 July 2009, 05:57:32 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Trunk Testing
« Reply #3 on: 24 July 2009, 06:40:33 »
I get this link error when compiling trunk on Linux [revision 120]:

Code: [Select]
LinkApplication glestadv
./build/i686-pc-linux-gnu/optimize/glest_game/path_finder/path_finder.o: In function `Glest::Game::Search::PathFinder::findPath(Glest::Game::Unit*, Shared::Graphics::Vec2<int> const&)':
/home/hailstone/workspace/trunk/mk/linux/glest_game/path_finder/path_finder.cpp:200: undefined reference to `Glest::Game::Search::GraphSearch::canPathOut(Shared::Graphics::Vec2<int> const&, int, Glest::Game::Field)'
collect2: ld returned 1 exit status
That signature looks funny... (Vec2i const &, int, Field)
Should be (const Vec2i&, const int, Field)

I just compiled it successfully... Don't know what he hell jam is doing though..?? It's supposed to build all targets when invoked without a specific target, but the only glestadv I'm getting is clearly a debug build (42MB)... there only seems to be one binary... Do you know what the correct target is for release? (and no, it's not 'release' :) ) I had a look at application.jam, but I'm not to sure what I'm looking at, and the targets seem to be being built from other variables...
Glest Advanced Engine - Code Monkey

Timeline | Downloads

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Trunk Testing
« Reply #4 on: 24 July 2009, 07:57:30 »
The only thing I can see is in configure.ac
Code: [Select]
#----------------------------------------------------------------------------
# Check for build variant (debug, profile, optimize)
#----------------------------------------------------------------------------

VARIANT=optimize

...
...

UPDATE: The problem I had compiling on Linux was my fault. It works now but is large so I'm not going to upload it.
« Last Edit: 24 July 2009, 09:37:13 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
Re: Trunk Testing
« Reply #5 on: 25 July 2009, 14:26:00 »
Tried out the rev 120 win binaries. It complained that Zlib was missing so i did a quick search and pasted it in from another app.

Everything seems to run fine, but i haven't done much testing yet.

Also GAE will CTD if you don't have a gae_scenarios folder and click on the scenarios tab.

Silnarm, could you post up some info on the how the new water fields are defined in XML so i can do some testing?

Hailstone, thanks for compiling for those of us who mainly use windows  ;)
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0

mictes

  • Guest
Re: Trunk Testing
« Reply #6 on: 25 July 2009, 18:15:07 »
It seems like the particle-system ist broken.
It's the same problem daniel had sometime before:



----------

Edit: I tried it on windows, I have an Intel graphic-card.
« Last Edit: 26 July 2009, 08:56:00 by mictes »

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Trunk Testing
« Reply #7 on: 26 July 2009, 00:25:15 »
I got the Linux binary smaller now (from ~40MB to 2.1MB) by removing -g3 from COMPILER_CFLAGS_optimize and COMPILER_CXXFLAGS_optimize in Jamrules. I uploaded it to sourceforge with gae_scenarios folder.

Zlib is available from http://www.zlib.net/ but if anyone has trouble with that I have it in the win32-glest-deps.zip on sourceforge.

Quote from: wciow
Also GAE will CTD if you don't have a gae_scenarios folder and click on the scenarios tab.
Yes, I think this happens for any folder that is missing. We can change that in the future.

Thanks for testing Wciow and Mictes.
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Trunk Testing
« Reply #8 on: 26 July 2009, 01:10:41 »
Silnarm, could you post up some info on the how the new water fields are defined in XML so i can do some testing?
I just tried them out, as I've done some work on the pathfinder and haven't re-tested them in some time. They don't work :)  The annotated map (that makes it all work) appears to be functioning correctly though, so it's probably just not hooked up properly, hopefully wont take long to sort out.

It seems like the particle-system ist broken.
It's the same problem daniel had sometime before:
Interesting... is that on windows or linux ?

Thanks for the feedback guys.

Edit: The crash to desktop should actually give a message... this was probably caused by one of my dodgy 'throws' (I was throwing 'new' exceptions, C# style, which was causing a silent crash instead of a potentially useful message). I think I have these all fixed now.

Update: 27-July
The crash (reported by Ewomer) was on the first resource depletion, that one shouldn't have got through my own testing, so sorry about that. A couple of glitches with workers getting stuck on the corners of resource patches and pausing at the store before returning have been fixed, and the new movement fields are indeed working, I just forgot to bring over some code that allows morphing between them. The amphibious field should however probably be considered 'amphibian' for the time being :) amphibious units don't float on the water atm...
These fixes are all in as of revision 127, I'd like for hailstone and myself to test it a little more thoroughly ourselves this time, to make sure it doesn't crash :) ..but we'll hopefully have some new binaries for you soon.
« Last Edit: 27 July 2009, 11:10:46 by silnarm »
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Trunk Testing
« Reply #9 on: 28 July 2009, 03:03:01 »
Do you need glest 3.2 for this? Or can you install as it is? I have to reinstall glest 3.2, since I haven't download it yet (waiting for the disc I gave to a friend). Can I download and play this, or must I get all the 3.2 stuff first? (we need a way to have a download and play for inexperienced people anyway).
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Trunk Testing
« Reply #10 on: 28 July 2009, 07:35:27 »
[revision 127]
There is a crash when the worker returns the resource and is about to return to collect more resource.

path_finder.cpp line 235
Code: [Select]
Vec2i pos = path.pop();
path becomes 0 but pop is called anyway.

UPDATE: Silnarm fixed this in rev128.

Something minor I noticed with the workers, when their path is blocked they stop, resulting in the resource disappearing and coming back when they start moving again.
« Last Edit: 28 July 2009, 09:23:54 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

ewomer

  • Guest
Re: Trunk Testing
« Reply #11 on: 29 July 2009, 02:39:05 »
Rev 128:

gae-crash.txt:

Code: [Select]
Crash
Version: Advanced Engine v0.2.11
Time: Tue Jul 28 22:37:13 2009
Description: SIGABRT:
Address: 0x3e900003427
Backtrace:
glestadv [0x54730d]
/lib/libc.so.6 [0x7f3cf7a24360]
/lib/libc.so.6(gsignal+0x35) [0x7f3cf7a242e5]
/lib/libc.so.6(abort+0x199) [0x7f3cf7a255c9]
/lib/libc.so.6 [0x7f3cf7a5ecad]
/lib/libc.so.6(__fortify_fail+0x37) [0x7f3cf7ad61f7]
/lib/libc.so.6 [0x7f3cf7ad4170]
glestadv [0x4b7727]
glestadv [0x4b7a43]
glestadv [0x4bd23b]
glestadv [0x5383e0]
glestadv [0x41f6b9]
glestadv [0x461a6e]
glestadv [0x491ff4]
glestadv [0x546a8c]
glestadv [0x546dad]
glestadv [0x461b58]
glestadv [0x464da8]
glestadv [0x464f95]
/lib/libc.so.6(__libc_start_main+0xfd) [0x7f3cf7a10a3d]
glestadv [0x40a449]

=======================

console:

Code: [Select]
$ glestadv
*** buffer overflow detected ***: glestadv terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f3cf7ad61f7]
/lib/libc.so.6[0x7f3cf7ad4170]
glestadv[0x4b7727]
glestadv[0x4b7a43]
glestadv[0x4bd23b]
glestadv[0x5383e0]
glestadv[0x41f6b9]
glestadv[0x461a6e]
glestadv[0x491ff4]
glestadv[0x546a8c]
glestadv[0x546dad]
glestadv[0x461b58]
glestadv[0x464da8]
glestadv[0x464f95]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f3cf7a10a3d]
glestadv[0x40a449]
======= Memory map: ========
00400000-005c5000 r-xp 00000000 08:05 262183                             /home/eric/src/games/gae/data/glest_game/glestadv
007c5000-007c6000 r--p 001c5000 08:05 262183                             /home/eric/src/games/gae/data/glest_game/glestadv
007c6000-007c8000 rw-p 001c6000 08:05 262183                             /home/eric/src/games/gae/data/glest_game/glestadv
007c8000-06d77000 rw-p 00000000 00:00 0                                  [heap]
4058c000-4058e000 rwxp 00000000 00:0e 3187                               /dev/zero
40e0d000-40e8d000 rw-p 00000000 00:0e 3187                               /dev/zero
7f3ceec4b000-7f3ceed79000 rw-p 00000000 00:00 0
7f3ceed79000-7f3ceed7a000 rw-p 00000000 00:00 0
7f3ceed7a000-7f3ceed8a000 r--p 00000000 08:07 689899                     /usr/share/xerces-c/msg/XercesMessages_en_US.cat
7f3ceed8a000-7f3ceed9a000 r--p 00000000 08:07 689899                     /usr/share/xerces-c/msg/XercesMessages_en_US.cat
7f3ceed9a000-7f3ceedaa000 r--p 00000000 08:07 689899                     /usr/share/xerces-c/msg/XercesMessages_en_US.cat
7f3ceedaa000-7f3ceedba000 r--p 00000000 08:07 689899                     /usr/share/xerces-c/msg/XercesMessages_en_US.cat
7f3ceedba000-7f3ceedca000 r--p 00000000 08:07 689899                     /usr/share/xerces-c/msg/XercesMessages_en_US.cat
7f3ceedca000-7f3ceedcd000 r-xp 00000000 08:07 265907                     /usr/lib64/gconv/UTF-16.so
7f3ceedcd000-7f3ceefcc000 ---p 00003000 08:07 265907                     /usr/lib64/gconv/UTF-16.so
7f3ceefcc000-7f3ceefcd000 r--p 00002000 08:07 265907                     /usr/lib64/gconv/UTF-16.so
7f3ceefcd000-7f3ceefce000 rw-p 00003000 08:07 265907                     /usr/lib64/gconv/UTF-16.so
7f3ceefce000-7f3ceefcf000 ---p 00000000 00:00 0
7f3ceefcf000-7f3cef7cf000 rwxp 00000000 00:00 0
7f3cef7cf000-7f3cef7e1000 r-xp 00000000 08:07 549232                     /usr/lib64/libspeexdsp.so.1.5.0
7f3cef7e1000-7f3cef9e0000 ---p 00012000 08:07 549232                     /usr/lib64/libspeexdsp.so.1.5.0
7f3cef9e0000-7f3cef9e1000 r--p 00011000 08:07 549232                     /usr/lib64/libspeexdsp.so.1.5.0
7f3cef9e1000-7f3cef9e2000 rw-p 00012000 08:07 549232                     /usr/lib64/libspeexdsp.so.1.5.0
7f3cef9e2000-7f3cef9e4000 r-xp 00000000 08:07 787814                     /usr/lib64/alsa-lib/libasound_module_rate_speexrate.so
7f3cef9e4000-7f3cefbe3000 ---p 00002000 08:07 787814                     /usr/lib64/alsa-lib/libasound_module_rate_speexrate.so
7f3cefbe3000-7f3cefbe4000 r--p 00001000 08:07 787814                     /usr/lib64/alsa-lib/libasound_module_rate_speexrate.so
7f3cefbe4000-7f3cefbe5000 rw-p 00002000 08:07 787814                     /usr/lib64/alsa-lib/libasound_module_rate_speexrate.so
7f3cefbe5000-7f3cefbf5000 rw-s 00000000 00:07 786456                     /SYSV0056a4d6 (deleted)
7f3cefbf5000-7f3ceff77000 rw-p 00000000 00:00 0
7f3ceff77000-7f3cf0177000 rw-s bcdeb000 00:0e 7487                       /dev/nvidia0
7f3cf0177000-7f3cf0277000 rw-s 37bdb000 00:0e 7487                       /dev/nvidia0
7f3cf0277000-7f3cf0278000 ---p 00000000 00:00 0
7f3cf0278000-7f3cf0a78000 rwxp 00000000 00:00 0
7f3cf0a78000-7f3cf0a83000 r-xp 00000000 08:07 266099                     /lib64/libnss_files-2.10.1.so
7f3cf0a83000-7f3cf0c83000 ---p 0000b000 08:07 266099                     /lib64/libnss_files-2.10.1.so
7f3cf0c83000-7f3cf0c84000 r--p 0000b000 08:07 266099                     /lib64/libnss_files-2.10.1.so
7f3cf0c84000-7f3cf0c85000 rw-p 0000c000 08:07 266099                     /lib64/libnss_files-2.10.1.so
7f3cf0c85000-7f3cf0c8f000 r-xp 00000000 08:07 266176                     /lib64/libnss_nis-2.10.1.so
7f3cf0c8f000-7f3cf0e8e000 ---p 0000a000 08:07 266176                     /lib64/libnss_nis-2.10.1.so
7f3cf0e8e000-7f3cf0e8f000 r--p 00009000 08:07 266176                     /lib64/libnss_nis-2.10.1.so
7f3cf0e8f000-7f3cf0e90000 rw-p 0000a000 08:07 266176                     /lib64/libnss_nis-2.10.1.so
7f3cf0e90000-7f3cf0e97000 r-xp 00000000 08:07 266185                     /lib64/libnss_compat-2.10.1.so
7f3cf0e97000-7f3cf1096000 ---p 00007000 08:07 266185                     /lib64/libnss_compat-2.10.1.so
7f3cf1096000-7f3cf1097000 r--p 00006000 08:07 266185                     /lib64/libnss_compat-2.10.1.so
7f3cf1097000-7f3cf1098000 rw-p 00007000 08:07 266185                     /lib64/libnss_compat-2.10.1.so
7f3cf1098000-7f3cf1163000 r-xp 00000000 08:07 788483                     /usr/lib64/libasound.so.2.0.0
7f3cf1163000-7f3cf1362000 ---p 000cb000 08:07 788483                     /usr/lib64/libasound.so.2.0.0
7f3cf1362000-7f3cf1368000 r--p 000ca000 08:07 788483                     /usr/lib64/libasound.so.2.0.0
7f3cf1368000-7f3cf136a000 rw-p 000d0000 08:07 788483                     /usr/lib64/libasound.so.2.0.0
7f3cf136a000-7f3cf136f000 r-xp 00000000 08:07 546364                     /usr/lib64/libXfixes.so.3.1.0
7f3cf136f000-7f3cf156e000 ---p 00005000 08:07 546364                     /usr/lib64/libXfixes.so.3.1.0
7f3cf156e000-7f3cf156f000 r--p 00004000 08:07 546364                     /usr/lib64/libXfixes.so.3.1.0
7f3cf156f000-7f3cf1570000 rw-p 00005000 08:07 546364                     /usr/lib64/libXfixes.so.3.1.0
7f3cf1570000-7f3cf157a000 r-xp 00000000 08:07 556332                     /usr/lib64/libXcursor.so.1.0.2
7f3cf157a000-7f3cf1779000 ---p 0000a000 08:07 556332                     /usr/lib64/libXcursor.so.1.0.2
7f3cf1779000-7f3cf177a000 r--p 00009000 08:07 556332                     /usr/lib64/libXcursor.so.1.0.2
7f3cf177a000-7f3cf177b000 rw-p 0000a000 08:07 556332                     /usr/lib64/libXcursor.so.1.0.2
7f3cf177b000-7f3cf17c8000 rw-p 00000000 00:00 0
7f3cf17d2000-7f3cf1953000 r--p 00000000 08:07 131448                     /usr/lib64/locale/locale-archive
7f3cf1953000-7f3cf195b000 r-xp 00000000 08:07 555995                     /usr/lib64/libXrandr.so.2.2.0
7f3cf195b000-7f3cf1b5a000 ---p 00008000 08:07 555995                     /usr/lib64/libXrandr.so.2.2.0
7f3cf1b5a000-7f3cf1b5b000 r--p 00007000 08:07 555995                     /usr/lib64/libXrandr.so.2.2.0
7f3cf1b5b000-7f3cf1b5c000 rw-p 00008000 08:07 555995                     /usr/lib64/libXrandr.so.2.2.0
7f3cf1b5c000-7f3cf1b65000 r-xp 00000000 08:07 551396                     /usr/lib64/libXrender.so.1.3.0
7f3cf1b65000-7f3cf1d64000 ---p 00009000 08:07 551396                     /usr/lib64/libXrender.so.1.3.0
7f3cf1d64000-7f3cf1d65000 r--p 00008000 08:07 551396                     /usr/lib64/libXrender.so.1.3.0
7f3cf1d65000-7f3cf1d66000 rw-p 00009000 08:07 551396                     /usr/lib64/libXrender.so.1.3.0
7f3cf1d66000-7f3cf1d69000 r-xp 00000000 08:07 540807                     /usr/lib64/libgpg-error.so.0.5.0
7f3cf1d69000-7f3cf1f68000 ---p 00003000 08:07 540807                     /usr/lib64/libgpg-error.so.0.5.0
7f3cf1f68000-7f3cf1f69000 r--p 00002000 08:07 540807                     /usr/lib64/libgpg-error.so.0.5.0
7f3cf1f69000-7f3cf1f6a000 rw-p 00003000 08:07 540807                     /usr/lib64/libgpg-error.so.0.5.0
7f3cf1f6a000-7f3cf1fdf000 r-xp 00000000 08:07 578755                     /usr/lib64/libgcrypt.so.11.5.2
7f3cf1fdf000-7f3cf21df000 ---p 00075000 08:07 578755                     /usr/lib64/libgcrypt.so.11.5.2
7f3cf21df000-7f3cf21e0000 r--p 00075000 08:07 578755                     /usr/lib64/libgcrypt.so.11.5.2
7f3cf21e0000-7f3cf21e3000 rw-p 00076000 08:07 578755                     /usr/lib64/libgcrypt.so.11.5.2
7f3cf21e3000-7f3cf21f3000 r-xp 00000000 08:07 558957                     /usr/lib64/libtasn1.so.3.1.5
7f3cf21f3000-7f3cf23f2000 ---p 00010000 08:07 558957                     /usr/lib64/libtasn1.so.3.1.5
7f3cf23f2000-7f3cf23f3000 r--p 0000f000 08:07 558957                     /usr/lib64/libtasn1.so.3.1.5
7f3cf23f3000-7f3cf23f4000 rw-p 00010000 08:07 558957                     /usr/lib64/libtasn1.so.3.1.5
7f3cf23f4000-7f3cf2491000 r-xp 00000000 08:07 679394                     /usr/lib64/libgnutls.so.26.14.8
7f3cf2491000-7f3cf2690000 ---p 0009d000 08:07 679394                     /usr/lib64/libgnutls.so.26.14.8
7f3cf2690000-7f3cf2696000 r--p 0009c000 08:07 679394               

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Trunk Testing
« Reply #12 on: 29 July 2009, 04:37:54 »
Something minor I noticed with the workers, when their path is blocked they stop, resulting in the resource disappearing and coming back when they start moving again.

That one should be easy :) I'm obviously setting them to the stop skill when blocked, which should rather be stop_loaded. Should be fixed tonight...

Rev 128:
<SNIP>

Hmm... At what point in the game is this happening ? Does it load/start etc... ?
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ewomer

  • Guest
Re: Trunk Testing
« Reply #13 on: 29 July 2009, 07:22:22 »
Sorry, it starts up but it crashes when i go to start a game via [single player] >> [play now], it crashes with both default tech and 4 magictech.

Gentoo specific emerge --info [some pertains to linux generic also]:

Code: [Select]
emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 29 Jul 2009 02:45:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1, 3.1
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.3.5, 2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net ftp://gentoo.chem.wisc.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/python-experimental /usr/local/portage/layman/Spring /usr/local/portage/layman/mozilla /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 berkdb branding bzip2 cairo captury cdda cddax cdio cdparanoia cdr cli consolekit cracklib crypt css ctype cups curl cxx dbus dri dts dv dvd dvdr dvdread eds emboss encode evo fam fbcon fbcondecor ffmpeg filter firefox flac fontconfig gdbm gif gimp glib gnutls gpm graphviz gs gstreamer gtk hal httpd iconv imagemagick ipv6 isdnlog jpeg lame lcms ldap libass libcaca libnotify libwww lua lzma lzo mad matroska midi mikmod mjpeg mmx mmxext mng modplug mp3 mpeg mplayer mudflap multilib musepack mysql ncurses nptl nptlonly ogg openal openexr opengl openmp openntpd oss pam pcre pdf perl physfs png ppds pppd python q16 q32 qt3support qt4 quicktime raw readline reflection remoteosd rtsp sasl sdl semantic-desktop session skins smp speex spell spl sqlite sse sse2 ssl ssse3 startup-notification stream svg sysfs tcpd theora threads thumbnail tiff truetype unicode usb vlm vorbis webdav-neon webkit wmf x264 xanim xcb xcomposite xft xml xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ioplug ladspa lfloat linear meter mulaw multi null rate share shm asym dmix empty iec958 plug route softvol mmap_emul" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
« Last Edit: 29 July 2009, 07:26:30 by ewomer »

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Trunk Testing
« Reply #14 on: 30 July 2009, 07:55:41 »
Sorry, it starts up but it crashes when i go to start a game via [single player] >> [play now], it crashes with both default tech and 4 magictech.

Well, I can't recreate this one... I did notice you're running 64bit linux, I have no 64 bit OS to test on, so that may have something to do with it.
Does it crash immediately after hitting 'start game' ? or while loading? or after loading just before the game proper starts ??

Could you please post the contents of glestadv.log after one such crash?
Glest Advanced Engine - Code Monkey

Timeline | Downloads

PolitikerNEU

  • Guest
Re: Trunk Testing
« Reply #15 on: 30 July 2009, 10:12:15 »
For me (64bit-System too), it also crashes - the loading screen appears and it seems to load the map - so maybe the crash appears immediately before the game is fully loaded and really started?

This is my glestadv.log:
Code: [Select]
Log file

50: Core data
9620: Tileset: tilesets/forest
10070: TechTree: techs/magitech
10070: Resource type: techs/magitech/resources/energy
10070: Resource type: techs/magitech/resources/food
10080: Resource type: techs/magitech/resources/gold
10100: Resource type: techs/magitech/resources/stone
10100: Resource type: techs/magitech/resources/wood
10110: Faction type: techs/magitech/factions/magic
10120: Unit type: techs/magitech/factions/magic/units/archmage
10200: Unit type: techs/magitech/factions/magic/units/archmage_tower
10240: Unit type: techs/magitech/factions/magic/units/battlemage
10300: Unit type: techs/magitech/factions/magic/units/behemoth
10360: Unit type: techs/magitech/factions/magic/units/daemon
10460: Unit type: techs/magitech/factions/magic/units/dragon
10530: Unit type: techs/magitech/factions/magic/units/drake_rider
10780: Unit type: techs/magitech/factions/magic/units/energy_source
10820: Unit type: techs/magitech/factions/magic/units/ghost_armor
10910: Unit type: techs/magitech/factions/magic/units/golem
11070: Unit type: techs/magitech/factions/magic/units/initiate
11240: Unit type: techs/magitech/factions/magic/units/library
11270: Unit type: techs/magitech/factions/magic/units/mage_tower
11340: Unit type: techs/magitech/factions/magic/units/summoner
11490: Unit type: techs/magitech/factions/magic/units/summoner_guild
11520: Unit type: techs/magitech/factions/magic/units/tower_of_souls
11570: Unit type: techs/magitech/factions/magic/units/wicker_behemoth
11610: Upgrade type: techs/magitech/factions/magic/upgrades/ancient_summoning
11610: Upgrade type: techs/magitech/factions/magic/upgrades/dragon_call
11630: Upgrade type: techs/magitech/factions/magic/upgrades/energy_compression
11630: Upgrade type: techs/magitech/factions/magic/upgrades/energy_sharpening
11630: Upgrade type: techs/magitech/factions/magic/upgrades/hell_gate
11710: Faction types
11710: State cells
11710: Heightmap computations
12090: Game
12100: World
12100: Minimap
12100: Tech tree
12120: Tileset
12120: Cells

This is my gae-crash.txt:
Code: [Select]
Crash
Version: Advanced Engine v0.2.11
Time: Sat Jul 18 23:16:03 2009
Description: SIGABRT:
Address: 0x3e800006a16
Backtrace:
./glestadv [0x53fd5d]
/lib/libc.so.6 [0x7f736151acd0]
/lib/libc.so.6(gsignal+0x35) [0x7f736151ac45]
/lib/libc.so.6(abort+0x181) [0x7f736151ed51]
/lib/libc.so.6 [0x7f73615551bf]
/lib/libc.so.6(__fortify_fail+0x37) [0x7f73615e3747]
/lib/libc.so.6 [0x7f73615e2660]
./glestadv [0x4b6a87]
./glestadv [0x4b6dc3]
./glestadv [0x4b8e43]
./glestadv [0x521103]
./glestadv [0x424d4c]
./glestadv [0x46582e]
./glestadv [0x493a04]
./glestadv [0x540e2c]
./glestadv [0x54114d]
./glestadv [0x465918]
./glestadv [0x464b98]
./glestadv [0x464d85]
/lib/libc.so.6(__libc_start_main+0xe6) [0x7f7361506606]
./glestadv [0x409f39]

=======================
Crash
Version: Advanced Engine v0.2.11
Time: Sat Jul 18 23:16:56 2009
Description: SIGABRT:
Address: 0x3e800006a3d
Backtrace:
./glestadv [0x53fd5d]
/lib/libc.so.6 [0x7fc584b08cd0]
/lib/libc.so.6(gsignal+0x35) [0x7fc584b08c45]
/lib/libc.so.6(abort+0x181) [0x7fc584b0cd51]
/lib/libc.so.6 [0x7fc584b431bf]
/lib/libc.so.6(__fortify_fail+0x37) [0x7fc584bd1747]
/lib/libc.so.6 [0x7fc584bd0660]
./glestadv [0x4b6a87]
./glestadv [0x4b6dc3]
./glestadv [0x4b8e43]
./glestadv [0x521103]
./glestadv [0x424d4c]
./glestadv [0x46582e]
./glestadv [0x493a04]
./glestadv [0x540e2c]
./glestadv [0x54114d]
./glestadv [0x465918]
./glestadv [0x464b98]
./glestadv [0x464d85]
/lib/libc.so.6(__libc_start_main+0xe6) [0x7fc584af4606]
./glestadv [0x409f39]

=======================
Crash
Version: Advanced Engine v0.2.11
Time: Sat Jul 25 10:49:11 2009
Description: SIGABRT:
Address: 0x3e800002d78
Backtrace:
./glestadv [0x545d6d]
/lib/libc.so.6 [0x7f860fd6acd0]
/lib/libc.so.6(gsignal+0x35) [0x7f860fd6ac45]
/lib/libc.so.6(abort+0x181) [0x7f860fd6ed51]
/lib/libc.so.6 [0x7f860fda51bf]
/lib/libc.so.6(__fortify_fail+0x37) [0x7f860fe33747]
/lib/libc.so.6 [0x7f860fe32660]
./glestadv [0x4b8a57]
./glestadv [0x4b8eb3]
./glestadv [0x4bb74b]
./glestadv [0x527880]
./glestadv [0x424e0c]
./glestadv [0x4668be]
./glestadv [0x494894]
./glestadv [0x546e3c]
./glestadv [0x54715d]
./glestadv [0x4669a8]
./glestadv [0x465c18]
./glestadv [0x465e05]
/lib/libc.so.6(__libc_start_main+0xe6) [0x7f860fd56606]
./glestadv [0x409ed9]

=======================
Crash
Version: Advanced Engine v0.2.11
Time: Thu Jul 30 12:08:38 2009
Description: SIGABRT:
Address: 0x3e8000037eb
Backtrace:
./glestadv [0x54634d]
/lib/libc.so.6 [0x7fae58faecd0]
/lib/libc.so.6(gsignal+0x35) [0x7fae58faec45]
/lib/libc.so.6(abort+0x181) [0x7fae58fb2d51]
/lib/libc.so.6 [0x7fae58fe91bf]
/lib/libc.so.6(__fortify_fail+0x37) [0x7fae59077747]
/lib/libc.so.6 [0x7fae59076660]
./glestadv [0x4b8a77]
./glestadv [0x4b8d93]
./glestadv [0x4bb8db]
./glestadv [0x527890]
./glestadv [0x424e0c]
./glestadv [0x4668ae]
./glestadv [0x494884]
./glestadv [0x54741c]
./glestadv [0x54773d]
./glestadv [0x466998]
./glestadv [0x465c08]
./glestadv [0x465df5]
/lib/libc.so.6(__libc_start_main+0xe6) [0x7fae58f9a606]
./glestadv [0x409ed9]

=======================
Crash
Version: Advanced Engine v0.2.11
Time: Thu Jul 30 12:09:21 2009
Description: SIGABRT:
Address: 0x3e80000382e
Backtrace:
./glestadv [0x54634d]
/lib/libc.so.6 [0x7fa086cf6cd0]
/lib/libc.so.6(gsignal+0x35) [0x7fa086cf6c45]
/lib/libc.so.6(abort+0x181) [0x7fa086cfad51]
/lib/libc.so.6 [0x7fa086d311bf]
/lib/libc.so.6(__fortify_fail+0x37) [0x7fa086dbf747]
/lib/libc.so.6 [0x7fa086dbe660]
./glestadv [0x4b8a77]
./glestadv [0x4b8d93]
./glestadv [0x4bb8db]
./glestadv [0x527890]
./glestadv [0x424e0c]
./glestadv [0x4668ae]
./glestadv [0x494884]
./glestadv [0x54741c]
./glestadv [0x54773d]
./glestadv [0x466998]
./glestadv [0x465c08]
./glestadv [0x465df5]
/lib/libc.so.6(__libc_start_main+0xe6) [0x7fa086ce2606]
./glestadv [0x409ed9]

=======================

ewomer

  • Guest
Re: Trunk Testing
« Reply #16 on: 30 July 2009, 11:57:49 »
Sorry, it starts up but it crashes when i go to start a game via [single player] >> [play now], it crashes with both default tech and 4 magictech.

Well, I can't recreate this one... I did notice you're running 64bit linux, I have no 64 bit OS to test on, so that may have something to do with it.
Does it crash immediately after hitting 'start game' ? or while loading? or after loading just before the game proper starts ??

Could you please post the contents of glestadv.log after one such crash?


it crashes during loading of the map. it looks like right before the map shows up. im not sure though.

glestadv.log

Code: [Select]
Log file

90: Core data
3460: Tileset: tilesets/autumn
4140: TechTree: techs/magitech
4140: Resource type: techs/magitech/resources/energy
4140: Resource type: techs/magitech/resources/food
4140: Resource type: techs/magitech/resources/gold
4150: Resource type: techs/magitech/resources/stone
4150: Resource type: techs/magitech/resources/wood
4150: Faction type: techs/magitech/factions/magic
4160: Unit type: techs/magitech/factions/magic/units/archmage
4190: Unit type: techs/magitech/factions/magic/units/archmage_tower
4230: Unit type: techs/magitech/factions/magic/units/battlemage
4260: Unit type: techs/magitech/factions/magic/units/behemoth
4290: Unit type: techs/magitech/factions/magic/units/daemon
4320: Unit type: techs/magitech/factions/magic/units/dragon
4350: Unit type: techs/magitech/factions/magic/units/drake_rider
4390: Unit type: techs/magitech/factions/magic/units/energy_source
4420: Unit type: techs/magitech/factions/magic/units/ghost_armor
4440: Unit type: techs/magitech/factions/magic/units/golem
4470: Unit type: techs/magitech/factions/magic/units/initiate
4520: Unit type: techs/magitech/factions/magic/units/library
4550: Unit type: techs/magitech/factions/magic/units/mage_tower
4600: Unit type: techs/magitech/factions/magic/units/summoner
4640: Unit type: techs/magitech/factions/magic/units/summoner_guild
4680: Unit type: techs/magitech/factions/magic/units/tower_of_souls
4710: Unit type: techs/magitech/factions/magic/units/wicker_behemoth
4730: Upgrade type: techs/magitech/factions/magic/upgrades/ancient_summoning
4740: Upgrade type: techs/magitech/factions/magic/upgrades/dragon_call
4740: Upgrade type: techs/magitech/factions/magic/upgrades/energy_compression
4740: Upgrade type: techs/magitech/factions/magic/upgrades/energy_sharpening
4740: Upgrade type: techs/magitech/factions/magic/upgrades/hell_gate
4750: Faction type: techs/magitech/factions/tech
4750: Unit type: techs/magitech/factions/tech/units/aerodrome
4780: Unit type: techs/magitech/factions/tech/units/air_ballista
4820: Unit type: techs/magitech/factions/tech/units/airship
4850: Unit type: techs/magitech/factions/tech/units/archer
4880: Unit type: techs/magitech/factions/tech/units/barracks
4920: Unit type: techs/magitech/factions/tech/units/battle_machine
4950: Unit type: techs/magitech/factions/tech/units/blacksmith
4990: Unit type: techs/magitech/factions/tech/units/castle
5040: Unit type: techs/magitech/factions/tech/units/catapult
5080: Unit type: techs/magitech/factions/tech/units/cow
5090: Unit type: techs/magitech/factions/tech/units/defense_tower
5130: Unit type: techs/magitech/factions/tech/units/farm
5160: Unit type: techs/magitech/factions/tech/units/guard
5190: Unit type: techs/magitech/factions/tech/units/horseman
5220: Unit type: techs/magitech/factions/tech/units/ornithopter
5280: Unit type: techs/magitech/factions/tech/units/pig
5290: Unit type: techs/magitech/factions/tech/units/swordman
5320: Unit type: techs/magitech/factions/tech/units/technician
5410: Unit type: techs/magitech/factions/tech/units/technodrome
5440: Unit type: techs/magitech/factions/tech/units/worker
5490: Upgrade type: techs/magitech/factions/tech/upgrades/advanced_architecture
5500: Upgrade type: techs/magitech/factions/tech/upgrades/blade_weapons
5500: Upgrade type: techs/magitech/factions/tech/upgrades/piercing_weapons
5500: Upgrade type: techs/magitech/factions/tech/upgrades/robotics
5500: Upgrade type: techs/magitech/factions/tech/upgrades/shield_level_1
5510: Upgrade type: techs/magitech/factions/tech/upgrades/shield_level_2
5510: Upgrade type: techs/magitech/factions/tech/upgrades/stables
5510: Upgrade type: techs/magitech/factions/tech/upgrades/training_field
5520: Faction types
5520: State cells
5520: Heightmap computations
5600: Game
5600: World
5600: Minimap
5600: Tech tree
5600: Tileset
5600: Cells
« Last Edit: 30 July 2009, 12:00:37 by ewomer »

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Trunk Testing
« Reply #17 on: 30 July 2009, 12:04:03 »
For me (64bit-System too), it also crashes - the loading screen appears and it seems to load the map - so maybe the crash appears immediately before the game is fully loaded and really started?

Cheers guys, there was a 'silnarm special' dodgy assert in the new pathfinder that was always going to fail on 64bit systems. I can't test it of course, but it's gone now (rev129). If you could let me know if it works :) Thanks.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

ewomer

  • Guest
Re: Trunk Testing
« Reply #18 on: 30 July 2009, 12:11:24 »
didn't help with me.
(hold on im going to clean then rebiuld) cleaning then rebuilding didnt help
gae-crash.txt:
Code: [Select]
Crash
Version: Advanced Engine v0.2.11
Time: Thu Jul 30 08:08:51 2009
Description: SIGABRT:
Address: 0x3e900003cb2
Backtrace:
/home/eric/src/games/gae/data/glest_game/glestadv [0x54734d]
/lib/libc.so.6 [0x7f7094493360]
/lib/libc.so.6(gsignal+0x35) [0x7f70944932e5]
/lib/libc.so.6(abort+0x199) [0x7f70944945c9]
/lib/libc.so.6 [0x7f70944cdcad]
/lib/libc.so.6(__fortify_fail+0x37) [0x7f70945451f7]
/lib/libc.so.6 [0x7f7094543170]
/home/eric/src/games/gae/data/glest_game/glestadv [0x4b75d7]
/home/eric/src/games/gae/data/glest_game/glestadv [0x4b7a43]
/home/eric/src/games/gae/data/glest_game/glestadv [0x4bd27b]
/home/eric/src/games/gae/data/glest_game/glestadv [0x538420]
/home/eric/src/games/gae/data/glest_game/glestadv [0x41f719]
/home/eric/src/games/gae/data/glest_game/glestadv [0x461ace]
/home/eric/src/games/gae/data/glest_game/glestadv [0x492054]
/home/eric/src/games/gae/data/glest_game/glestadv [0x546acc]
/home/eric/src/games/gae/data/glest_game/glestadv [0x546ded]
/home/eric/src/games/gae/data/glest_game/glestadv [0x461bb8]
/home/eric/src/games/gae/data/glest_game/glestadv [0x464e08]
/home/eric/src/games/gae/data/glest_game/glestadv [0x464ff5]
/lib/libc.so.6(__libc_start_main+0xfd) [0x7f709447fa3d]
/home/eric/src/games/gae/data/glest_game/glestadv [0x40a4a9]

=======================

glestadv.txt:
Code: [Select]
Log file

90: Core data
1650: Tileset: tilesets/autumn
2340: TechTree: techs/magitech
2340: Resource type: techs/magitech/resources/energy
2340: Resource type: techs/magitech/resources/food
2340: Resource type: techs/magitech/resources/gold
2350: Resource type: techs/magitech/resources/stone
2350: Resource type: techs/magitech/resources/wood
2350: Faction type: techs/magitech/factions/magic
2350: Unit type: techs/magitech/factions/magic/units/archmage
2390: Unit type: techs/magitech/factions/magic/units/archmage_tower
2420: Unit type: techs/magitech/factions/magic/units/battlemage
2460: Unit type: techs/magitech/factions/magic/units/behemoth
2490: Unit type: techs/magitech/factions/magic/units/daemon
2520: Unit type: techs/magitech/factions/magic/units/dragon
2550: Unit type: techs/magitech/factions/magic/units/drake_rider
2590: Unit type: techs/magitech/factions/magic/units/energy_source
2620: Unit type: techs/magitech/factions/magic/units/ghost_armor
2650: Unit type: techs/magitech/factions/magic/units/golem
2680: Unit type: techs/magitech/factions/magic/units/initiate
2730: Unit type: techs/magitech/factions/magic/units/library
2760: Unit type: techs/magitech/factions/magic/units/mage_tower
2810: Unit type: techs/magitech/factions/magic/units/summoner
2850: Unit type: techs/magitech/factions/magic/units/summoner_guild
2890: Unit type: techs/magitech/factions/magic/units/tower_of_souls
2920: Unit type: techs/magitech/factions/magic/units/wicker_behemoth
2950: Upgrade type: techs/magitech/factions/magic/upgrades/ancient_summoning
2950: Upgrade type: techs/magitech/factions/magic/upgrades/dragon_call
2950: Upgrade type: techs/magitech/factions/magic/upgrades/energy_compression
2950: Upgrade type: techs/magitech/factions/magic/upgrades/energy_sharpening
2960: Upgrade type: techs/magitech/factions/magic/upgrades/hell_gate
2970: Faction type: techs/magitech/factions/tech
2970: Unit type: techs/magitech/factions/tech/units/aerodrome
3000: Unit type: techs/magitech/factions/tech/units/air_ballista
3040: Unit type: techs/magitech/factions/tech/units/airship
3070: Unit type: techs/magitech/factions/tech/units/archer
3110: Unit type: techs/magitech/factions/tech/units/barracks
3140: Unit type: techs/magitech/factions/tech/units/battle_machine
3190: Unit type: techs/magitech/factions/tech/units/blacksmith
3220: Unit type: techs/magitech/factions/tech/units/castle
3280: Unit type: techs/magitech/factions/tech/units/catapult
3320: Unit type: techs/magitech/factions/tech/units/cow
3330: Unit type: techs/magitech/factions/tech/units/defense_tower
3370: Unit type: techs/magitech/factions/tech/units/farm
3410: Unit type: techs/magitech/factions/tech/units/guard
3440: Unit type: techs/magitech/factions/tech/units/horseman
3470: Unit type: techs/magitech/factions/tech/units/ornithopter
3530: Unit type: techs/magitech/factions/tech/units/pig
3540: Unit type: techs/magitech/factions/tech/units/swordman
3580: Unit type: techs/magitech/factions/tech/units/technician
3670: Unit type: techs/magitech/factions/tech/units/technodrome
3700: Unit type: techs/magitech/factions/tech/units/worker
3750: Upgrade type: techs/magitech/factions/tech/upgrades/advanced_architecture
3750: Upgrade type: techs/magitech/factions/tech/upgrades/blade_weapons
3760: Upgrade type: techs/magitech/factions/tech/upgrades/piercing_weapons
3760: Upgrade type: techs/magitech/factions/tech/upgrades/robotics
3760: Upgrade type: techs/magitech/factions/tech/upgrades/shield_level_1
3760: Upgrade type: techs/magitech/factions/tech/upgrades/shield_level_2
3770: Upgrade type: techs/magitech/factions/tech/upgrades/stables
3770: Upgrade type: techs/magitech/factions/tech/upgrades/training_field
3780: Faction types
3780: State cells
3780: Heightmap computations
3860: Game
3870: World
3870: Minimap
3870: Tech tree
3870: Tileset
3870: Cells
« Last Edit: 30 July 2009, 12:15:10 by ewomer »

ewomer

  • Guest
Re: Trunk Testing
« Reply #19 on: 30 July 2009, 12:19:38 »
Trying to build a debug version of trunk and i get this error.

Code: [Select]
jam
...found 593 target(s)...
...updating 2 target(s)...
C++ ./build/x86_64-unknown-linux-gnu/debug/glest_game/path_finder/path_finder.o
glest_game/path_finder/path_finder.cpp: In member function 'char& Glest::Game::ValidationMap::getCell(int, int, Glest::Game::Field)':
glest_game/path_finder/path_finder.cpp:325: warning: comparison between 'enum Glest::Game::Field' and 'enum Glest::Game::Zone'
glest_game/path_finder/path_finder.cpp: In member function 'void Glest::Game::World::assertConsistiency()':
glest_game/path_finder/path_finder.cpp:396: error: invalid conversion from 'int' to 'Glest::Game::Field'
glest_game/path_finder/path_finder.cpp:396: error:   initializing argument 1 of 'Glest::Game::Unit* Glest::Game::Cell::getUnit(Glest::Game::Field)'
glest_game/path_finder/path_finder.cpp:398: error: invalid conversion from 'int' to 'Glest::Game::Field'
glest_game/path_finder/path_finder.cpp:398: error:   initializing argument 1 of 'Glest::Game::Unit* Glest::Game::Cell::getUnit(Glest::Game::Field)'

    g++ -c -o ./build/x86_64-unknown-linux-gnu/debug/glest_game/path_finder/path_finder.o  -I/usr/include -DPACKAGE_NAME="gae" -DPACKAGE_TARNAME="gae" -DPACKAGE_VERSION="0.2.11" -DPACKAGE_STRING="gae 0.2.11" -DPACKAGE_BUGREPORT="http://bugs.codemonger.org" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DUSE_POSIX_SOCKETS=/**/ -DX11_AVAILABLE=1 -DHAVE_GLOB_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_BYTESWAP_H=1 -DUSE_SDL=/**/ -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -I. -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread -pthread     -I/usr/include -Iglest_game/../shared_lib/include -Iglest_game/../shared_lib/include/platform -Iglest_game/../shared_lib/include/platform/sdl -Iglest_game/../shared_lib/include/platform/posix -Iglest_game/../shared_lib/include/util -Iglest_game/../shared_lib/include/graphics -Iglest_game/../shared_lib/include/graphics/gl -Iglest_game/../shared_lib/include/sound -Iglest_game/../shared_lib/include/sound/openal -Iglest_game/../shared_lib/include/xml -Iglest_game/../shared_lib/include/lua -Iglest_game/. -Iglest_game/ai -Iglest_game/facilities -Iglest_game/game -Iglest_game/global -Iglest_game/graphics -Iglest_game/gui -Iglest_game/main -Iglest_game/menu -Iglest_game/network -Iglest_game/path_finder -Iglest_game/sound -Iglest_game/type_instances -Iglest_game/types -Iglest_game/world   -Wall -W -Wno-unused -Wno-sign-compare -fno-strict-aliasing -DDEBUG -g3 -Winit-self -Wmissing-include-dirs -Wwrite-strings -Wextra -Winvalid-pch glest_game/path_finder/path_finder.cpp

...failed C++ ./build/x86_64-unknown-linux-gnu/debug/glest_game/path_finder/path_finder.o ...
...skipped glestadv for lack of <T!glest_game!>path_finder/path_finder.o...
...failed updating 1 target(s)...
...skipped 1 target(s)...

Inruin

  • Guest
Re: Trunk Testing
« Reply #20 on: 30 July 2009, 21:52:03 »
Building any version of Trunk (revision 120 through 129) gives me an error when launching the executable.

Compile Warning for Debug:
Quote
Warning   1   warning C4244: '=' : conversion from 'float' to 'int', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\gui\gui.cpp   1212
Warning   2   warning C4244: '=' : conversion from 'float' to 'int', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\gui\gui.cpp   1217
Warning   3   warning C4244: '=' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   751
Warning   4   warning C4244: '=' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   753
Warning   5   warning C4244: '=' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   755
Warning   6   warning C4244: '=' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   759
Warning   7   warning C4244: '=' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   761
Warning   8   warning C4244: '=' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   763
Warning   9   warning C4244: '=' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   766
Warning   10   warning C4244: '=' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   767
Warning   11   warning C4244: 'argument' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   770
Warning   12   warning C4244: 'argument' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   770
Warning   13   warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   862
Warning   14   warning C4244: 'initializing' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\map.cpp   888
Warning   15   warning C4244: 'argument' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   559
Warning   16   warning C4244: 'argument' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   559
Warning   17   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   593
Warning   18   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   593
Warning   19   warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   823
Warning   20   warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   823
Warning   21   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   880
Warning   22   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   880
Warning   23   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   883
Warning   24   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   883
Warning   25   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   886
Warning   26   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   886
Warning   27   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   889
Warning   28   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   889
Warning   29   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   907
Warning   30   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   907
Warning   31   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   910
Warning   32   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   910
Warning   33   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   913
Warning   34   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   913
Warning   35   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   916
Warning   36   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   916
Warning   37   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   919
Warning   38   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   919
Warning   39   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   922
Warning   40   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   922
Warning   41   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   925
Warning   42   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   925
Warning   43   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1043
Warning   44   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1043
Warning   45   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1046
Warning   46   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1046
Warning   47   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1049
Warning   48   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1049
Warning   49   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1052
Warning   50   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1052
Warning   51   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1069
Warning   52   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1069
Warning   53   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1072
Warning   54   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1072
Warning   55   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1075
Warning   56   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1075
Warning   57   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1078
Warning   58   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1078
Warning   59   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1081
Warning   60   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1081
Warning   61   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1084
Warning   62   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1084
Warning   63   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1087
Warning   64   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1087
Warning   65   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1559
Warning   66   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1570
Warning   67   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1587
Warning   68   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1598
Warning   69   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1854
Warning   70   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1854
Warning   71   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1864
Warning   72   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   1864
Warning   73   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   2227
Warning   74   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   2227
Warning   75   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   2229
Warning   76   warning C4244: 'argument' : conversion from 'const int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   2229
Warning   77   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   2427
Warning   78   warning C4244: 'argument' : conversion from 'int' to 'GLfloat', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\graphics\renderer.cpp   2427
Warning   79   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\type_instances\unit.cpp   643
Warning   80   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\type_instances\unit.cpp   643
Warning   81   warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\unit_updater.cpp   1587
Warning   82   warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\unit_updater.cpp   1610
Warning   83   warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\unit_updater.cpp   1668
Warning   84   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\unit_updater.cpp   1722
Warning   85   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\unit_updater.cpp   1722
Warning   86   warning C4244: 'initializing' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\world\world.cpp   494
Warning   87   warning C4715: 'Glest::Game::Util::PosCircularIterator::getPosForCycle' : not all control paths return a value   c:\glest\glestae\trunk2\source\glest_game\facilities\pos_iterator.h   58
Warning   88   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\main\program.cpp   101
Warning   89   warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\main\program.cpp   101
Warning   90   warning C4244: 'argument' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\main\program.cpp   101
Warning   91   warning C4244: 'argument' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\game\script_manager.cpp   179
Warning   92   warning C4244: 'argument' : conversion from 'const int' to 'float', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\game\script_manager.cpp   179
Warning   93   warning C4244: '=' : conversion from 'float' to 'uLongf', possible loss of data   c:\glest\glestae\trunk2\source\glest_game\network\server_interface.cpp   239

Launched executable error:
Quote
Runtime Error!
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.

Windows Vista Ultimate 64bit
It requires I also have MSVCR90.dll and zlib1.dll in the directory with the EXE

Heretik

  • Guest
Re: Trunk Testing
« Reply #21 on: 30 July 2009, 22:46:25 »
Compiling trunk rev 129

I got this error :

Code: [Select]
C++ ./build/i686-pc-linux-gnu/optimize/shared_lib/sources/xml/xml_parser.o
shared_lib/sources/xml/xml_parser.cpp: In member function ‘Shared::Xml::XmlNode* Shared::Xml::XmlIo::parseString(const char*, size_t)’:
shared_lib/sources/xml/xml_parser.cpp:166: error: no matching function for call to ‘xercesc_3_0::DOMLSParser::parse(xercesc_3_0::Wrapper4InputSource&)’
/usr/include/xercesc/dom/DOMLSParser.hpp:462: note: candidates are: virtual xercesc_3_0::DOMDocument* xercesc_3_0::DOMLSParser::parse(const xercesc_3_0::DOMLSInput*)

which is related to using xerces 3, and which I fixed with this patch :

Code: [Select]
Index: source/shared_lib/sources/xml/xml_parser.cpp
===================================================================
--- source/shared_lib/sources/xml/xml_parser.cpp (révision 129)
+++ source/shared_lib/sources/xml/xml_parser.cpp (copie de travail)
@@ -157,13 +157,14 @@
  parser->setErrorHandler(&errorHandler);
  parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true);
  parser->setFeature(XMLUni::fgDOMValidation, true);
+ document = parser->parse(wrapperSource);
 #else
  parser = (static_cast<DOMImplementationLS*>(implementation))->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
  config = parser->getDomConfig();
  config->setParameter(XMLUni::fgXercesSchemaFullChecking, true);
  config->setParameter(XMLUni::fgDOMValidate, true);
+ document = parser->parse(static_cast<DOMLSInput*>(&wrapperSource));
 #endif
- document = parser->parse(wrapperSource);
 
  if(document == NULL){
  throw runtime_error("Failed to parse in-memory document");

Heretik

  • Guest
Re: Trunk Testing
« Reply #22 on: 30 July 2009, 22:51:50 »
Another bug at runtime, after compiling under debian gnu/linux : autogen.sh script creates symlinks for data directories but they are all broken so it makes glest crash at runtime. This can be fixed manually afterwards or should be fixed beforewards with this patch :

Code: [Select]
--- mk/linux/autogen.sh (révision 129)
+++ mk/linux/autogen.sh (copie de travail)
@@ -35,7 +35,7 @@
 echo "Updating Source symlinks..."
 
 for f in data docs maps scenarios techs tilesets; do
- ln -sf ../../data/glest_game/$f .;
+ ln -sf ../../../data/game/$f .;
 done
 
 if [ ! -d shared_lib ]; then

Heretik

  • Guest
Re: Trunk Testing
« Reply #23 on: 31 July 2009, 12:05:04 »
Trying to build a debug version of trunk and i get this error.

Here is a fix :

Code: [Select]
Index: glest_game/path_finder/path_finder.cpp
===================================================================
--- glest_game/path_finder/path_finder.cpp (révision 135)
+++ glest_game/path_finder/path_finder.cpp (copie de travail)
@@ -390,12 +390,12 @@
  // make sure that every cell that was not validated is empty
  for(int x = 0; x < map.getW(); ++x) {
  for(int y = 0; y < map.getH(); ++y ) {
- for(int field = 0; field < ZoneCount; ++field) {
+ for(int field = 0; field < FieldCount; ++field) {
  if(!validationMap.getCell(x, y, (Field)field)) {
  Cell *cell = map.getCell(x, y);
- if(cell->getUnit(field)) {
+ if(cell->getUnit((Field)field)) {
  cerr << "Cell not empty at " << x << ", " << y << ", " << field << endl;
- cerr << "Cell has pointer to unit object at " << cell->getUnit(field) << endl;
+ cerr << "Cell has pointer to unit object at " << cell->getUnit((Field)field) << endl;
 
  assert(false);
  }

The change of ZoneCount to FieldCount was not necessary to make it compile, but I think FieldCount is what was meant in the logic of the code.

ewomer

  • Guest
Re: Trunk Testing
« Reply #24 on: 31 July 2009, 20:45:23 »

glestadv debug build in gdb: it builds but it has the same outcome.
Code: [Select]
gdb ./glestadv
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
(gdb) run
Starting program: /home/eric/src/games/gae/data/glest_game/glestadv
[Thread debugging using libthread_db enabled]
[New Thread 0x7f14dad387a0 (LWP 7758)]
[New Thread 0x7f14d1e2e910 (LWP 7761)]
[New Thread 0x7f14d0293910 (LWP 7762)]
glestadv: glest_game/path_finder/path_finder.cpp:325: char& Glest::Game::ValidationMap::getCell(int, int, Glest::Game::Field): Assertion `field >= 0 && field < ZoneCount' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f14dad387a0 (LWP 7758)]
0x00007f14d83662e5 in raise () from /lib/libc.so.6

 

anything