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.examples.looming_exp crashes after ~3 seconds #24

Closed tbenst closed 4 years ago

tbenst commented 4 years ago

I am able to get the GUI running, and when I click play the experiment starts, but the program crashes quickly. Sometimes immediately, othertimes I see a white flash on screen that disappears like a moving bar, and the program crashes a second later. I installed using pip install stytra on python-3.7.4 installed with Anaconda on CentOS 8 (gnome, wayland).

$ python -m stytra.examples.looming_exp
PyAv not installed, writing videos in formats other than H5 not possible.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Traceback (most recent call last):
  File "/home/tyler/code/stytra/stytra/stimulation/__init__.py", line 191, in timestep
    if self.i_current_stimulus >= len(self.stimuli) - 1:
TypeError: '>=' not supported between instances of 'NoneType' and 'int'
Aborted (core dumped)
$ uname -r
4.18.0-80.11.2.el8_0.x86_64

edit: Same behavior with stytra-0.8.24 and latest master

vigji commented 4 years ago

Does it happen with other examples as well?

vigji commented 4 years ago

We should have solved the bug - if was a minor consequence of a recent cleanup not catched by the current tests. Should be running now from stytra-0.8.25 and from latest master. Let me know if I can close the issue.

tbenst commented 4 years ago

resolved, thx for quick fix!