Howdy, Stranger!

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

Supported by

Python seems to have crashed on OpenSesame 3.2.1, Windows 10

I've seen this error popping up already in the forum, but I think this is a very specific case with a vanilla install and a clear previously working case (no plugin installed) and a failing subsequent case (after installing any plugin).

Also, it doesn't matter which backend is used.

Reference: Same issue is found on the github repo of the mousetrap plugin.


On a fresh install, copying over the plugin into C:\Progam Files(x86)\OpenSesame\share\opensesame_plugins results in a non-functioning OpenSesame.
Running any experiment (eg. the default.osexp "Hello world" experiment) crashes with the following error message.

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

item-stack:
time: Thu Feb 22 13:53:04 2018

It doesn't matter if the plugin is
* just copied over
* installed inside OpenSesame using

import pip
pip.main(['install', 'https://github.com/PascalKieslich/mousetrap-os/archive/master.zip'])
  • installed in the command line, using the OpenSesame python.exe
    python.exe -m pip install https://github.com/PascalKieslich/mousetrap-os/archive/master.zip

Strange enough, this also happens if the example-plugin is installed
https://github.com/smathot/opensesame-plugin-example.

Comments

  • Apparently the python 3 installer seems to make a better job:


    Results when running with OpenSesame python 3 version:

    examples/mousetrap_form.osexp crashes after the instructions form text display with both PyGame and expyriment backends:

    Starting experiment as ExperimentProcess-2
    openexp._canvas.legacy.init_display(): enabling hardware surface
    openexp._canvas.legacy.init_display(): enabling double buffering
    openexp._canvas.legacy.init_display(): video mode ok
    openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 1024
    openexp.sampler._legacy.init_sound(): mixer already initialized, closing
    experiment.run(): experiment started at Thu Feb 22 14:49:53 2018
    experiment.run(): disabling garbage collection
    experiment.end(): enabling garbage collection

    cols, rows, and margins should be numeric values separated by a semi-colon

    item-stack: experiment[run].stimuli[run].trial[prepare].task[prepare]

    examples/mousetrap_form_python.osexp works fine through the 4 samples.

  • Thanks for pointing this out. I will look into this. Just to clarify: The installation of the mousetrap plugin and the mousetrap_form example experiment works fine if you use OpenSesame 3.2.1 with Python 2?

  • Hi guys,

    This might also be related to the issue I'm describing here:

    Cheers!
    Sebastiaan

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

  • Thanks, @sebastiaan , for pointing this out.

    The issue in the Python 2 version seems to be covered in the discussion for which you shared the link.

    We are currently continuing the discussion regarding the specific problem of the mousetrap plugin with OpenSesame in the Python 3 version on GitHub: https://github.com/PascalKieslich/mousetrap-os/issues/4

    Besides, there seems to be a general problem with installing plugins from within using OpenSesame using pip in the Python 3 version which is probably another issue.

    Best,

    Pascal

  • Ok, the number of test cases has become a little complicated.
    For this reason I created the following test matrix.

    Please not that "no plugin installed" means a vanilla installation.
    Installing a plugin and removing it again does not count as "no plugin installed", as the behavior stays the same as if a plugin was installed.

    Also, only the "installer" versions of OpenSesame were tested. The portable zip was not considered.

    Python version 2 2 2 3 3 3
    runner multiprocess inprocess external multiprocess inprocess external
    no plugin installed - default.osexp + + + + + (*) - (**)
    plugin installed - default.osexp - + + + + - (**)
    plugin installed - mousetrap-example - + + - (***) - (***) - (**)
    plugin installed - mousetrap-python-example - + + + + - (**)

    + Works as intended
    - Crashes

    (*) OpenSesame crashes sometimes completely

    (**)
    item-stack: ``
    time: Fri Feb 23 14:41:53 2018
    exception type: FileNotFoundError
    exception message: [WinError 2] Das System kann die angegebene Datei nicht finden

    (***)

    Crash after "instructions" from_text_dislpay

    openexp._canvas.legacy.init_display(): enabling hardware surface
    openexp._canvas.legacy.init_display(): enabling double buffering
    openexp._canvas.legacy.init_display(): video mode ok
    openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 1024
    openexp.sampler._legacy.init_sound(): mixer already initialized, closing
    experiment.run(): experiment started at Fri Feb 23 14:49:33 2018
    experiment.run(): disabling garbage collection
    experiment.end(): enabling garbage collection

    cols, rows, and margins should be numeric values separated by a semi-colon

    item-stack: experiment[run].stimuli[run].trial[prepare].task[prepare]
    time: Fri Feb 23 14:49:35 2018

  • edited February 23

    Thanks for the detailed summary. I have made a few changes in the mousetrap plugin to ensure that the items should now also run with Python 3. This should basically resolve all problems marked with *** in your table. Could you try it out using the latest version on GitHub?

  • Indeed your changes made the (***) cases work now!

  • OK, that's good :) .

    So I guess that the * issue is a general issues in OpenSesame that probably is related to the other discussion in http://forum.cogsci.nl/index.php?p=/discussion/3829/workaround-for-crashes-when-running-experiments-in-opensesame-3-2-windows

    Besides, the ** also seems to be another general issue with OpenSesame in Python 3 when using the external runner. I can also replicate this under Windows 7. Maybe you (@Eru_Iluvatar) could open a new forum post for this so @sebastiaan can have a look at it?

  • edited February 23

    @Pascal Yes I will open another issue for **

    Edit: Issue is here:
    https://github.com/smathot/OpenSesame/issues/586

  • Oh thanks for creating this topic. Is Phython 2 and 3 working good in Windows 10? Hope it does. Looking for an answer. Go2top.

Sign In or Register to comment.