Howdy, Stranger!

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

Supported by

[solved] the runtime for android quit automatically

edited November 2013 in OpenSesame

I have met some problems when using the opensesame runtime for android. I designed my tasks with opensesame on the computer with droid back-end, and saved them with the type of OpenSesame file (*.opensesame). When I inserted it into my android phone (whether HTCt328d or Sumsang Galaxy Gio(S5660)) in the sdcard, I can open them and type in my subject number as well as location for logfile, but after that it quit automatically. Worsely, when I use another phone (ZTE V967s), the tasks could not be read from the sdcard. When I open opensesame runtime and press enter, it just quit. So what is the problem?

Comments

  • edited 10:10PM

    Could you please post the debug information from /sdcard/opensesame-debug.txt? See also:

    Cheers,
    Sebastiaan

  • edited November 2013

    the contest of the bug file is as follows:

    Launching resources/android/menu.opensesame
    openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 512
    experiment.init_log(): using 'defaultlog.txt' as logfile (utf-8)
    experiment.run(): experiment started at Fri Nov 15 23:34:28 2013
    experiment.run(): experiment finished at Fri Nov 15 23:34:41 2013
    Launching examples/gaze_cuing_android.opensesame.tar.gz
    openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 512
    experiment.init_log(): using 'subject-0.csv' as logfile (utf-8)
    experiment.run(): experiment started at Fri Nov 15 23:34:44 2013
    Traceback (most recent call last):
      File "opensesame/main.py", line 100, in main
      File "opensesame/libopensesame/experiment.py", line 287, in run
      File "opensesame/libopensesame/sequence.py", line 55, in run
      File "opensesame/libopensesame/loop.py", line 147, in run
      File "opensesame/libopensesame/sequence.py", line 55, in run
      File "opensesame/libopensesame/loop.py", line 147, in run
      File "opensesame/libopensesame/sequence.py", line 55, in run
      File "opensesame/libopensesame/mouse_response.py", line 80, in run
      File "opensesame/openexp/_mouse/legacy.py", line 316, in flush
    response_error: The escape key was pressed.
    
  • edited 10:10PM

    A right, I see. The debug info indicates that you pressed the back button, which is mapped onto the escape key and immediately aborts your experiment. So the debug info doesn't indicate any unexpected errors.

    If you are sure that the experiment also crashes when you don't press the back button, could you please post the experimental script, for example to pastebin?

    Cheers,
    Sebastiaan

  • edited 10:10PM

    I have posted the script onto pastebin, you could see it by visiting https://pastebin.com/HFNeMMQP.
    Please help me resolve this bug. Thank you.

  • edited 10:10PM

    I really cannot think of another explanation than that you are actually pressing the back button, and the experiment ends as a result of this. Note that the back button can be physical, i.e. a real button on the side of your phone, or emulated, i.e. a 'soft' button at the bottom of the screen. Pressing either one will abort the experiment in the way that you experience.

    Are you sure that this is not it? If not, when does this problem occur? Does it consistently occur at the same moment during the experiment, at (seemingly) random moments, or something else altogether?

    Cheers,
    Sebastiaan

  • edited 10:10PM

    It occured at the same time as I have described. But now I have resolved this problem. It is probably because of the bug of the program. For example, when I saved the program in the type of .opensesame, it failed to include the files in filepool. When it could not access the files, it quit automatically. Thank you.

Sign In or Register to comment.