Can't have only variable blocks inside an ability with itself inside (open)

iOS 13.1.1, hopscotch 3.39.0, iPhone 8, player version 1.3.3


Using and increase our set variable block inside of an ability which contains itself causes the project to not work.
Examples:


Those both result in this:

This happens even if the abilities don’t repeat forever.


This is fixed if you add a block which takes a frame into it.

@Ana @AwesomeOnion

14 Likes

Big Oofs…

9 Likes

Put a wait zero. Your current setup causes a zero frame to extend indefinitely.

I mean yeah you probably know that, but still…

8 Likes

Isn’t only set variable zero frames?

That makes sense though.


Edit: increase is too

8 Likes

That’s the reason why! My projects have been getting this error since a few days. I was just about to report it as a bug. I can confirm that I get this error too.

5 Likes

Huh, that’s a weird bug, It makes sense though. Nice find petrichor!

3 Likes

On iOS 12.4 it doesn’t give the error. The project just doesn’t load. You get a white screen with an infinite spinning loading icon.


This is similar to recursion with Conditionals that require a Wait 0 block. E.g.,

Example

But the difference is that if the Wait 0 block is left out of the example I showed, the project doesn’t crash. So @Petrichor I’d recommend tagging Ana & Awesoneonion in the OP (and append “[Open]” to the title)

4 Likes

Any freeze or “womp” on first frame = does not load

iOS 12.4 should be the same as anything else.

2 Likes

@Nazari will take a look

4 Likes