Skip to content

Image loading blocking p5 javascript projects #1430

@MarcScott

Description

@MarcScott

Summary

The draw-a-cat project works locally, but does not load correctly in the Raspberry Pi code editor preview when the sketch uses cat.png.

Project:
https://editor.raspberrypi.org/en/projects/draw-a-cat

Actual behaviour

In the editor preview:

  • the page shows Waiting to load cat.png...
  • the sketch stays stuck on Loading...
  • the image is not rendered

Expected behaviour

The project should load cat.png and render the sketch in the editor preview, the same way it does locally.

Evidence

Attached screenshots show:

  • editor preview stuck loading
  • local version loading successfully and rendering the cat image
Image Image

Reproduction

  1. Open the draw-a-cat project in the editor
  2. Run the preview
  3. Observe that the image does not load and the sketch does not complete startup

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions