[Bug] (SOLVED) Editor Crashes When Undoing Quickly

Hi All, I’m collecting information on this bug here. Please post examples of projects where you experienced this here! (I’ll be closing other threads that mention this issue to collect information here.).

Has this bug been reported already?
Yes! A few times. I’ve cataloged these on a Github issue: https://github.com/Wicklets/wick-editor/issues/309

Describe the bug
When undoing quickly, users often experience a white screen.

To Reproduce
Steps to reproduce the bug, if you have them:

  1. Edit a project continuously.
  2. After several play/pauses attempt to undo.
  3. After undoing several times, your project may white screen.

Expected behavior
Undoing should work up to a certain point.

Screenshots
See linked github issue.

*Computer Information
N/A

Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)

This issue is likely happening due to a few optimizations in 1.19. 1.19 removes objects from the objectCache that are not possible to retrieve in the undo/redo tree, it’s likely taking more than that.

1.19 also restricts the number of undo/redos you can do to 64. This may also be causing a problem.

4 Likes

I have had this issue 5 times now, I think it happens when you undo/redo an object’s position. You don’t have to click the play button, but if you do, it adds on the chance that you will get this bug. It also doesn’t seem to happen right off the bat, but more like 5-20 minutes into animating.

A fix has been pushed for this bug and should be live within ~30 minutes (just be sure to refresh the page!).

The bug occurred when a user would undo AND redo. Redoing caused bad data to be saved to the undo stack. This broke the editor :frowning:

But it should be fixed now!

5 Likes