@Liza @Rodrigo @awesomeonion @t1_hopscotch

iOS version 3.17.0

Hopscotch Version 39, Player Version cb43565

**Bug:** Putting a Set Text block in a repeating loop (repeat forever or when 7=7) causes a "Whomp" in a consistent amount of time.

**Suggested Prioritization:** High**Rationale:** Most games use a Set Text to display scores. Set Text is also used in this fashion to have visibility of values for troubleshooting. A significant number of users and projects will be affected.

This is a bug I reported during the last beta test period (http://forum.gethopscotch.com/t/new-hopscotch-beta-5-19-17/35261/99?u=thinbuffalo), but now I've looked more into it as it's *really a hassle*. I did a bunch of tests and found the following correlations. The amount of time to "Whomp" correlates to:

- How often the Set Text block is executed
- Whether the value is an integer or decimal
- The number of objects concurrently running a Set Text loop (decimal values only, does not correlate to the number of objects if the values are integers)

Might there be a memory leak?

Example code to cause "Whomp" in about 60 seconds

To see if it was the Set Text or Set X, I also tried it this way which also causes "Whomp" in about 60 sec

## Raw Test Data

This was the test data & configuration notes. Rather than trying to format all of this so it was easily understandable, I just summarized in the aforementioned correlations. The values are time until the "Whomp" occurred.

Rand X & x^2 (this means 2 objects. One setting X & the other setting X^2)

32

35

35

34

Rand X^2

36

35

37

36

37

Rand X **(1st example)**

59

62

63

Rand X & x^2

34

34

34

=====

New project

Rand X **(1st example)**

60

68

64

no chg x

(No womp)

X incr 1 **(2nd example)**

64

64

66

X incr 1

X mod 2 = 1 update

156

157

158

X incr 1

wait 0 update

154

161

162

X incr 1

Set 3 obj

64

64

68

X incr 1

Set x 3 obj

64

63

65

X incr 1

X, x*2, x/2

37

37

37

X,y,z incr 1

67

67

67

X,y,z incr 1

X, y*2, z/2

32

32

31

X,y,z incr 1

Sqrt X, y*2, z/2

20

23

23

X incr 1

sqrt x

33

33

32