Hi there,
I’m piloting a language experiment on Pavlovia and at the very end - after the “thank you”-end-screen has already closed - I receive a TypeError: Symbol.keyFor is not a function error message. It doesn’t matter if the end screen is finished per key press or on its own after 15 seconds. I’m also asked if I want to save the Output-File (the data is stored just fine), so I really don’t see what’s wrong with my experiment.
When I press OK on the error message, it starts to initalize the experiment again like at the beginning but not written black against white but black against grey. However, it never starts again.
In my piloting statistics all my runs are listed under “aborted” and none under “completed”.
A colleague found my error: I unknowingly used “Symbol” as a variable name in my experiment. But “Symbol” is also a JavaScript keyword. So there was some sort of conflict between my variable name and the JS key word.
After renaming my variable, everything worked fine.
I don’t think I used “m.push” or “this.plugins[t].destroy” as variables in my experiment. So really not sure what is wrong… Any help would be greatly appreciated!
I just clicked on your link and was a walking figure on the left for a second or so then one item on the right then a blank screen. Return then moved to the next figure. When does it give the error?
Thanks @wakecarter! What you described is one trial. There are 24 trials in total. When the last trial is finished (after you press return for the last time) that’s when the crush and error happens.
There’s no code component in the last routine but there are code components in the previous routines “stimLocIndication” and “dynamicWalker”.
If I add an ending routine outside the “trials” loop, with just a 3-second text component saying “Thank you”, the crash still happens after the “Thank you” text.
The second one is missing a semi-colon and the last one looks like it has intelligent quotes. Copying and pasting from the crib sheet to a code component should give:
My code was copied from the crib sheet and all the semi-colons and quotes were correct. But it still led to the end-of-experiment crash before I deleted those lines…