portugueslab / stytra

A modular package to control stimulation and track behaviour
http://www.portugueslab.com/stytra/
GNU General Public License v3.0
42 stars 27 forks source link

stytra crashes on linux (segmentation fault) #29

Closed mathildelpx closed 4 years ago

mathildelpx commented 4 years ago

Hi,

I manually installed stytra in a conda environment where I had previously installed all the packages required (including git which for some reason was not installed). I am using Python 3.7, and conda 4.7.12. stytra-0.8.26 was succesfully installed with all the requirements satisfied. When I'm running python -m stytra.examples.looming_exp I get a window opening and closing immediately. An error message shows up: Segmentation fault (core dumped)

I also tried to run other function: python -m stytra.offline.track_video The window asking to select the file pops up, I can select it and click on Start Stytra. But then again, a window tries to open up but is closed immediately and the same error message Segmentation fault appears.

Do you have any idea what's wrong ?

Thanks for your answer ! (and thanks a lot for this amazing project!)

vilim commented 4 years ago

Sorry to hear about the issues. We noticed that sometimes OpenGL display in Qt crashes on Linux, disabling it might help: by either creating a Stytra object with the argument Stytra(display=dict(gl=False)) or creating a stytra_setup_config.json with the same parameters, as described here We are investigating where the problem with OpenGL exactly is.

If this doesn't fix your issue please let us know more about your configuration (distribution of Linux, results of conda info and conda list commnads)

vilim commented 4 years ago

Closing issue due to inactivity. We put a note in the documentation mentioning this as a known issue.