SphereServer BugTracker - SphereServer
View Issue Details
0001608SphereServerexecutable - genericpublic14-05-09 05:0402-11-14 15:23
umuri 
XuN 
normalmajorhave not tried
closedfixed 
 
0.56c Nightly 
09-09-2008
None
None
0001608: Worldsave Interrupts Forinstances with disasterous results
Was running a forinstances script to do some item resets. Worldsave apparently started while it was running, which resulted in complete corruption of the worldfile.
Save runs a statics save as well as the world save.
For added kicks, after the save was finished spewing errors, if you did a show serv.name it kicked back the item the script was last processing.

resetfish
World statics save has been initiated.19:53:CRITICAL:(sphere_serv_triggers.scp,76)Error Pri=2, Code=-1073741819, Desc='Exception', in Write Object 040016d7e
ERROR:UID=040010832, id=07352 'carpet', Invalid code=ffff (Bad memory allocation)
ERROR:UID=040016d7e, id=07352 'carpet', Invalid code=ffff (Bad memory allocation)
ERROR:'spiderweb' Bad Link to 04374c900
ERROR:UID=04374c8f2, id=0ee3 'spiderweb', Invalid code=2205 (Mislinked item)
CRITICAL:Error Pri=2, Code=-1073741819, Desc='Exception', in FixObj
ERROR:GC: Object memory leak 614654!=615131
World save has been initiated.19:54:CRITICAL:Error Pri=2, Code=-1073741819, Desc='Exception', in Write Object 0b23f24
19:54:DEBUG:__ # | _____ function _____________ | ticks passed from previous function start ______

**TRUNCATED: pages of errors related to the script failing to run right

19:54:CRITICAL:Error Pri=2, Code=-1073741819, Desc='Exception', in CWorld::SaveStage() #0 ""
19:54:DEBUG:stage '3247' qty '47229' time '0'
resetfish
World statics save has been initiated.19:54:CRITICAL:(sphere_serv_triggers.scp,76)Error Pri=2, Code=-1073741819, Desc='Exception', in Statics Save FAILED.
No tags attached.
txt errorlog.txt (233,638) 18-05-09 21:46
http://tracker.sphere.torfo.org/bugs/file_download.php?file_id=21&type=bug
Issue History
14-05-09 05:04umuriNew Issue
14-05-09 05:04umuriNightly Version => 09-09-2008
14-05-09 05:04umuriExperimental Flags => None
14-05-09 05:04umuriOption Flags => None
17-05-09 00:49MrSugarCubeNote Added: 0000221
17-05-09 00:53MrSugarCubeStatusnew => feedback
18-05-09 21:46umuriFile Added: errorlog.txt
18-05-09 21:52umuriNote Added: 0000224
02-11-14 15:23XuNNote Added: 0002555
02-11-14 15:23XuNStatusfeedback => closed
02-11-14 15:23XuNAssigned To => XuN
02-11-14 15:23XuNResolutionopen => fixed
02-11-14 15:23XuNFixed in Version => 0.56c Nightly

Notes
(0000221)
MrSugarCube   
17-05-09 00:49   
You've cut out the part of the log that has useful information on it. In addition to the rest of the log can you also please provide your worldsave settings and if possible a script that can reproduce this issue?

Also can you confirm that you have entered the correct nightly version (09-09-2008), since the only way i can currently see for this problem to occur is if you're using a build from before this date.

Thanks.
(0000224)
umuri   
18-05-09 21:52   
Updated the log with the full upload.

from sphere.ini:

// Where your sphereworld.scp and spherechars.scp are located
WorldSave=save/

///////////////////////////////////////////////////////////////
//////// World Save Information
///////////////////////////////////////////////////////////////
// How often for Sphere to save your world (minutes)
SavePeriod=90

// How many backup levels to keep. Each level means 7 backups done for it.
// So, 10*7 = 70 backup saves will be storied.
BackupLevels=12

// On would save in the background quietly over a longer period of time, and not interrupt the game
// Off would notify "World save has been initiated" and save faster, but pause the game momentarily
SaveBackground=0

// Always force a full garbage collection on save
ForceGarbageCollect=1

from spheretriggers:
[FUNCTION f_onserver_save]
serv.savestatics

And i have confirmed that the version is 09-09-2008. Size 1901568.
(0002555)
XuN   
02-11-14 15:23   
Tested with a serv.save inside a forinstances loop and couldn't replicate.