RaspberryMatic icon indicating copy to clipboard operation
RaspberryMatic copied to clipboard

ReGaHss: Script variable are visible throughout all rega programs

Open jens-maus opened this issue 7 years ago • 1 comments

In the current implementation of writing script programs within ReGaHss, the variables are visible throughout the whole context of ReGaHss and not limited to the individual program they are defined in. This seems to be a somewhat severe design failure since this could cause strange effects if developers are not taking great care to isolate variables by using unique variable names for each script program. Thus, this should be corrected in some future ReGaHss version.

jens-maus avatar Mar 29 '17 18:03 jens-maus

Hi jens-maus, thank you for this great project!

A short question: I think this problem is also causing memory leaks. Since I am using a script to parse data from Weatherunderground, available memory is going down until the system crashes. I assume that happens, because memory allocated by variables is not properly released and every time the script runs, all variables (especially strings) are allocated again and so on.... after some time no memory is left. Is my assumption correct?

Do you have any idea if and when this bug will be fixed?

Sorry, another question: Should this bug not show up in the issue-list of the occu project? I just checked it and did not find any issue describing a memory leak issue...

neopholus avatar Jun 23 '18 20:06 neopholus