Michael-Z-Freeman / forgotten-hope-singleplayer

Automatically exported from code.google.com/p/forgotten-hope-singleplayer
0 stars 0 forks source link

Brest crashes server when Allies take Plaza flag #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Running SP/Coop patch C on server and clients. Server crashes and restarts with 
first map in rotation when Allies take the Plaza flag. This happens every time, 
making the Battle of Brest map essentially unplayable. This did not occur with 
SP/Coop patch B.

Original issue reported on code.google.com by zulu4...@gmail.com on 19 Dec 2013 at 2:10

GoogleCodeExporter commented 9 years ago
Server still crashes at the exact same place in FH 2.46.

Original comment by zulu4...@gmail.com on 17 Apr 2014 at 6:11

GoogleCodeExporter commented 9 years ago
The crash is not reproducible on a dedicated coop Windows server (see the 
screenshot below, made few minutes ago) and in countless "pure" singleplayer 
rounds I played while updating the map.

Original comment by gavrant on 17 Apr 2014 at 6:59

Attachments:

GoogleCodeExporter commented 9 years ago
Interesting. I suppose it's possible that the problem is specific to Linux 
servers. I'm running Ubuntu 12.04 64-bit. I did a clean install of the server 
files. Any ideas what I should be looking for?

Original comment by zulu4...@gmail.com on 17 Apr 2014 at 7:15

GoogleCodeExporter commented 9 years ago
I found something in one of the Brest files that looked suspicious:
In server.zip/GameModes/gpm_coop/64/PCO.con:
  ObjectTemplate.modifiedByUser "Administratör"

"Administratör" contains a special character (0xF6, 0246) that might be 
handled differently on Windows and Linux servers. Unfortunately, changing the 
character to a regular 'o' and restarting the server didn't help. The server 
still crashed on Brest shortly after the Allies took the Plaza flag (but not 
immediately, which was interesting.)

I'm not sure character set differences are enough to cause this kind of 
problem, but I'm looking at anything that might be handled differently on 
Linux. One thing that really can make a difference is file names (case matters 
on Linux) but so far I'm not seeing anything about Brest that's different from 
the other maps.

Original comment by zulu4...@gmail.com on 18 Apr 2014 at 12:35

GoogleCodeExporter commented 9 years ago
The "Administratör" issue almost certainly is not the cause of the crash. We 
have plenty of Administratörs mentioned on other not crashing maps. Besides, 
this line of code doesn't influence gameplay in any way.

AFAIK, BF2 server binaries are not case-sensitive to file names, otherwise we 
would have a lot of other maps crashing too.

Jeff, could you upload the whole <BF2>/mods/fh2 dir from your server, so I 
could look into it?

Original comment by gavrant on 18 Apr 2014 at 12:57

GoogleCodeExporter commented 9 years ago
Regarding "Administratör" not being a problem on other servers: are any of 
those running on Linux?

As for case-sensitive filenames, I admit I was just clutching at straws there. 
But I also run a BF1942 server, and filename case-sensitivity is definitely an 
issue there.

I can upload my server's fh2 mod folder, but it's identical to the server 
release for FH2 2.46, so I'm not sure there's much point. Where should I upload 
it?

Original comment by zulu4...@gmail.com on 18 Apr 2014 at 3:00

GoogleCodeExporter commented 9 years ago
This still happens with FH2 2.47. As before, this is with a new install of FH2 
on a 64 bit Linux server. And I'm using the 64 bit FH2 binary instead of the 
BF2 binary, as required. I was actually able to play the map through once but 
it's crashed the server every time since. Crash seems to happen around the 
point where the Allies take the Plaza flag, but sometimes a few minutes later.

I can upload the fh2 mod folder as requested earlier, if that would still be 
helpful. In the meantime, is there anything at all I can do to assist in 
debugging this problem? I do have extensive programming experience, but I need 
to know what I'm looking for.

Original comment by zulu4...@gmail.com on 18 Jul 2014 at 8:01

GoogleCodeExporter commented 9 years ago
More info: I'm able to finish this map without crashing my server, if I avoid 
creating my own squad, and instead join an existing squad, and also NOT be the 
squad leader. I don't know why it works, but it seems to work consistently.

Original comment by zulu4...@gmail.com on 30 Jul 2014 at 4:14

GoogleCodeExporter commented 9 years ago
Hmm, just captured 4 flags, including Plaza, on a dedicated Windows server, 
playing as the squad leader of a squad created by me, with few invited bots. No 
crashes.

Original comment by gavrant on 31 Jul 2014 at 7:18

GoogleCodeExporter commented 9 years ago
At this point it seems clear that this particular problem only happens on Linux 
(possibly 64-bit Linux) servers.

Original comment by zulu4...@gmail.com on 1 Aug 2014 at 1:29

GoogleCodeExporter commented 9 years ago
Jeff, try running the 32 bit binary on your server. And I doubt that you'll get 
any performance problems, since usually BF2 servers don't need 2+ GB of RAM 
anyway.

Sidenote: while fixing one Gamespy issue recently, I noticed that some things 
(not singleplayer-related) are present either in the 32 bit bin, or in the x64 
one, but not in both together. So indeed, some bugs may be found in one binary, 
but not in another.

Original comment by gavrant on 1 Aug 2014 at 1:48

GoogleCodeExporter commented 9 years ago
Gavrant, I switched my server over to 32-bit as a test, but Brest still crashes 
the server within a minute or so of taking the Plaza flag.

However, Omaha Beach works perfectly with the 32-bit server. So that's awesome.

Unfortunately, I'm having trouble keeping the 32-bit server running reliably. 
It just seems to get unstable after a few maps, and I have to switch back to 
the 64-bit server. I think I know what might be causing this, so I'll keep 
experimenting.

Original comment by zulu4...@gmail.com on 3 Aug 2014 at 7:55

GoogleCodeExporter commented 9 years ago
The 32-bit server now runs reliably, and although this fixed Omaha, Brest still 
crashes the server just after the Allies take Plaza if I'm on a squad I 
created. In other words, no change.

Original comment by zulu4...@gmail.com on 11 Aug 2014 at 10:16