View Issue Details

IDProjectCategoryView StatusLast Update
0009021New issuesScriptingpublic2018-07-09 15:56
ReporterNecktroxAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0009021: Bad resource userdata for onResourceStop on "removed while running"
Description

If you remove/move a resource while running and refresh your resources, the handler for onResourceStop will receive a "dead" resource userdata.

Steps To Reproduce

start xyz
srun addEventHandler("onResourceStop", root, function (res) getResourceName(res) end)
-- move xyz into other folder
refresh

Additional Information

Resources, which clean up special data after resources will have memory leaks, because the stopped resource's data won't be deleted due to the error.

TagsNo tags attached.

Activities

qaisjp

2015-08-30 16:29

administrator   ~~0024032

It's probably a good idea not to move resources without stopping them.

Necktrox

2015-08-30 16:33

developer   ~~0024033

Of course, but the resource userdata remains invalid in that event and you can't validate it.

Issue History

Date Modified Username Field Change