File does not exist in the web version while it does in the offline one
Hi everyone,
I'm trying to convert my experiment to an online one. While the experiment works with no errors in the local environment, it fails when I try to convert to an OSWEB version.
The console gives this error:
tmpjp5ci2bz.html:226 osweb v1.4.12 tmpjp5ci2bz.html:102 PixiJS 5.2.4 - ✰ WebGL 2 ✰ http://www.pixijs.com/ ♥♥♥ tmpjp5ci2bz.html:149 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently measureFont @ tmpjp5ci2bz.html:149 tmpjp5ci2bz.html:1 Access to image at 'file:///private/var/folders/_9/t2hbf85n5vn843bgg0w7y1s40000gn/T/img/opensesame.png' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome-untrusted, https, edge. opensesame.png:1 Failed to load resource: net::ERR_FAILED tmpjp5ci2bz.html:102 Uncaught (in promise) Event tmpjp5ci2bz.html:226 OSWeb has stopped running due to a fatal error. addError @ tmpjp5ci2bz.html:226 tmpjp5ci2bz.html:226 item-stack: experiment[prepare].Information[prepare].PitchDescription[prepare].new_loop[prepare].IntroductionandTrial[prepare].practice_loop[prepare].EndofPractice[prepare].trial_1[prepare].Trial2[prepare].trial_2_loop[prepare].experiment[run].Information[run].PitchDescription[run].new_loop[run].new_sequence_1[prepare].new_sequence_1[run].new_loop_1[run].new_sequence_2[prepare].new_sketchpad[prepare].new_sampler[prepare] tmpjp5ci2bz.html:226 Uncaught "[pitch].ogg" does not exist in the file pool DevTools failed to load source map: Could not load content for file:///private/var/folders/_9/t2hbf85n5vn843bgg0w7y1s40000gn/T/vendors~osweb.1.4.12.bundle.css.map: System error: net::ERR_FILE_NOT_FOUND
Thank you!
Comments
Hi @research_cat_10,
Hard to tell without seeing the program (could you upload it to this forum?). But from the last bit of the error message, it looks as if the task cannot load up a ogg file because it does not find it in the file pool. Might be a mapping problem, but without seeing the program, it's hard to tell. Have you check that OSweb's compatibility check does not alert of any problem? Are you running your task in a browser from OS, or from a server using JATOS?
Fabrice.
Hi,
I have uploaded the experiment. I'm running the task in the chrome/edge browser on macOS. It says compatibility failed but gives no information why it failed.
Thank you!
Hi @research_cat_10 ,
This was a bit of a tricky one, but the problem lies in the fact that you are using 'pitch' as a variable name, whereas 'pitch' already is a built-in variable for the
sampler
item. So if you simply re-name the variable to something else, like 'pitch_value' (in both theloop
and thesampler
item, of course), you should be fine. (The reason why this didn't give an issue on the desktop has something to do with the priority given to local vs global variables.)Make sure, by the way, to use only a single
logger
item throughout your experiment (i.e., use a linked copy of it).Cheers,
Lotje
Did you like my answer? Feel free to