Howdy, Stranger!

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

Supported by

Issues Running Experiment in OSWeb

Hello,

I am trying to adapt my experiment to run in OSWeb (it runs fine in OpenSesame). I believe all the components I have used are supported functions, but when I try to run in the browser, I get the following error: Uncaught TypeError: Cannot read property 'data' of undefined. There are quite a number of errors in the Console, but I do not know what they mean or how to fix them (see below). Any help would be greatly appreciated!

Thanks!

Lena

Comments

  • Hi @lvkremin (Lena),

    Are you trying to play mp3 files, if so, there currently is a problem with playing these, see https://github.com/smathot/osweb/issues/19. I suggest trying different audio formats (e.g. ogg or plain wav files) and see if it does work. You can always use a free tool like handbrake to convert audio files from one format to another.

    Best,

    Daniel

    Buy Me A Coffee

  • Hi Daniel,

    I'm using .wav files, so I'm guessing it may be another issue.

  • Alright, another thing that you often see is that the case of the file in the filepool doesn't match the case of the filename with which it is referred to. So for instance a file is called aSoundFile.wav and in the experiment (for instance in a file pool cell) someone refers to it as asoundfile.wav . On Windows, case is ignored and so it doesn't matter if you don't refer to files with their correct casing. Linux however (and I guess that is what your Jatos server is running on) is case-sensitive. So please make sure that the case of the filenames that you use in the OpenSesame experiment matches the case of the real files. Could you check this?

    Buy Me A Coffee

  • Sure. The case is the same across file names and where it's listed in the loop.

  • Then I am out of ideas. Could you post the experiment here?

    Buy Me A Coffee

  • Sure - here's just the practice phase of the experiment

  • What I immediately notice is that your sound files are not in OpenSesame's filepool, but outside of it in folders at the same location as that of the osexp file. If you want to make use of osweb you need to place all required files in OpenSesame's file pool, otherwise they are not uploaded.

    So the problem is indeed that osweb tries to load a file that is referenced but not present online. If you place all files in the file pool it should work.

    Buy Me A Coffee

  • Wow, amazing! That did in fact solve my issues - thank you so much! This was the first thing I've done in OpenSesame, so I was not aware of the function/importance of the file pool.

Sign In or Register to comment.