View previous topic :: View next topic |
Author |
Message |
23306 Tux's lil' helper
Joined: 22 Jun 2003 Posts: 79
|
Posted: Fri Sep 05, 2003 1:42 pm Post subject: Jagged Alliance 2 |
|
|
hey,
is anywhere here who play Jagged Alliance 2 ???
when i try to start this game a get an error ....
Code: |
Jagged Alliance 2
(c) 1999 by Sir-tech Canada Ltd. All rights reserved.
Jagged Alliance is registered trademark of 1259191 Ontario Inc.
Segmentation fault
|
can anybody help?
ron |
|
Back to top |
|
|
J.M.I.T. Guru
Joined: 15 Jan 2003 Posts: 481 Location: München, Germany
|
Posted: Fri Sep 05, 2003 2:16 pm Post subject: |
|
|
Are you trying to start the game with wine or winex? I've had no problems with wine whereas winex would just lock up... try to run it in windowed mode, that worked for me... |
|
Back to top |
|
|
23306 Tux's lil' helper
Joined: 22 Jun 2003 Posts: 79
|
Posted: Fri Sep 05, 2003 4:22 pm Post subject: |
|
|
i try to start the Linux "native" version of ja2.
ich versuche die native version von ja2 zum laufen zu bringen.
ron |
|
Back to top |
|
|
Moofed Apprentice
Joined: 22 Oct 2002 Posts: 158 Location: Bloomington, IN
|
Posted: Fri Sep 05, 2003 4:29 pm Post subject: |
|
|
Try to cd to the installation directory before starting it up. Code: | cd /usr/local/games/ja2 ;./ja2 | I'll warn you though, JA2 randomly hardlocked my machine with a scrambled screen last time I played it, I'd like to know if happens to anyone else as well. |
|
Back to top |
|
|
line72 Apprentice
Joined: 13 Jun 2002 Posts: 212
|
Posted: Fri Sep 05, 2003 4:44 pm Post subject: |
|
|
try
export LD_ASSUME_KERNEL=2.4.1 then run ja2 |
|
Back to top |
|
|
23306 Tux's lil' helper
Joined: 22 Jun 2003 Posts: 79
|
Posted: Fri Sep 05, 2003 5:48 pm Post subject: |
|
|
hmmm
i tried "export LD_ASSUME_KERNEL=2.4.1"
and i start it from the install-dir but ....always the same error...
i think it is a problem with the new glibc ....
ron |
|
Back to top |
|
|
huehnerhose n00b
Joined: 26 Jun 2003 Posts: 56 Location: Berlin
|
Posted: Sun Sep 14, 2003 6:55 pm Post subject: |
|
|
Any new results? Any Solutions?! |
|
Back to top |
|
|
Morto n00b
Joined: 02 Feb 2003 Posts: 27
|
Posted: Fri Oct 03, 2003 1:13 am Post subject: |
|
|
maybe the problem is xfree 4.3 |
|
Back to top |
|
|
23306 Tux's lil' helper
Joined: 22 Jun 2003 Posts: 79
|
Posted: Fri Oct 03, 2003 10:03 am Post subject: |
|
|
jo,
i think the same ..it is a problem with xfree 4.3 ....
some people report it works (fine) with xfree 4.2 ...
i open a bug report on xfree86.org
now i have mail contact with somebody from the xfree team ...
i post more informations when i have one
ron |
|
Back to top |
|
|
samppa n00b
Joined: 15 Jun 2002 Posts: 69 Location: Finland
|
Posted: Tue Oct 28, 2003 7:07 pm Post subject: |
|
|
I recently tried to play JA2 and noticed the same problem. It must be 2 years since I played it last time, and back then it was working pretty well. I would really like to get it working again, since I have payed for it Too bad that we can't get any support from the game developers, as it was financially very bad title, did not sell much (the Linux version I mean). |
|
Back to top |
|
|
Crimson Rider Guru
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Mon Nov 03, 2003 3:03 pm Post subject: |
|
|
I don't know about the kernel export or anything and if that worked for you guys. But after a little while, I had a way to play my favorite game under Linux.
It seems that if I start from the command line or from regular X, it workds fine. If I try to start from within Gnome however, I get the seg fautl. _________________ Code, justify, code - Pitr Dubovich |
|
Back to top |
|
|
Crimson Rider Guru
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Mon Nov 03, 2003 3:05 pm Post subject: |
|
|
I don't know about the kernel export or anything and if that worked for you guys. But after a little while, I had a way to play my favorite game under Linux.
It seems that if I start from the command line or from regular X, it workds fine. If I try to start from within Gnome however, I get the seg fautl. _________________ Code, justify, code - Pitr Dubovich |
|
Back to top |
|
|
Crimson Rider Guru
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Tue Nov 04, 2003 10:14 am Post subject: |
|
|
Since in my opinion this is one of the coolest games ever, I think we should try to get it working flawlessly in Gentoo.
Right now I have it working, but far from flawless, for starters it is dog slow with all the animations. Also it doesn't work when started in Gnome.
My configuration :
Gentoo System (duh)
Athlon XP 2200
1 gb ram
AC-2.4.22 kernel
XFree 4.3
Gnome 2.4
The problems right now are
Seg fault when starting in Gnome
Slowdown of animations to unplayable levels
Please help me out here. _________________ Code, justify, code - Pitr Dubovich |
|
Back to top |
|
|
sdaffis Tux's lil' helper
Joined: 16 Nov 2003 Posts: 100 Location: Umeå, Sweden
|
Posted: Sat Nov 29, 2003 6:17 pm Post subject: |
|
|
It's been a while since this thread had some activity, so I thought I would give it a try
In reply to your previous post, you said "starting from a regular X". Do you mean the failsafe mode (aka TWM)? I love this game and used to play it in Windows quite a lot, but I understand that people are having a hard time playing this game in Linux. It would be really cool if we could come up with a fix for Gentoo Linux |
|
Back to top |
|
|
meowsqueak Veteran
Joined: 26 Aug 2003 Posts: 1549 Location: New Zealand
|
Posted: Sat Jan 24, 2004 3:56 am Post subject: |
|
|
I too am having this problem - I did an strace and it seems to fail during or after reading locale information. GDB indicates it's an 'sprintf' that fails (surprise surprise). Unfortunately I couldn't get in and see what the data involved was (probably a null pointer or something).
Has anyone got this working recently? |
|
Back to top |
|
|
supernova n00b
Joined: 12 Jan 2004 Posts: 49 Location: Karlsruhe, Germany
|
Posted: Sat Jan 24, 2004 5:00 pm Post subject: |
|
|
Same problem here.
But I got it working when playing as root - and it works like a charm, totally smooth animations, lovely!
"Playing as root" means you have to log into X as root (via KDM/GDM/XDM), no "su" command, it will segfault as well.
I hope this is a step closer to the solution of this annoying problem, I don't want to play this awesome game as root... _________________ Roses are red
Violets are blue
All my base
Are belong to you |
|
Back to top |
|
|
meowsqueak Veteran
Joined: 26 Aug 2003 Posts: 1549 Location: New Zealand
|
Posted: Sat Jan 24, 2004 9:40 pm Post subject: |
|
|
Ok, I managed to get it working 'normally'.
Thank you supernova, you provided the vital clue that I needed - it works as root. By comparing the strace output of a 'working' invocation and a 'non-working' one, I was able to determine that if the file ~/.Xdefaults is read by ja2, it proceeds to execute some locale code that eventually crashes. If you remove .Xdefaults (and .Xdefaults-hostname if it exists) then ja2 actually works properly! Even the mere presence of that file (even if it's 0 bytes long) causes ja2 to crash eventually.
This is why it works in root for a lot of people - there's no .Xdefaults in /root.
I tried to work out exactly why the locale stuff is breaking, but I don't have enough information. So it seems the workaround is to rename your .Xdefaults before playing. You could do this easily enough (and rename it back) with a wrapper script:
Code: | #!/bin/sh
mv ~/.Xdefaults ~/.Xdefaults.ja2
cd /home/games/ja2
./ja2
mv ~/.Xdefaults.ja2 ~/.Xdefaults
|
I hope this helps. |
|
Back to top |
|
|
supernova n00b
Joined: 12 Jan 2004 Posts: 49 Location: Karlsruhe, Germany
|
Posted: Sun Jan 25, 2004 2:04 pm Post subject: |
|
|
Hmmm... that seems to be the point, at least for you.
My problem: I don't have a .Xdefaults in my user home directory either! And it crashes nonetheless.
But you are right, here's a part of the strace log from the working configuration (root):
Code: | read(3, "\1\377\r\0\247\0\0\0\22\0\0\0\1\0\0\0\7\0\0\0\f\0\0\0\1"..., 32) = 32
brk(0) = 0x85f3000
brk(0x85f4000) = 0x85f4000
read(3, "W\0\0\0\1\1\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0"..., 668) = 668
brk(0) = 0x85f4000
brk(0x85f6000) = 0x85f6000
open("/root/.Xdefaults", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="Gentoo", ...}) = 0
open("/root/.Xdefaults-Gentoo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.Xdefaults", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="Gentoo", ...}) = 0
open("/root/.Xdefaults-Gentoo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.Xdefaults", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="Gentoo", ...}) = 0
open("/root/.Xdefaults-Gentoo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.Xdefaults", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="Gentoo", ...}) = 0
open("/root/.Xdefaults-Gentoo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.Xdefaults", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="Gentoo", ...}) = 0
open("/root/.Xdefaults-Gentoo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.Xdefaults", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="Gentoo", ...}) = 0
open("/root/.Xdefaults-Gentoo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.Xdefaults", O_RDONLY) = -1 ENOENT (No such file or directory)
uname({sys="Linux", node="Gentoo", ...}) = 0
open("/root/.Xdefaults-Gentoo", O_RDONLY) = -1 ENOENT (No such file or directory)
|
Here is the none-working configuration (user):
Code: |
read(3, "\1\377\r\0\247\0\0\0\22\0\0\0\1\0\0\0\7\0\0\0\f\0\0\0\1"..., 32) = 32
read(3, "W\0\0\0\1\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0\0"..., 668) = 668
open("/usr/X11R6/lib/X11/locale/locale.alias", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=37675, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4030b000
read(4, "#\t$TOG: locale.alias /main/33 19"..., 131072) = 37675
read(4, "", 131072) = 0
close(4) = 0
munmap(0x4030b000, 131072) = 0
open("/usr/X11R6/lib/X11/locale/locale.dir", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=30409, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4030b000
read(4, "#\t$TOG: locale.dir /main/13 1998"..., 131072) = 30409
close(4) = 0
munmap(0x4030b000, 131072) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) --- |
As you can see, the last two identical lines both logs have are:
Code: | read(3, "\1\377\r\0\247\0\0\0\22\0\0\0\1\0\0\0\7\0\0\0\f\0\0\0\1"..., 32) = 32
read(3, "W\0\0\0\1\1\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\0"..., 668) = 668 | ,
but root has also the lines
Code: | brk(0) = 0x85f3000
brk(0x85f4000) = 0x85f4000 |
in-between.
So far, so good. But then there are the two paths:
1. Root: The missing .Xdefaults is being "complained", but the error is overridden and the game starts!
2. User: Even though the .Xdefaults are also missing, JA2 doesn't care about it at all(?!!!), but hangs at that "locale"-stuff.
I don't get it! Why on earth is the behaviour different?
I guess it must be the brk-lines I get as root, but not as the user.
Damn! _________________ Roses are red
Violets are blue
All my base
Are belong to you |
|
Back to top |
|
|
meowsqueak Veteran
Joined: 26 Aug 2003 Posts: 1549 Location: New Zealand
|
Posted: Sun Jan 25, 2004 7:53 pm Post subject: |
|
|
So your 'user' attempt also tries to open ~/.Xdefaults and fails? |
|
Back to top |
|
|
supernova n00b
Joined: 12 Jan 2004 Posts: 49 Location: Karlsruhe, Germany
|
Posted: Sun Jan 25, 2004 8:02 pm Post subject: |
|
|
Hmmm... well, not really.
I think that it would work IF it did so (just like in 'root'), but as you can see in the strace log, it just plays around with that locale stuff and then dies. It doesn't touch ~/.Xdefaults at all... _________________ Roses are red
Violets are blue
All my base
Are belong to you |
|
Back to top |
|
|
meowsqueak Veteran
Joined: 26 Aug 2003 Posts: 1549 Location: New Zealand
|
Posted: Sun Jan 25, 2004 8:09 pm Post subject: |
|
|
Hmmm, ok, well with my system, if .Xdefaults doesn't exist, then it doesn't even TRY to do that locale stuff. It skips it completely. I think the X library routines that are used to process .Xdefaults invoke this locale code (I'm merely speculating). |
|
Back to top |
|
|
supernova n00b
Joined: 12 Jan 2004 Posts: 49 Location: Karlsruhe, Germany
|
Posted: Sun Jan 25, 2004 8:14 pm Post subject: |
|
|
Hmmm... I'm out of ideas.
I don't understand this strange behaviour and I would really like to know what the difference between our systems is.
What X version do you have? The stable 4.3.0 or the experimental 4.3.99? (I use 4.3.0) _________________ Roses are red
Violets are blue
All my base
Are belong to you |
|
Back to top |
|
|
meowsqueak Veteran
Joined: 26 Aug 2003 Posts: 1549 Location: New Zealand
|
Posted: Sun Jan 25, 2004 8:58 pm Post subject: |
|
|
I have x11-base/xfree-4.3.0-r3. |
|
Back to top |
|
|
supernova n00b
Joined: 12 Jan 2004 Posts: 49 Location: Karlsruhe, Germany
|
Posted: Sun Jan 25, 2004 9:36 pm Post subject: |
|
|
Same here (-r3). Hm. _________________ Roses are red
Violets are blue
All my base
Are belong to you |
|
Back to top |
|
|
toojays Apprentice
Joined: 21 Jul 2002 Posts: 150 Location: Adelaide, Australia
|
Posted: Sat Jan 31, 2004 3:26 am Post subject: |
|
|
Just another data point here:
I have xfree-4.3.0-r3 as well, and renaming ~/.Xdefaults did not fix it for me . . . until I started up a new X server.
Supernova, If you haven't already tried this, restart X after renaming your ~/.Xdefaults. (Actually what I did was switch to another virtual terminal and run something like "xinit /usr/X11R6/bin/xterm -display :1 -- vt08 :1" to load a new XServer on virtual terminal 8.) |
|
Back to top |
|
|
|