Hello,
I am getting an IndexSizeError when trying to run my task on Pavlovia, but it runs fine locally. I have checked the task and cannot find any images with a zero index size. I’ve copied the error message below. I also tried resaving the task in a different folder and syncing it again, but the issue persists.
Does anyone have an idea what might be causing this or how to fix it? I would really appreciate any guidance. Thanks!
PsychoJS.js:890 IndexSizeError: Failed to execute ‘getImageData’ on ‘OffscreenCanvasRenderingContext2D’: The source width is 0.
at TextStim.getTextMetrics (TextStim.js:196:41)
at TextStim._estimateBoundingBox (TextStim.js:330:28)
at new TextStim (TextStim.js:178:8)
at Scheduler.experimentInit [as _currentTask] (PA_task_athome.js:637:11)
at Scheduler._runNextTasks (Scheduler.js:233:24)
at async Scheduler._runNextTasks (Scheduler.js:240:13)
at async update (Scheduler.js:139:18)
log4javascript.js:148 FATAL 16:09:20.856 at | {}
TextMetrics.ts:671 Uncaught (in promise) IndexSizeError: Failed to execute ‘getImageData’ on ‘OffscreenCanvasRenderingContext2D’: The source width is 0.
at TextStim.getTextMetrics (TextStim.js:196:41)
at TextStim._estimateBoundingBox (TextStim.js:330:28)
at new TextStim (TextStim.js:178:8)
at Scheduler.experimentInit [as _currentTask] (PA_task_athome.js:637:11)
at Scheduler._runNextTasks (Scheduler.js:233:24)
at async Scheduler._runNextTasks (Scheduler.js:240:13)
at async update (Scheduler.js:139:18)
| | | | Once I click on the PA_task_Athome.js:637:11 I get this | | title = new visual.TextStim({
win: psychoJS.window,
name: ‘title’,
text: ‘Image Pair Test’,
font: ‘Arial’,
units: ‘pix’,
pos: [0, 180], draggable: false, height: 0.001, wrapWidth: undefined, ori: 0.0,
languageStyle: ‘LTR’,
color: new util.Color(‘black’), opacity: 1.0,
depth: -3.0
}); |
|----|----|----|----|----|----|

