Howdy, Stranger!

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

Supported by

Memory overloading

Hi everyone,

I'm experiencing Opensesame crashes which I think are related to memory overload.
The experiment features heavy use of videos, which I assume are the culprit. Unfortunately, these are essential to the experiment.

I've done a bit of troubleshooting, and there are a few things that I've found that seem counterintuitive to me, and on which I hope some more experienced users can help shed some light.

The file pool is rather large (33,6 MB), as it includes the above-mentioned videos. However, these videos have been downsized from an earlier version of 251 MB, and this has made no difference in the point at which the experiment crashes. In either case, the experiment crashes after around 18 trials, regardless of the size of the video stimuli.

Looking at memory usage, this seems to increase steadily from the start of the experiment until it crashes (see image). I've tried to remedy this constant increase in memory usage by diligently collecting garbage at the start of every trial with the gc.collect() command. This seems to have no effect on the steady increase of used memory, nor on the amount of trials before the system crashes. (I may, of course, just be using this function incorrectly).

A final note: the computer on which I am designing/running the experiment seems to at least be part of the problem. I am using a Dell latitude 3380 running Windows 10 (64bit version), and testing the experiment on a colleagues thinkpad results in smooth running and no crashes at all. I do hope that there is a way to make the experiment itself run better/more efficient, so that it can be used to test on more hardware platforms.

I've uploaded the experiment and the stimuli used in the following dropbox folder, in case anyone wants to have a look.
https://www.dropbox.com/sh/zbctqc7b5rezko3/AABA1pscS6qS851TTl9j-fOCa?dl=0

Many thanks for any suggestions on how to address this problem in advance.

Regards,

Elef

Comments

  • Update: it seems to be very dependent on the backend. I was using PsychoPy before, but legacy seems to run really smooth with no problems. Using the legacy backend instead seems a viable solution should all else fail

  • Hi Elef,

    I hope you're doing well in Genoa! (I'm assuming you're there now?)

    This crash is due to a memory error in PyGlet, which is a library used by PsychoPy. The error is not due to memory filling up per se, although it's possible that this increases the risk of the error occurring. As far as I know, the exact cause of the error is unknown, and there's no solution. (It's certainly not something that you're doing wrong!)

    One thing that you could try is getting the latest version of OpenSesame (if you don't have that already) and/ or updating PyGlet and PyOpenGL through the Python package manager in OpenSesame.

    And, as you already noticed, switching to the legacy backend will make the problem disappear, because legacy doesn't use PyGlet.

    Cheers,
    Sebastiaan

  • Hey Sebastiaan!

    Thanks a lot! I guess I was looking for the problem in a completely unrelated direction, this definitely saves me a lot of time.
    And thank you for the best wishes, things are good at the istituto italiano di tecnologia. OpenSesame is quite popular in our lab (see this publication from earlier this month https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5807394/). We're looking forward to using it in conjunction with embodied robots soon.

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