scratchfoundation / scratchfoundation/scratch-editor

Face sensing can get stuck in the project (also the translate extension)

Open
#352 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
281
Forks
276
Avg merge
7d 8h
Merged PRs (30d)
6

Description

Expected Behavior

When all face sensing blocks and monitors have been removed, the face sensing extension is deleted from the project after reloading.

Actual Behavior

The project still loads the extension and turns on the camera. If the project also has cloud variables, they are disabled, but the warning text isn't shown on the project page.
https://scratch.mit.edu/projects/1225257855/

Steps to Reproduce
  1. Go to 'https://scratch.mit.edu/projects/editor'
  2. Add Face Sensing
  3. Show the "face tilt" monitor
  4. Move it slightly
  5. Hide the monitor
  6. Save and reload

It also works with the translate extension and the "language" reporter, but the face sensing has much more impact when it's stuck.

I think the bug happens because the monitor stays in the JSON so that Scratch can remember its position. This makes Scratch load the extension, even though the monitor is hidden.

System Details

I've tested it on Windows 10, Chrome 141

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the Scratch editor with Face Sensing, then inspect the saved project JSON and the reload path that loads extensions from monitors. Compare hidden Face Sensing and Translate monitors, and verify that removing them prevents extension loading and camera activation while preserving the cloud-variable warning text.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.