Howdy, Stranger!

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

Supported by

crash opensesame

Hello everyone,
I was using opensesame2.9 and it worked quite well (but so slow). I installed the latest version yesterday and have made all the changes so my script could run. I only use the GUI to make the script and i'm not good enough yet to write something clean so I'm convinced that there is room for a lot of improvement.
My problem is that opensesame crashed during a test experiment. I use the xperiment backend as I'm using the parallel port trigger plugins. I was in fullscreen.
My study is running now in windowed mode to see if this could help. I will then try with the psycho backend if it still crash.
Thanks for your advice,
Johan

Here is the debug report:
Unexpected error

item-stack: experiment[run].loop21_od1[run].trialpart21[prepare].images_stim[prepare]
exception type: IndexError
exception message: tuple index out of range
time: Wed Jun 20 15:58:14 2018

Traceback:
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libqtopensesame\misc\process.py", line 154, in run
exp.run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 449, in run
self.items.execute(self.var.start)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 103, in execute
self.run(name)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 51, in run
self.experiment.items.run(_item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\loop.py", line 341, in run
self.experiment.items.execute(self._item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 102, in execute
self.prepare(name)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 142, in prepare
self[name].prepare()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 124, in prepare
self.experiment.items.prepare(_item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 142, in prepare
self[name].prepare()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sketchpad.py", line 146, in prepare
temp_name, element.element_name
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp_canvas\canvas.py", line 349, in exit
self.prepare()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp_canvas\canvas.py", line 770, in prepare
element.prepare()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp_canvas_image\psycho.py", line 33, in prepare
image=safe_decode(self.fname)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\image.py", line 97, in init
self.setImage(image, log=False)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\image.py", line 289, in setImage
setAttribute(self, 'image', value, log)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\tools\attributetools.py", line 137, in setAttribute
setattr(self, attrib, value)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\tools\attributetools.py", line 27, in set
newValue = self.func(obj, value)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\image.py", line 276, in image
forcePOW2=False)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\basevisual.py", line 969, in _createTexture
data.shape[1], data.shape[0], 0,
IndexError: tuple index out of range

Comments

  • So, I was running with psycho in fact. I tried with windowed mode and it crashed saying python has crashed.
    I tried with expyriment and it seems to work, even in full screen. It's slower to lauch though. And very strange: I use tightVNC to look at the screen of the study when running. If I use expyriment I can't see the succession of screen. Only the first one...
    It should work for now but this is very strange

    Johan

  • Hello everyone,
    Nobody has got advice to give me ?
    Expyriment is acting weird. The succession of my stimulus dies along the study...at the end of the study nothing hapened in the good way. So it is not a solution for me anymore.
    I will try with Legacy today or go back to opensesame2.9 so I can run my study next week.
    Have you ever heard of problem like that on windows7 ?
    Johan

  • Hi Johan,

    Can you upload your experiment together with a description of what it is that you want it to do? Then, I'll have a look on whether I can see what the problem is. And once your at it, can you also post the version of your libraries, in particular psychopy and expyriment ( You can get it from Tools-->System information)?

    Thanks,
    Eduard

    Buy Me A Coffee

  • Hi Eduard,
    The script works enough with Legacy backend...
    I join the files you asked.
    My script runs a study with 2 blocks of 4 parts. Each part is exactly the same except for the order of the stimulus S2 and the code of the trigger.

    This is a go/no go task
    In each part I asked for an ISI with a non variable duration. I have a cross on screen with this duration. then I have a sound S1, a fixed time fixation cross and then a colored dot red or green on the screen.
    According to the color, the participant push a buton or not.

    Do you need more info?

    Johan

  • Does the error occur right in the beginning of the script, or only a certain times in the experiment? I'll have a look during the weekend.

    Buy Me A Coffee

  • With psycho backend, it is totally unpredictable. it just crash sometimes
    With Expryriment, it is never the same part which is badly timed. It seems to happened more toward the end of the script so I would look for a memory problem.
    With legacy it seems to work ok...

    thank you,
    Johan

  • Hi Johan,

    I'm sorry, but I can't open your experiment because of the parallel port init item. If you could remove it and upload it again, I could give it another try. Once at it, it'd be helpful if you could simplify the experiment as much as possible while still preserving the error. Although, there is a fair chance that the problem only arises because of the complexity and/or the parallel port part. At least the error that you posted above suggests that something broke that is not supposed to break and that the problem is not just a simple coding error, or something like that.

    With legacy it seems to work ok...

    Would that be an option for you? Using legacy ?

    Other than that, there is not much I can do, I'm afraid. Sorry.

    Eduard

    Buy Me A Coffee

  • Hi Eduard,
    The error is never timed and labelled in a same way so I don't want to reduce the script. If I remove the parralel port , you will be able to run but it will not be the same study.
    I will work this week with legacy backend even if the timing are not so precise (says opensesame help page). Then I will do testing with the script if I have the time.
    Thanks for you help.
    johan

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