Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

python crashing - runtime error

Hello all,

First I want to say thanks for all your hard work making Opensesame such a great and accessible program. It is much appreciated by many members of my lab here in Adelaide.

I am having an error with a couple of experiments which I had been successfully running for a while now. I have tried two scripts, which both previously worked. The error seems associated with switching to a new PC. I am unable to run the experiment at all, as it crashes immediately.

The error that I am getting comes up in a Microsoft Visual C++ Runtime Library popup window and says

    Program: C:\Program Files (x86)\OpenSesame\python.exe

    This application has requested the Runtime to terminate in an unusual way. Please contact the application's         support team for more information. 

Another popup then appears saying that python.exe has stopped working. The OpenSesame debug window shows the following...

    Starting experiment as ExperimentProcess-8
    Expyriment 0.8.1.opensesame2 (Python 2.7.12) 

    Python seems to have crashed. This should not happen. If Python crashes often, please report it on the          OpenSesame forum.

    time: Sat Feb 03 01:49:14 2018

As I mentioned, the error seems isolated to the new PC that I have been given by my IT department to use as stimulus computer in my EEG setup. It is running Windows 7 64 bit version, clean install done today. I have tried Opensesame version 3.1.2, 3.1.6, 3.1.9 and even the new 3.2.0. The program was running fine on a number of other PCs that were running OpenSesame 3.1.6, and my Mac which was used for programming them initially.

Some further details which may help are that the error is occurring using the xpyriment backend. I have been using xpyriment without a problem for a few weeks and would like to continue to do so as the EEG trigger timing has proven the most reliable (psychopy was having intermittent timing glitches during previous tests). For troubleshooting today though I have also tried using the Psychopy backend which also crashes immediately before even loading the instruction page, and I have tried the legacy backend which actually does work and runs ok, but as this is an EEG experiment I don't really want to use it (per the forum and reference pages describing how legacy does not take monitor refresh into account when time stamping).

The psychopy crash gives the following debug info


File "c:\program files (x86)\opensesame\lib\site-packages\pyglet-1.2.4-py2.7.egg\pyglet\", line 101, in

ImportError: cannot import name gl_info

I have attached one of my experiment files if that helps. I don't know if you need any other information but please ask if you do.

Many thanks,



  • Hi Daniel,

    This looks like an issue with OpenGL, which is the software library that both Expyriment and PsychoPy use for display presentation. One reason for this might be a problem or incompatibility with the video drivers on your new system—but honestly that's just a guess.

    @fladd do you have any idea?


    There's much bigger issues in the world, I know. But I first have to take care of the world I know.

  • Thanks for your help Sebastiaan.

    Yes it is the graphics card causing the problem. I tried all the drivers for it that I could find but none of them worked... it just doesn't seem compatible with OpenGL. I switched it out for a replacement and now it is working fine.



  • Mmh, I have never seen this before. Very strange. What graphics card was that?
    Might also be helpful to get the output of expyriment.misc.get_system_info() for further inspection.

    Florian Krause (Developer)

Sign In or Register to comment.