specify data directories using absolute paths please - Page 2

specify data directories using absolute paths please

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

ruky
Posts: 6
Joined: 12 Dec 2009, 22:35

Re: specify data directories using absolute paths please

Post by ruky »

yep, I am using opensuse 11.2 64b also.
ruky
Posts: 6
Joined: 12 Dec 2009, 22:35

Re: specify data directories using absolute paths please

Post by ruky »

I have added the debug packages from the repository, thats the stacktrace before getting the error:

roger@trash:~> spring
using default configuration source "/home/roger/.springrc"
[CMyMath::Init] CPU SSE mask: 124, flags:
SSE 1.0: 1, SSE 2.0: 1
SSE 3.0: 1, SSSE 3.0: 1
SSE 4.1: 0, SSE 4.2: 0
SSE 4.0A: 0, SSE 5.0A: 0
using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Linux
OS: 64bit native mode
Adding /home/roger/jocs/1944 to directories
Adding /usr/bin to directories
Adding /home/roger/.spring to directories
Adding /usr/share/games/spring to directories
Adding lib64/spring to directories
terminate called after throwing an instance of 'content_error'
what(): specify data directories using absolute paths please
Aborted (SIGABRT) in spring 0.80.5.2
Stacktrace:
spring [0xd13141]
/lib64/libc.so.6 [0x7fc1f18d6560]
/lib64/libc.so.6(gsignal+0x35) [0x7fc1f18d64e5]
/lib64/libc.so.6(abort+0x180) [0x7fc1f18d79b0]
/usr/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x115) [0x7fc1f2131dc5]
/usr/lib64/libstdc++.so.6 [0x7fc1f21301f6]
/usr/lib64/libstdc++.so.6 [0x7fc1f2130223]
/usr/lib64/libstdc++.so.6(__cxa_rethrow+0x46) [0x7fc1f21302a6]
spring [0xd33971]
spring [0xcb974b]
spring [0xcbf8c5]
spring [0xccaedb]
spring [0xccaf33]
/lib64/libc.so.6(__libc_start_main+0xfd) [0x7fc1f18c2a7d]
spring [0x6d6ae9]


Looks like the "lib64/spring" is what doesn't have an absolute path, this line is harcoded in the spring binary, I tried to change it with an hexadecimal editor but I got a segfault. :cry:
ruky
Posts: 6
Joined: 12 Dec 2009, 22:35

Re: specify data directories using absolute paths please

Post by ruky »

Finally I have been able to edit the binary an change the "lib64/spring" string to "/usr/lib64", now the process starts without the "specify data directories using absolute paths please" error.

So looks like the error is not config files related.

Unfortunately my rude editing let the file very unstable an the process crashes very very very often.

I have compiled the program from the source code and I haven't had this problem, so it looks like someone has done something wrong when creating the packages.
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

Very good news !
I say frm the beginning that join AccAgon is the solution

is this new package working for you ?

http://download.opensuse.org/repositori ... .2/x86_64/ >>
spring-complete-0.80.5.2-6.1.x86_64.rpm (build 13/12 16h30)
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

the fail is changing !

Code: Select all

using default configuration source "/home/anterak/.springrc"
[CMyMath::Init] CPU SSE mask: 126, flags:
        SSE 1.0:  1,  SSE 2.0:  1
        SSE 3.0:  1, SSSE 3.0:  1
        SSE 4.1:  1,  SSE 4.2:  0
        SSE 4.0A: 0,  SSE 5.0A: 0
        using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Linux
OS: 64bit native mode
Adding /home/anterak/.spring to directories
Adding /usr/bin to directories
Adding /home/anterak/.spring to directories
Adding /usr/share/games/spring to directories
Adding lib64/spring to directories
terminate called after throwing an instance of 'content_error'
  what():  specify data directories using absolute paths please
Aborted (SIGABRT) in spring 0.80.5.2
Stacktrace:
spring [0xd13141]
/lib64/libc.so.6 [0x7f162dc64560]
/lib64/libc.so.6(gsignal+0x35) [0x7f162dc644e5]
/lib64/libc.so.6(abort+0x180) [0x7f162dc659b0]
/usr/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x115) [0x7f162e4bfdc5]
/usr/lib64/libstdc++.so.6 [0x7f162e4be1f6]
/usr/lib64/libstdc++.so.6 [0x7f162e4be223]
/usr/lib64/libstdc++.so.6(__cxa_rethrow+0x46) [0x7f162e4be2a6]
spring [0xd33971]
spring [0xcb974b]
spring [0xcbf8c5]
spring [0xccaedb]
spring [0xccaf33]
/lib64/libc.so.6(__libc_start_main+0xfd) [0x7f162dc50a7d]
spring [0x6d6ae9]
... but it still fail
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: specify data directories using absolute paths please

Post by lurker »

ruky wrote:"lib64/spring" string to "/usr/lib64"
Did you change the length of the file? Or did you do something to keep it the same length like "/usr/lib64//"
If you kept it the same length I wonder why it's unstable.
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

is someone know witch libboost version is used by spring's dev ?
i think it can be a way
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: specify data directories using absolute paths please

Post by hoijui »

spring devs use different versions. 1.35 is minimum, 1.40 is current maximum supported (i think, not sure though), 1.37 and 1.38 should work fine too, not sure about 1.36, could be problematic.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: specify data directories using absolute paths please

Post by Auswaschbar »

anything greater or equal than 1.35 will work.

Someone should tell Agon that the packages are broken, but I didn't saw him online lately.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: specify data directories using absolute paths please

Post by hoijui »

i guess you should probably just compile spring yourself. if you are willing to hex edit binary files.. this should not be a problem for you :D

it would be good if the packages worked of course.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: specify data directories using absolute paths please

Post by Agon »

Hello, Im the "maintainer" of the packages.

I simply changed the source from 0.80.5.1 to 0.80.5.2 and spring stopped starting.
My solution because I was lazy was to compile it myself which worked.
By the way Im running openSUSE 11.2 x64.

I will try to fix it.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: specify data directories using absolute paths please

Post by hoijui »

turns out it was a fail in springs root CMakeLists.txt file. someone messing wiht AI specific stuff there did something wrong. a fix is committed already; also found and fixed two other small bugs in turn, and am preventing an additional problem.
-> should not happen anymore with future releases.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: specify data directories using absolute paths please

Post by Auswaschbar »

On a side note, what do you think about removing the compiled-in path altogether? It causes more harm than good, and if you want to set global paths you can still add them to /etc/spring/datadir.

edit: with compile-in, I mean the SPRING_DATADIR cmake variable, not the automatically added paths
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: specify data directories using absolute paths please

Post by hoijui »

the only possible issues i can see with this change:
  • package devs would have to make sure they put the same dirs into /etc/spring/datadir as they used when compiling
  • when one compiles manually (also devs), they would have to do the same
the later is probably never ever gonna happen anyway, as nobody cares so much about where all the files go, to be setting different values for DATADIR, AI_LIBS_DIR and AI_DATA_DIR.

short: if package devs will do this right, i don't see a problem.
goods i see:
  • no more problems as the one described in this thread
  • full controll over data-dirs at/before execution time (invalid after Auswaschbars edit)
edit: removed content-less & bugged sentence at start
Last edited by hoijui on 21 Dec 2009, 15:33, edited 1 time in total.
User avatar
Agon
Posts: 527
Joined: 16 May 2007, 18:33

Re: specify data directories using absolute paths please

Post by Agon »

Its fixed. But only openSUSE 11.2 package creation was successful.
I will take a look at 11.1 .
djm68
Posts: 1
Joined: 29 Dec 2009, 02:24

Re: specify data directories using absolute paths please

Post by djm68 »

I am running opensuse 11.2 x86_64. I installed spring from the packman repository and had the same problem as described in this topic. I uninstalled spring, added accAgon as a repository, re-installed spring (selecting packages from accAgon, of course) and now spring is working!

Hope this helps.

Cheers,
DJM
User avatar
anterak
Posts: 67
Joined: 22 Jul 2007, 12:07

Re: specify data directories using absolute paths please

Post by anterak »

hello

I install last build from agon, and it s work fine. I think you should put high priority to agon's repository, and upgrade all paquets with yast.

Unfortunately, fullscreen don t work :(
fliebel
Posts: 18
Joined: 24 Feb 2009, 21:34

Re: specify data directories using absolute paths please

Post by fliebel »

Same problem here, OpenSUSE, 64b.
Post Reply

Return to “Help & Bugs”