Double tapping strange blocks crashes the app

1 sentence description of the problem: If you double tap a strange uncommon block (such as wait til timestamp) that was added in through editing the project’s json, the app crashes

Steps to reproduce the problem every time:
(Start in a blank draft if possible)

  1. Add a new rule
  2. Add a comment saying something distinctive
  3. Close the project
  4. Open the project’s .hopscotch file in a text editor
  5. Find your comment block
  6. Change the value of type from 69 to a type that isn’t an expected block, such as 19.
  7. Save your changes
  8. Open the project
  9. Find your modified block
  10. Double tap it

I expected this to happen:
Nothing

But instead this happened:
The app crashed

Here;s a project by gaming Studio 86 who discovered this

13 Likes

And to think this could easily be fixed if they just added a default help docs info (i.e., “There is no info about this block”) for unknown blocks…

7 Likes

What’s really strange is why the player even tries to get the documentation for the block, even before you actually tap “Help”… I feel like it should only do that once you tap the option…

5 Likes

i remember trying to copy this block, the moment i double tap it, it crashes hopscotch as well. Same with others like Destroy Destroy Object()

5 Likes

Yeah, apparently that happens when the Help docs for that block doesn’t exist.

2 Likes