In a nutshell, first make sure that the experiment runs on the desktop. And also make sure that you're running the latest version of OSWeb (currently 1.3.7). Then, if the experiment still crashes, you can post the error message here, taken from the browser console as described under the link above.
Right, I see. You're using Python-style conditional statements and these are not supported by OSWeb. Fortunately, you should be able to rewrite them to regular OpenSesame-style conditional statements. For example (Python style):
Comments
Hi Masoud,
This error by itself is not informative. But you can find information about how to debug OSWeb experiments here:
In a nutshell, first make sure that the experiment runs on the desktop. And also make sure that you're running the latest version of OSWeb (currently 1.3.7). Then, if the experiment still crashes, you can post the error message here, taken from the browser console as described under the link above.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Dear Sebastian
Thanks for the reply.
The program runs well in the OS but not on the browser.
Please have a look at a copy of the 7 error messages:
tmpixyack.html:35 OSWeb has stopped running due to a fatal error.
addError @ tmpixyack.html:35
tmpixyack.html:35 Script parsing error: Unexpected token
addError @ tmpixyack.html:35
tmpixyack.html:35 OSWeb has stopped running due to a fatal error.
addError @ tmpixyack.html:35
tmpixyack.html:35 Script parsing error: Unexpected token
addError @ tmpixyack.html:35
tmpixyack.html:35 OSWeb has stopped running due to a fatal error.
addError @ tmpixyack.html:35
tmpixyack.html:35 Script parsing error: Unexpected token
addError @ tmpixyack.html:35
tmpixyack.html:35 Uncaught TypeError: Cannot read property 'body' of null
at PythonParser._run_statement (tmpixyack.html:35)
at PythonWorkspace._eval (tmpixyack.html:35)
at Sequence.run (tmpixyack.html:35)
at KeyboardResponse._complete (tmpixyack.html:35)
at KeyboardResponse._complete (tmpixyack.html:35)
at Events.proceed (tmpixyack.html:35)
at Events._time (tmpixyack.html:35)
at Psa.emit (tmpixyack.html:111)
at Qsa.update (tmpixyack.html:111)
at Qsa._tick (tmpixyack.html:111)
Can you attach the experiment here?
Check out SigmundAI.eu for our OpenSesame AI assistant!
Yes
Hi Masoud,
Right, I see. You're using Python-style conditional statements and these are not supported by OSWeb. Fortunately, you should be able to rewrite them to regular OpenSesame-style conditional statements. For example (Python style):
Would become (OpenSesame style):
Hope that's useful!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Dear Sebastiann
Thousands of thanks,
Masoud 🌹