Scratch-gui: Can't delete all sprites

Created on 25 Nov 2017  路  9Comments  路  Source: LLK/scratch-gui

Expected Behavior

When a project contains a single sprite and that sprite is deleted (leaving a project with no sprites), the editor should allow this.

Actual Behavior

The editor crashes once all the sprites are deleted, and three errors appear in the console.

Steps to Reproduce

Delete all the sprites in a project.

Operating System and Browser

Chrome 62 on Windows 7

bug help wanted

Most helpful comment

Clarification:

Doesn't crash if you delete the sprite like this:
image

Does crash if you click the "x" and delete the sprite like this:
image

All 9 comments

Can repro on Chrome 62 on Windows 10. Here's a screenshot of my errors:
image
a screenshot of the editor is not needed - it simply turns completely blank.

This is a regression. Deleting the last sprite works on master, but not on develop.

Note that the crash only occurs if the sprite is selected when it is deleted -- not if the stage is selected when the last sprite is deleted.

Clarification:

Doesn't crash if you delete the sprite like this:
image

Does crash if you click the "x" and delete the sprite like this:
image

It seems to do the the same thing in safari 11.0.1

@redmangospros What doesn't work for you? Most of scratch-gui seems to work as expected on safari. (Apart from this particular bug, which also happens to be a problem on Chrome 62 too.)

Sorry, I meant Internet explorer and IE Edge.

@redmangospros Can you stop deleting your messages? It makes this conversation string really confusing.

Thanks for all the details @sjhuang26 !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thisandagain picture thisandagain  路  3Comments

chrisgarrity picture chrisgarrity  路  4Comments

ericrosenbaum picture ericrosenbaum  路  4Comments

Richienb picture Richienb  路  3Comments

MrBlockCat picture MrBlockCat  路  4Comments