SphereServer BugTracker - SphereServer
View Issue Details
0001950SphereServerexecutable - linux buildpublic26-04-11 11:4702-05-11 03:57
trinax 
 
normalminorrandom
closedno change required 
LinuxDebian5.0
 
 
Automated (specify build number)
DiagonalWalkCheck, NewPositionChecks, WalkCheck, Script_Profiler, NetworkOutThread
Command_Sysmsgs, FileCommands, NoHouseMuteSpeech, NoPrefix
1443
0001950: 2 errors on save
0000001
21:42:(sphere_serv_triggers.scp,314)Save Stage Started. Forced: 0. Stage#: 2147483647
21:43:ERROR:'Poison' Bad Link to 0e6852
21:43:ERROR:UID=040066007, id=02093 'Poison', Invalid code=2205 (Mislinked item)
21:43:ERROR:UID=06706a, id=0cc 'Horse', Invalid code=1203 (Ridden NPC not acting as such)
21:43:ERROR:GC: Object memory leak 75701!=75700
21:43:World data saved (save/sphereworld.scp).
21:43:Player data saved (save/spherechars.scp).
21:43:Multi data saved (save/spheremultis.scp).
21:43:Context data saved (save/spheredata.scp).
This Ridden NPC not acting as such bug is causing people's mounts to be removed on save. Any idea why it happens?


0000002
01:48:(sphere_serv_triggers.scp,314)Save Stage Started. Forced: 0. Stage#: 2147483647
01:48:ERROR:'Clumsy' Bad Link to 0e4a7f
01:48:ERROR:UID=0400aca03, id=02080 'Clumsy', Invalid code=2205 (Mislinked item)
01:48:GC: 75725 Objects accounted for
01:48:World data saved (save/sphereworld.scp).
01:48:Player data saved (save/spherechars.scp).
01:48:Multi data saved (save/spheremultis.scp).
01:48:Context data saved (save/spheredata.scp).

This bad linked spells happen often (poison,weaken,etc.). How does this happen?

And lastly, how does that object memory leak happen? Can some kind of bad scripting cause that?

Thanks.
No tags attached.
Issue History
26-04-11 11:47trinaxNew Issue
26-04-11 19:03MirravinNote Added: 0001043
26-04-11 19:04MirravinNote Edited: 0001043bug_revision_view_page.php?bugnote_id=0001043#r274
26-04-11 21:44trinaxNote Added: 0001044
26-04-11 21:45trinaxNote Edited: 0001044bug_revision_view_page.php?bugnote_id=0001044#r276
02-05-11 03:57MrSugarCubeNote Added: 0001051
02-05-11 03:57MrSugarCubeStatusnew => closed
02-05-11 03:57MrSugarCubeResolutionopen => no change required

Notes
(0001043)
Mirravin   
26-04-11 19:03   
(edited on: 26-04-11 19:04)
The reason is buffs / debuffs / effects (linked memory items) from non-existing characters, for example, killed NPCs.

(0001044)
trinax   
26-04-11 21:44   
(edited on: 26-04-11 21:45)
Okay thanks, actual problem is mounts getting removed though.

21:43:ERROR:UID=06706a, id=0cc 'Horse', Invalid code=1203 (Ridden NPC not acting as such)

I see there is a fix about this problem in the revisions but it seems to be still there. It becomes a problem when a Unicorn is removed from player.

(0001051)
MrSugarCube   
02-05-11 03:57   
I've expanded on the descriptions listed on the wiki page ( http://wiki.sphere.torfo.org/index.php/Error_Codes#Garbage_Collection [^] ), which should help explain the circumstances under which these errors occur.

The object memory leak message indicates that the garbage collection process didn't scan the expected number of objects (in your case it checked 75701 objects but there should only have been 75700). This isn't neccessarily anything to be concerned about, as the clean-up process may have involved creating or deleting objects. Only if the message were to appear at every garbage collection and unaccompanied by the other errors then I'd consider there may be something strange happening.