SphereServer BugTracker - SphereServer
View Issue Details
0002498SphereServerexecutable - windows buildpublic27-03-15 04:2627-03-15 08:37
lazarus 
XuN 
normalmajoralways
resolvedfixed 
WindowsWindows 77
 
0.56c Nightly 
Not Available
None
None
2233
0002498: ON=@Death function working bad (threads)
REV 2233
blank server
Just kill a NPC and you get some thread errors:
Same with players.

00:19:DEBUG:__ thread (8196) __ | # | _____ function _____________ | ticks passed from previous function start ______
00:19:DEBUG:>> 8196 | 0 | CWorld::OnTick | +0
00:19:DEBUG:>> 8196 | 1 | CSector::OnTick | +0
00:19:DEBUG:>> 8196 | 2 | CChar::OnTick | +0 <-- exception catch point (below is guessed and could be incorrect!)
00:19:DEBUG:>> 8196 | 3 | CChar::Death | +0
00:19:DEBUG:>> 8196 | 4 | CVarDefMap::Empty | +0
00:19:CRITICAL:"Access Violation" (0x1dc45), in CChar::Tick() 0000001 "death"
00:20:1:'admin1' commands 'str 4000'=1
00:20:DEBUG:__ thread (8196) __ | # | _____ function _____________ | ticks passed from previous function start ______
00:20:DEBUG:>> 8196 | 0 | CWorld::OnTick | +0
00:20:DEBUG:>> 8196 | 1 | CSector::OnTick | +0
00:20:DEBUG:>> 8196 | 2 | CChar::OnTick | +0 <-- exception catch point (below is guessed and could be incorrect!)
00:20:DEBUG:>> 8196 | 3 | CChar::Death | +0
00:20:DEBUG:>> 8196 | 4 | CVarDefMap::Empty | +0
00:20:CRITICAL:"Access Violation" (0x1dc45), in CChar::Tick() 0000001 "death"
00:20:DEBUG:__ thread (8196) __ | # | _____ function _____________ | ticks passed from previous function start ______
00:20:DEBUG:>> 8196 | 0 | CWorld::OnTick | +0
00:20:DEBUG:>> 8196 | 1 | CSector::OnTick | +0
00:20:DEBUG:>> 8196 | 2 | CChar::OnTick | +0 <-- exception catch point (below is guessed and could be incorrect!)
00:20:DEBUG:>> 8196 | 3 | CChar::Death | +0
00:20:DEBUG:>> 8196 | 4 | CVarDefMap::Empty | +16
00:20:CRITICAL:"Access Violation" (0x1dc45), in CChar::Tick() 0000001 "death"
-Open server
-Kill NPC
-On Death functions call.
-Thread problems.
No tags attached.
Issue History
27-03-15 04:26lazarusNew Issue
27-03-15 08:37XuNNote Added: 0002756
27-03-15 08:37XuNStatusnew => resolved
27-03-15 08:37XuNFixed in Version => 0.56c Nightly
27-03-15 08:37XuNResolutionopen => fixed
27-03-15 08:37XuNAssigned To => XuN

Notes
(0002756)
XuN   
27-03-15 08:37   
Fixed, also moved NPC_CleanOwners() under the bonded check to avoid forgeting their masters.