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

  • 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 2018

    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 2018

    @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.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games