Unit error when sending experiment to Pavlovia

Thanks @laurafdeza, really useful to send me a link to your repo :). In short, your problems stem from the mixed screen units you are using. I advise setting all units to height, or pixels (which you currently use), and making sure you size your components accordingly.

Running experiment locally in Builder

Running locally I cannot see text on screen because your text size is .1, (the default size when using Height or Norm screen units) and your text components are set to use pix. As this is smaller than a pixel, text will not be drawn and will not appear on screen. See docs.

Running experiment online

As above, components set to pix should either be given sizes in pixels e.g., anything > 1, or sized according to height or norm units (see docs). If you attempt to draw something with a size smaller than 1 pixel, you will get an error, something like:

IndexSizeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The source width is 0.

Setting your components to update correctly

Many of your component parameters are set to update on every repeat, but you are not actually passing a variable to them, so they do not need updating, they can stay constant (see docs). So, only update those params that contain a variable i.e., column from your conditions file.

1 Like