Howdy, Stranger!

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

Supported by

clock.time() returns zero

If you fill out the information below, we will be able to help you better. 😎 You can also consider asking SigmundAI.eu, our AI assistant with expert knowledge of OpenSesame.

OpenSesame version

4.0.37

Operating system

Win 11

If you are running an online experiment, also provide the browser version.

Backend legacy

In a OS inline script we use clock.time() to keep track of the actual time during the experiment.

We have a block loop with a nested trial loop inside. For the first itteration of the block loop, all works well. In the second itteration of the block loop the clock.time() function returns a zero after several itteration of the trial loop. For that trial, all other timers (e.g. for a keyboard response item or a sketchpad to display a stimulus) report a zero value in the log file as well. The program "halts" on the keyboard response collection. It will only continue after we press a button. In other words the timeout for the keyboard response fails as well.

Once we force the program to continue by pressing a button, the clock.time() function works as expected for many subsequent trials. It does not get reinitialized. All trials in the current block itteration finish. However, in the next block iteration the problem occures again.

When we run the experiment again, the same issue arises at the same trial(s).

Changing backend did not help. tried to run the program on different laptops. Switching to a mac instead of windows did not help either.

It is possible to share the code via github.

Any clue, suggestion on what is happening?

Thanks for thinking along,

Remco Renken

Comments

  • Hi @RemcoRenken

    That’s indeed a strange issue. So, just to clarify: the zeros appear only for one specific line in your block table, always the same one? If you remove that line, does the experiment run without problems? Or is it more that it always happens at the same trial number?

    It would definitely help if you could share your experiment file so I can take a closer look.

    Claire

  • Hi @Claire

    Removing a specific line inside the csv defining the trials did not help. The issue occurs at the same trial number. NB switching csv files alltogether (e.g. making the experiment longer or shorter) does change the trial number at which the issue occurs.

    We've attached the OS file, as well as a logfile. Inside the logfile the issue can be found in line: 253 in the quickrun.csv file

    Thank you for thinking along.

    Remco


  • Hi @RemcoRenken

    Thanks again for sharing your files.

    I tried running your experiment and for me, it consistently froze at trial 253. Each time, it would halt at the same point and I had to abort the experiment.

    However, when I switched the backend to PsychoPy, the issue disappeared. The experiment then ran smoothly without freezing or returning zero values for the timers. So I'm not sure what's happening, possibly some compatibility issues between legacy and the clock.time() function...

    Perhaps you could try that too (switching to PsychoPy as the backend), and see if that solves the issue on your end as well?

    Claire

  • Thank you,

    I have made some further updates to the program, as well as switching the backend to PsychoPy. Now the issue seems to be solved. Given your comment, it seems that switching the backend was paramount.

    Thank you once more.

    Remco

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