Author Topic: Scriptcore keeps crashing (bufferoverflow?)  (Read 898 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Scriptcore keeps crashing (bufferoverflow?)
« on: February 03, 2009, 01:24:43 am »
As some of you may already have noticed, my MMod server crashes randomly at casting spells, or just respawning, dealing damage, joining a game, and almost all other events. It seems like the script wants to write to invalide pointer which points to NULL. This only happens to large scripts.

Does anyone else have this problem?

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Scriptcore keeps crashing (bufferoverflow?)
« Reply #1 on: February 03, 2009, 01:31:13 am »
What is the output of the server when it crashes?

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Scriptcore keeps crashing (bufferoverflow?)
« Reply #2 on: February 03, 2009, 01:48:35 am »
Our well known and lovely access violations.

Code: [Select]
09-02-02 20:24:58 SomeNick scores for Bravo Team
09-02-02 20:24:58 Lesser Demonkin has been kicked.
09-02-02 20:25:01  [*] [Error] MiracleMod -> (OnWeaponChange): Invalid Type
09-02-02 20:25:01  [*] [Error] MiracleMod -> (AppOnIdle): Access violation at address 0044EBF3 in module 'soldatserverp.exe'. Read of address 00000106
09-02-02 20:25:02  [*] [Error] MiracleMod -> (OnWeaponChange): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000106
09-02-02 20:25:02  [*] [Error] MiracleMod -> (OnPlayerCommand): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000118
09-02-02 20:25:02  [*] [Error] MiracleMod -> (AppOnIdle): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000128
09-02-02 20:25:03  [*] [Error] MiracleMod -> (AppOnIdle): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000138
09-02-02 20:25:04  [*] [Error] MiracleMod -> (AppOnIdle): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000148
09-02-02 20:25:05  [*] [Error] MiracleMod -> (AppOnIdle): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000158
09-02-02 20:25:06  [*] [Error] MiracleMod -> (OnPlayerCommand): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000168
09-02-02 20:25:06  [*] [Error] MiracleMod -> (AppOnIdle): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000178
09-02-02 20:25:06  [*] [Error] MiracleMod -> (OnPlayerCommand): Access violation at address 0044EC70 in module 'soldatserverp.exe'. Write of address 00000188
09-02-02 20:25:06 [*] Too many script errors! Shutting down server -> "MiracleMod"
09-02-02 20:25:06 Shutting down server...
09-02-02 20:25:06 Shutting down fileserver...
09-02-02 20:25:06 Shutting down admin server...

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Scriptcore keeps crashing (bufferoverflow?)
« Reply #3 on: February 03, 2009, 04:38:29 am »
You can't fix it, either it will work in your current host or you need another host :(

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Scriptcore keeps crashing (bufferoverflow?)
« Reply #4 on: February 03, 2009, 05:15:34 am »
09-02-02 20:25:01 
  • [Error] MiracleMod -> (OnWeaponChange): Invalid Type


That right there is an error in the script itself, have you modified MMod at all or installed it incorrectly?

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Scriptcore keeps crashing (bufferoverflow?)
« Reply #5 on: February 03, 2009, 10:09:35 am »
I'm hosting it at one of my vservers, there's enough ram left, and the CPU is fast, so it shouldn't be a problem. No, I didn't modify MMod, and all I did is copying the MMod directory into the soldatserver one. Sometimes it's running fine, but sometimes it just crashes.