Skip to content

Sprite-local variable crashes imported project #2180

Closed
@BryceLTaylor

Description

@BryceLTaylor

Expected Behavior

Launching project 223217573 in Scratch 3 should behave just as it does in Scratch 2.

Actual Behavior

On launch, errors appear in the console.

floriaconsoleerrorsonlaunch

Then if you click on different sprites in the sprite menu, eventually their blocks will stop appearing in the workspace and more errors will appear in the console:

Uncaught Error: Variable "Light" is already in use and its id is "X!74*sFc|x7vP3Bl3q@,-Light" which conflicts with the passed in id, "{jo-mL!R)yYANgt0I~]?-Light".
screen shot 2018-05-29 at 11 32 42 am

I can get this to happen every time, though not consistently with the same sprites that I click on.

After getting that error and the blocks disappear if you click the costumes tab and then back to the code tab the whole blocks area becomes blue with the "Oops! Something went wrong" error message. Even more errors appear in the console:
screen shot 2018-05-29 at 11 42 32 am

Steps to Reproduce

Launch project 223217573 in the 3.0 editor.
Open the console
Note: There are errors
Select different sprites in the Sprite Editor
Note: Eventually a sprite will not show any code in the workspace (all sprites have code in this project). Also, there are more errors in the console
Select other sprites
Note: no sprites show code now, even ones you had seen code in before
Select the Costume Tab
Select the code tab
Note that the workspace, blocks pallet, and the category menu are gone and the "Oops" error message appears there instead. More errors appear in the console

I tried reproducing in another 2.0 project that uses the same name for local variables, but I couldn't get the same outcomes.

screen shot 2018-05-29 at 11 40 56 am
screen shot 2018-05-29 at 11 41 25 am
screen shot 2018-05-29 at 11 41 56 am

Operating System and Browser

Chrome and Safari on Mac

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions