Howdy, Stranger!

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

Supported by

Experiment keeps freezing

Hello,

I have a problem with the attached script. It plays short sounds and shows letters, nothing complicated. However, it keeps freezing more or less halfway through. I've already tried breaking up the experiment loops into smaller units rather than repeating them 3x each, but this doesn't help either. When I use two experimental loops with no repetitions, it works fine.

Does anyone have an idea what may be causing this? I'm running the script on OS 4.0 using a Windows desktop PC.


Thank you very much in advance,

Antje


Comments

  • Hello @Antje,

    I suspect that this may be caused by some memory/cache limits; and that they may vary depending on the backend. When I tested your experiment, it did indeed crash a few trials after the break with xpyriment, and a bit earlier with legacy. With the PsychoPy backend, however, it ran to the end.

    Try to switch the backend of your experiment to PsychoPy and see if this solution works for you as well?

    Claire

  • Dear @cvanbuck ,

    Thank you for your reply. Indeed, the experiment runs through using PsychoPy, but the audio is completely messed up. It sounds like a chopped-off robot is speaking. In the end, I will use OS 3.3 to run the experiment. There are no problems in this version.

    Thank you very much, again!

    Antje

  • Dear @Antje,

    during final test-runs of an experiment a colleague of mine had problems with the experiment freezing. After some extensive testing she found out that the repetitive definition of the same Keyboard-object causes this freeze. In her case defining the keyboard object and getting the response was done using Python.

    So she was able to separate defining the keypress object (what keys are allowed and how long should be waited) and sampling the actual keypresses while being in a loop. While she was preparing the experiment with fewer repetitions there was no problem, but somewhere after ~ 125+ repetitions of the same keypress the problem occurs. If the Keyboard object is defined only once before the loops everything works fine, even with testing with up to 4.000 cycles.

    The problem occurs on a MacBook (Apple silicon), multiple Windows 11 (standard installer) machines, Ubuntu 22.04 LTS and 24.04 LTS (using a recent anaconda install, multiple machines). One Windows 11 computer did not have that issue. Depending on the operating system the experiment either stalls indefinitely (for hours) or a key press is accepted after a minute or two and the experiment continues.

    Preparing a stripped-down version of the experiment with one version that freezes and another that does not, is still a to-do, but in case someone has the same issue I am posting her findings in advance.

    Sven

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