Howdy, Stranger!

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

Supported by

[open] Experiment interrupted on Android tablet

edited September 2015 in OpenSesame

Hi!

Some versions of my experiment work fine, while some are suddenly terminated right before the last trials. I get the following text in the debug file:

Traceback (most recent call last):
  File "opensesame/main.py", line 116, in main
  File "opensesame/libopensesame/experiment.py", line 347, in run
  File "opensesame/libopensesame/sequence.py", line 47, in run
  File "opensesame/libopensesame/loop.py", line 140, in run
  File "opensesame/libopensesame/sequence.py", line 47, in run
  File "opensesame/libopensesame/inline_script.py", line 176, in run
osexception: 
Error while executing inline script

phase: run
item: ______inline_script
line: 66
exception message: Failed to load sample in sampler "___Trost": [Errno 24] Too many open files: '/data/data/nl.cogsci.opensesame/files/tmpI6NUFQ.opensesame_pool/Trost.wav'
exception type: osexception

For one of the experiments it helped to clear all other experiments from the tab, but for others this didn't solve the problem. Any suggestions on what I could do to fix this?

Cheers, Heidi

Comments

  • edited 11:50PM

    Hi Heidi,

    It looks like you're playing back sound files through an inline_script. Is that correct? I'm guessing that you just keep opening new files, without closing the old ones, and that this eventually results in the 'too many open files' error. But I cannot say for sure without more details. Could you provide some more info, including the actual script?

    Cheers,
    Sebastiaan

  • edited September 2015

    Hi Sebastiaan!

    I'm playing the sound files through the loop and sequence items, and when the initial response is wrong, the same task is repeated with the following inline script:

    if self.get('correct') == 0:
        exp.items["Parent1Parent2_Seq"].prepare()
        exp.items["Parent1Parent2_Seq"].run()
    

    So then it might be that the reason the experiment sometimes does work properly actually has to do with how many errors a participant has made (if only the files opened through the inline script are left open)? Do you need further information about the experiment? We discussed the inline script here in case it helps: http://forum.cogsci.nl/index.php?p=/discussion/1509/solved-random-presentation-of-pictures-and-words-in-an-experiment#Item_6

    Cheers,

    Heidi

  • edited 11:50PM

    Hi Heidi,

    So you play the sound with a regular sampler item, but use an inline_script to repeat the whole sequence when an error occurs. Right? If so, that seems like a valid approach.

    So then it might be that the reason the experiment sometimes does work properly actually has to do with how many errors a participant has made (if only the files opened through the inline script are left open)?

    I agree; something like that seems to be going on.

    Do you need further information about the experiment?

    This sounds like a bug in pygame or, on Android, pgs4a (pygame subset for Android), which is what OpenSesame uses for sound playback. To get to the bottom of this, it would be useful if you could do some tests to find out:

    • Whether you can indeed reliably trigger the error by making lots of mistakes.
    • If so, whether this happens only on Android, or also on a normal computer.

    Cheers,
    Sebastiaan

  • edited 11:50PM

    Hi!

    Yes exactly so, I play the sound with a regular sampler item, but use an inline_script to repeat the whole sequence when an error occurs.

    On a normal PC there are no problems at all, and I can finish the experiment with a very large number of errors and it has never crashed. I did the following tests on the tab:

    1. When I answered all items correctly, the experiment finished properly.

    2. When I made lots of mistakes during the first 4 loops, the experiment crashed after I had answered the first item of the last loop correctly. So it seems that for some reason, regardless the amount of errors, the experiment never crashes before the last loop. Also, I got the same error information in the debug file, stating that there are too many open files to open the next sampler item (even if it wasn't run by the inline script).

    3. When I made no mistakes during the first 4 loops, the experiment crashed after 13 errors in the last loop (which is much less than the combined number of errors I made in the first loops in test 2 above). I'm wondering if there is something wrong with specifically the last loop..

    Here are versions of the experiment for PC and tab, the only difference between these two ought to be the response items (keyboard vs touch):

    https://drive.google.com/folderview?id=0B9oPDmV1spDvfkpvZnhRa0JkYXRFeXdoRUQ5VEE2UlVPc1pCd0ZzWi1nVFhsRVVFT3F3ejA&usp=sharing

    Cheers,

    Heidi

  • edited 11:50PM

    And one more thing, the touch version works with mouseclicks on PC without any problems!

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