Howdy, Stranger!

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

Supported by

opensesame 3.1.6 crashes in full screen

I have installed the latest version of OpenSesame on a windows 7 computer. Everything appears fine, except when I run the experiment in full screen (big green play button), the experiment crashes and I get the following error:

Unexpected error

item-stack:
exception message: exception: access violation reading 0x1C752950
time: Mon May 29 17:23:07 2017
exception type: WindowsError

Traceback:
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libqtopensesame\misc\process.py", line 140, in run
exp.run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 399, in run
self.init_display()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 749, in init_display
canvas.init_display(self)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp\canvas.py", line 65, in init_display
cls.init_display(experiment)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp_canvas\psycho.py", line 380, in init_display
winType=u'pyglet', allowStencil=True)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\window.py", line 330, in init
self._setupGL()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\window.py", line 1412, in _setupGL
self._setupPyglet()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\window.py", line 1273, in _setupPyglet
style=style)
File "_build/bdist.macosx-10.5-x86_64/egg/pyglet/window/win32/init.py", line 131, in init
super(Win32Window, self).init(*args, **kwargs)
File "_build/bdist.macosx-10.5-x86_64/egg/pyglet/window/__init__.py", line 559, in __init__
self._create()
File "_build/bdist.macosx-10.5-x86_64/egg/pyglet/window/win32/__init__.py", line 268, in _create
self.switch_to()
File "_build/bdist.macosx-10.5-x86_64/egg/pyglet/window/win32/__init__.py", line 307, in switch_to
self.context.set_current()
File "_build/bdist.macosx-10.5-x86_64/egg/pyglet/gl/win32.py", line 214, in set_current
wgl.wglMakeCurrent(self.canvas.hdc, self._context)
WindowsError: exception: access violation reading 0x1C752950

No error occurs when I run the experiment via the other play buttons.

Comments

  • Hi Dirk,

    This is an error that occasionally comes up, unpredictably, and without any obvious cause or solution. As far as I can tell, it's a memory bug in pyglet, a library used by psychopy. Is it an option to switch to another backend?

    Cheers,
    Sebastiaan

  • Hi Sebastian,

    I prefer to keep the experiment in psychopy. Is it an option to install an older version of OpenSesame or would I then keep running into the same problem?

    Maybe related to this psychopy error? In this experiment I am showing two gabors on each trial. Surprisingly enough every time I run the experiment on this computer (where it crashes) the first trial there is only one Gabor shown and then two on subsequent trials. The experiment runs fine on all other computers so I am convinced it is not a code problem. Not sure whether this is helpful, but you never know :)

    Cheers,

    Dirk

  • Hi Dirk,

    Try one of the portable versions. You don't have to install anything. Just download the zip, unzip and see whether another versions works on your computer.

    Edaurd

    Buy Me A Coffee

  • Maybe related to this psychopy error? In this experiment I am showing two gabors on each trial. Surprisingly enough every time I run the experiment on this computer (where it crashes) the first trial there is only one Gabor shown and then two on subsequent trials.

    That could be related, yes. Memory may get corrupted first, and then after a while this triggers an error. Or it might not be related—difficult to say.

    You can also see what happens if you upgrade several relevant packages. You can do this by running the following commands in the debug window:

    import pip
    pip.main(['install', 'pyopengl', '--upgrade'])
    pip.main(['install', 'pyglet', '--upgrade'])
    pip.main(['install', 'psychopy', '--upgrade'])
    

    It's possible that this memory error has been fixed by now in one of these packages.

    See also:

  • Hey Sebastian,

    I updated pyopengl and pyglet but these packages were already up to data. However, when installing psychopy I get the following error:

    pip.main(['install','pyschopy','--upgrade'])
    Collecting pyschopy
    Could not find a version that satisfies the requirement pyschopy (from versions: )
    No matching distribution found for pyschopy
    You are using pip version 8.1.2, however version 9.0.1 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.

    But for now I am running the experiment via the little green play button (which also starts in fullscreen) and then everything appears to be fine.

    Cheers,

    Dirk

Sign In or Register to comment.