Stable increasing memory - Hang script!!

Asked by spyros-liakos

Hello.! I got a stable increasing memory.It starts the script from 400mb ram and in 4hours increased to 2,50gb ram and then hangs the Mac.

for tt in range(150):
    if count == 0:
        Model()
    else:
        ModelSolver()
        count = 0
        continue

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
spyros-liakos
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

version of SikuliX?

Revision history for this message
spyros-liakos (spy-arts) said :
#2

1.1.0

Revision history for this message
spyros-liakos (spy-arts) said :
#3

1.1.0

Revision history for this message
RaiMan (raimund-hocke) said :
#4

could you give 1.1.1 a try:

http://sikulix.com

Revision history for this message
spyros-liakos (spy-arts) said :
#5

Ok.

Revision history for this message
spyros-liakos (spy-arts) said :
#6

- In 2 hours i get the same amount of memory: 1,25gb and keep increasing

What i noticed is,, when the loop starts from the begin and goes here:

          if onceplay == True:
                print("#Waiting Soldiers to Complete...")
                while True:
                    if findtroopsfull.exists(Pattern(campsfull).exact()):
                        break
                    else:
                        if count == 1:
                            return count
                        continue

memory gets increased e.x from 650mb to 720mb!!! then all the script is executed with a very small of amount e.x 1-2mb and when it comes back to the start the loop we got the same (memory gets increased e.x from 650mb to 720mb!!!)

- I have even try to brake the script to functions but still the same.

Revision history for this message
spyros-liakos (spy-arts) said :
#7

Problem solved...Need it to clean up code...Memory goes till 720 for 3 hours now with stimuli 1.1.0