A software for sleep analysis in Drosophila


Bug in OpenCV 2.1

There seem to be a bug in the python binding of OpenCV 2.1 and 2.2 that will make pySolo Video crash after only few hours of work. This is due to a memory leak (i.e. the program uses more and more memory until resources are over and will crash) and depending on how much memory your machine has, could crash after few hours or days.

It should be possible to solve the issue directly in the pySolo Video code but, for now, our best bet is to use OpenCV 2.3 instead. Unfortunately, none of the current Ubuntu distro sport opencv 2.3.1 but it’s possible to install it anyway using a third party repository.

In the terminal of your Ubuntu distro, type the following:

sudo add-apt-repository ppa:admo/opencv
sudo apt-get update
sudo apt-get install python-opencv


This will install the newest version of OpenCV and solve the issue. If you (like me) use Archlinux, you should have already the latest version of OpenCV and never have encounterd this issue.

In windows, download and install the exe you find here.

I would like to thank Laurent Seugnet for pointing me the issue already several months ago and apologize for not being able to solve it earlier.

Comments are closed.

pySolo sign up form

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur excepteur sint occaecat cupidatat non

pySolo login form