Skip to content

Creating and deleting a clone in the same When I start as a clone stack crashes Scratch #2282

Open
@BryceLTaylor

Description

@BryceLTaylor

Expected Behavior

If you build this stack:
Screen Shot 2019-09-23 at 11 40 22 AM
And click the green flag it should not crash Scratch.

Actual Behavior

Scratch freezes and nothing you click is responsive. After a minute or so it pops up with a "page not responsive" dialog:
Screen Shot 2019-09-23 at 11 46 53 AM
It may require attempting to interact with Scratch to get the dialog.

Steps to Reproduce

Build this stack:
when I start as a clone
create a clone of myself
delete this clone

Run a 'create a clone of myself' block
Note: Scratch becomes unresponsive and after a minute a dialog appears.

Interestingly, if you put the create a clone of myself block in a forever loop and then have the stack when I start as a clone delete this clone the application does not crash. The create and delete blocks must be in the same stack.
Screen Shot 2019-09-23 at 11 51 55 AM

Similarly if you build two stacks one that is When I start as a clone create a clone of myself and a second stack that is When I start as a clone delete this clone it doesn't crash either. Further evidence that the two must be in the same stack.

Screen Shot 2019-09-23 at 11 53 41 AM

Here is my repro project: https://scratch.mit.edu/projects/330894575/editor
It is a simplified version of one that came in from the community: https://scratch.mit.edu/projects/314578144

Operating System and Browser

Mac Chrome

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions