BoboTiG / python-mss

An ultra fast cross-platform multiple screenshots module in pure Python using ctypes.
https://pypi.org/project/mss/
MIT License
1.02k stars 93 forks source link

Memory increase slowly and then fill up all memory #137

Closed Seraphli closed 4 years ago

Seraphli commented 4 years ago

General information:

Description of the warning/error

I'm running a script to capture screen in VMware. The system win7 is running inside VMware. I dispatch 6GB memory for this machine. After running the script for about 6 hours, the python process fills up all memory and cause the Out of Memory error.

BoboTiG commented 4 years ago

Could you try the version from the master branch? Several memory leak issues were fixed.

Seraphli commented 4 years ago

Okay, I will try it out. I'm currently just writing a bat script to restart the python script.

Seraphli commented 4 years ago

I have tested the version 5.0.0 for 15 minutes, and the problem is resolved. Thank you! I will run a test for hours later, see if there is a problem. I will close this issue now.

BoboTiG commented 4 years ago

Great! I will make a new release this week. Let me know if you problem is really solved (I think so).

Seraphli commented 4 years ago

Confirm the problem solved.

BoboTiG commented 4 years ago

Excellent! Thank you :)