Author Topic: access violation soldatserver.exe  (Read 1643 times)

0 Members and 1 Guest are viewing this topic.

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
access violation soldatserver.exe
« on: June 27, 2007, 12:42:11 pm »
Hi,
Ive been running a lot of scripts on my server lately, and they have all been tested and they work. however sometimes something goes wrong.. the server spams huge amounts of error messages with different addresses and errors. i have no idea whats causing this, it seems to happen randomly.
here a log example.. the command !nextmap usually works and the bugging has also happen with other commands.

07-06-27 16:00:03 [|D.F|Cr4sH3r~GL~] ta
07-06-27 16:00:04 [|D.F|Cr4sH3r~GL~] no i?
07-06-27 16:00:06 [lamma lamma duck] !nextmap
07-06-27 16:00:06 
  • Run-time error (OnPlayerSpeak): Type Mismatch

07-06-27 16:00:06 87.207.223.48:23073 requesting game...
07-06-27 16:00:07 [|D.F|Sl4y3r~GL~] widzales ile osob
07-06-27 16:00:10 [|D.F|Sl4y3r~GL~] zmien squad
07-06-27 16:00:11 172.178.234.144:23073 requesting game...
07-06-27 16:00:11 [|D.F|Cr4sH3r~GL~] wtf'
07-06-27 16:00:11 [lamma lamma duck] !nextmap
07-06-27 16:00:11 [|D.F|Sl4y3r~GL~] :D
07-06-27 16:00:11 
  • Run-time error (OnPlayerSpeak): Out Of Stack Range

07-06-27 16:00:11 
  • Run-time error (OnPlayerSpeak): Out Of Stack Range

07-06-27 16:00:12 172.178.234.144:23073 requesting game...
07-06-27 16:00:13 [^KalimdoR^ (Sz.Kl.)] Its funny
07-06-27 16:00:13 [|D.F|Cr4sH3r~GL~] nie xD
07-06-27 16:00:13 DEBIL has left alpha team.
07-06-27 16:00:16 -|KotA|- Limionue has left alpha team.
07-06-27 16:00:16 [^KalimdoR^ (Sz.Kl.)] !nextmap
07-06-27 16:00:16 
  • Run-time error (OnPlayerDamage): Out Of Range

07-06-27 16:00:16 
  • Run-time error (OnPlayerSpeak): Access violation at address 00450B2F in module 'soldatserver.exe'. Read of address 00000106

07-06-27 16:00:17 
  • Run-time error (AppOnIdle): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000106

07-06-27 16:00:17 
  • Run-time error (OnWeaponChange): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000118

07-06-27 16:00:17 
  • Run-time error (OnPlayerDamage): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000128

07-06-27 16:00:17 
  • Run-time error (OnPlayerDamage): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000138

07-06-27 16:00:17 
  • Run-time error (OnPlayerDamage): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000148

07-06-27 16:00:17 
  • Run-time error (OnPlayerDamage): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000158

07-06-27 16:00:17 
  • Run-time error (OnPlayerDamage): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000168

07-06-27 16:00:17 [lamma lamma duck] !ranmap
07-06-27 16:00:17 
  • Run-time error (OnPlayerSpeak): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000178

07-06-27 16:00:18 
  • Run-time error (OnPlayerDamage): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000188

07-06-27 16:00:18 
  • Run-time error (OnPlayerDamage): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 00000198

07-06-27 16:00:18 
  • Run-time error (AppOnIdle): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address 000001A8



Heres another one:

07-06-27 19:34:30 [hurris] nice try.
07-06-27 19:34:31 ^~MiRaBoLanT~^ gets a ping warning
07-06-27 19:34:35 [hurris] !ranmap
07-06-27 19:34:35 
  • Run-time error (OnWeaponChange): Out Of Range

07-06-27 19:34:35 
  • Run-time error (OnPlayerSpeak): Access violation at address 00450B31 in module 'soldatserver.exe'. Read of address 00000160

07-06-27 19:34:35 
  • Run-time error (OnWeaponChange): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD9884

07-06-27 19:34:35 
  • Run-time error (OnPlayerRespawn): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD988C

07-06-27 19:34:35 
  • Run-time error (OnPlayerRespawn): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD989C

07-06-27 19:34:35 
  • Run-time error (OnPlayerRespawn): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD98AC

07-06-27 19:34:35 
  • Run-time error (OnPlayerRespawn): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD98BC

07-06-27 19:34:35 
  • Run-time error (AppOnIdle): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD98CC

07-06-27 19:34:36 84.31.181.169:4166 requesting game...
07-06-27 19:34:36 
  • Run-time error (OnRequestGame): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD98DC

07-06-27 19:34:36 201.214.56.226:63565 requesting game...
07-06-27 19:34:36 
  • Run-time error (OnRequestGame): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD98EC

07-06-27 19:34:36 
  • Run-time error (AppOnIdle): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD98FC

07-06-27 19:34:37 
  • Run-time error (AppOnIdle): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD990C

07-06-27 19:34:38 
  • Run-time error (OnPlayerRespawn): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD991C

07-06-27 19:34:38 
  • Run-time error (AppOnIdle): Access violation at address 00450BAC in module 'soldatserver.exe'. Write of address F9DD992C

07-06-27 19:34:38 ^~MiRaBoLanT~^ gets a ping warning

The errors continue until i find out about it, and restart the server.
any help/suggestions would be appreciated



edit: maybe this should be in server help
« Last Edit: June 27, 2007, 12:47:50 pm by BombSki »

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: access violation soldatserver.exe
« Reply #1 on: June 27, 2007, 12:46:38 pm »
Despite your "testing" it is, most likely, a bug in your scripts.
Even if you did test them very thoroughly you might still got some bugs in there... as those run-time errors prove.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: access violation soldatserver.exe
« Reply #2 on: June 27, 2007, 12:58:26 pm »
Yes, those look like bugs in your scripts

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: access violation soldatserver.exe
« Reply #3 on: June 27, 2007, 07:13:20 pm »
Yes, those look like bugs in your scripts

I concur.  Perhaps sharing your script can help us help you debug it...
Can't think of anything original to put here...

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: access violation soldatserver.exe
« Reply #4 on: July 04, 2007, 10:54:21 am »
Well, ive already got some help on IRC. In the 2nd log you can see that its the OnWeaponChange procedure which causes it, so here it goes:

procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);
begin
 
  if (((PrimaryNum <> 255) and (PrimaryNum <> 14)) or ((SecondaryNum <> 255) and (SecondaryNum <> 14))) then begin
   
    Command('/say ' + IdToName(ID) + ' was weapon kicked!');
   
    Command('/kick '+ IntToStr(ID));
  end;
end;


On IRC i was told that the IdToName thing was buggy, so ive changed that now, hope its alright. The onplayerspeak event also used IdToName, so ive replaced those as well. Ill let you know if it worked ^^

Date Posted: June 28, 2007, 11:38:06 AM
Well, it worked fine for about a day, and now im getting even more bugs. pretty much the same thing happens, theres a scripting bug and then the entire server messes up (access violation)

07-06-30 04:10:24 
  • Run-time error (OnWeaponChange): Out Of Range

07-06-30 14:02:19 
  • Run-time error (OnPlayerKill): Out Of Range

07-06-30 15:45:44 
  • Run-time error (OnWeaponChange): Out of Global Vars range

07-06-30 20:29:13 
  • Run-time error (OnPlayerDamage): Out of Global Vars range

07-06-30 22:31:17 
  • Run-time error (OnPlayerDamage): Out Of Range

07-07-01 02:49:57 
  • Run-time error (OnPlayerDamage): Invalid Opcode


I'd like to point out that i havent written the script myself, but the one who did has no idea what is causing the bugs. this leaves me with no option other than to post here for any help..
the procedures that are bugged are:

Code: [Select]
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: byte);
begin
 
  if ((PrimaryNum <> 255) and (PrimaryNum <> 14)) then begin
 
    ForceWeapon(ID, 14, 255, 0);
  end;
 
  if((SecondaryNum <> 255) and (SecondaryNum <> 14)) then begin
   
    ForceWeapon(ID, 14, 255, 0);
  end;
end;
This code forces the knife when another weapon is taken (because of the weapon glitch that is posted at the bug section)

Code: [Select]
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
end;
This code is.. empty?

Code: [Select]
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;
begin
 
  if GetPlayerStat(Shooter, 'Team') <> GetPlayerStat(Victim, 'Team') then begin
 
    Result := 0;
  end
  else begin
   
    Result := Damage;
  end;
end;
This code reduces any damage to another team to 0

any help would be appreciated. the entire code is pretty damn big but if you'd need it i could post it

Date Posted: July 02, 2007, 08:02:36 AM
no reply.. does this mean the scripts are fine? could it be a flaw in another procedure causing it? (i guess so since the onplayerkill is empty)

is anyone having such problems as well?

Date Posted: July 02, 2007, 08:39:54 PM


Date Posted: July 03, 2007, 01:03:34 PM
Well, err, thanks.

I now have a script running to automaticly recompile when theres an error.. gotta be innovative huh.

Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: access violation soldatserver.exe
« Reply #5 on: July 04, 2007, 12:23:31 pm »
hmm looks fine to me..

Mistake might be somewhere else?


Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: access violation soldatserver.exe
« Reply #6 on: July 05, 2007, 06:17:40 am »
as i said, i dont know if thats possible
all of the command work independently, so its kinda hard to trace this bug. the entire script is at least 5 pages so :S