[2.0.4] possible memory leak with long running scripts
Hello there ...
Am using SikuliX for a basic gaming tasks, so .. the script is on a loop and it works fine during some hours, after that it stops and my OS (Linux mint 19.03) says that i run out of ram memory.
I read about memory leak and optimize my code to fix the issue, so i did it, now it takes more than 5GB (RAM) in like 10 hours running.
this is an example how i do my search:
CenterReg = Region(
swLocation = Location(159, 655)
GoldImg = "gold.png"
if centerReg.
click(
My coding skills are very basics so, will be great if someone give me a recommendation.
More info:
What SikuliX version? 2.0.4
What system? Linux Mint 19.03
what Java? OpenJDK 64-Bit Server VM (build 11.0.7+
Possible, to get your script? yes
Tesseract: tesseract 4.1.1-rc2-21-gf4ef
leptonica-1.75.3
libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0
Found AVX2
Found AVX
Found FMA
Found SSE
Found libarchive 3.2.2 zlib/1.2.11 liblzma/5.2.2 bz2lib/1.0.6 liblz4/1.7.1
Regards!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: