Simple demo to illustrate a Spine runtime bug.
I'm getting a fairly consistent bug with a particular pair of animations from Character.json
when queued in sequence: attack_hook_throw
and attack_hook_pull
. Everything is fine at first and then suddenly the vertex coordinates of a particular attachment are wildly inaccurate. It looks like a missing initialization + garbage memory issue as the coordinates are different every time once they become corrupted. There is about a 50% chance it will happen any given animation playthrough.
<edit SPINE_C_FOLDER path in Makefile>
make
./bugdemo
Read file: Spine-T100.atlas
Read file: Character.json
0: Max size of drawing area: 2097
1: Max size of drawing area: 2093
2: Max size of drawing area: 2085
3: Max size of drawing area: 2077
4: Max size of drawing area: 2071
5: Max size of drawing area: 2065
6: Max size of drawing area: 2058
7: Max size of drawing area: 2050
8: Max size of drawing area: 2051
9: Max size of drawing area: 2073
10: Max size of drawing area: 2084
11: Max size of drawing area: 2068
12: Max size of drawing area: 2013
13: Max size of drawing area: 2012
14: Max size of drawing area: 2024
15: Max size of drawing area: 2055
16: Max size of drawing area: 2080
17: Max size of drawing area: 2099
18: Max size of drawing area: 2119
19: Max size of drawing area: 2122
20: Max size of drawing area: 2048
21: Max size of drawing area: 2045
22: Max size of drawing area: 2162
23: Max size of drawing area: 2643
24: Max size of drawing area: 2555
25: Max size of drawing area: 2448
26: Max size of drawing area: 2345
27: Max size of drawing area: 2455
28: Max size of drawing area: 2440
29: Max size of drawing area: 1989
30: Max size of drawing area: 1968
31: Max size of drawing area: 1927
32: Max size of drawing area: 1872
33: Max size of drawing area: 1834
34: Max size of drawing area: 1809
35: Max size of drawing area: 1786
36: Max size of drawing area: 1767
37: Max size of drawing area: 1748
38: Max size of drawing area: 1738
39: Max size of drawing area: 1732
40: Max size of drawing area: 1728
41: Max size of drawing area: 1727
42: Max size of drawing area: 1732
43: Max size of drawing area: 1739
44: Max size of drawing area: 1749
45: Max size of drawing area: 1761
46: Max size of drawing area: 1774
47: Max size of drawing area: 1787
48: Max size of drawing area: 1798
49: Max size of drawing area: 1817
50: Max size of drawing area: 1839
51: Max size of drawing area: 1855
52: Max size of drawing area: 1865
53: Max size of drawing area: 1873
54: Max size of drawing area: 1878
55: Max size of drawing area: 1883
56: Max size of drawing area: 1889
57: Max size of drawing area: 1898
58: Max size of drawing area: 1908
59: Max size of drawing area: 1919
60: Max size of drawing area: 1928
61: Max size of drawing area: 1935
62: Max size of drawing area: 1940
63: Max size of drawing area: 1944
64: Max size of drawing area: 1947
65: Max size of drawing area: 1949
66: Max size of drawing area: 1953
67: Max size of drawing area: 1959
68: Max size of drawing area: 1964
69: Max size of drawing area: 1969
70: Max size of drawing area: 1973
71: Max size of drawing area: 1976
72: Max size of drawing area: 1977
73: Max size of drawing area: 1978
74: Max size of drawing area: 1977
75: Max size of drawing area: 1977
76: Max size of drawing area: 1976
77: Max size of drawing area: 1975
78: Max size of drawing area: 1976
79: Max size of drawing area: 1977
80: Max size of drawing area: 1979
81: Max size of drawing area: 1980
82: Max size of drawing area: 1982
83: Max size of drawing area: 1984
84: Max size of drawing area: 1985
85: Max size of drawing area: 1986
86: Max size of drawing area: 1987
87: Max size of drawing area: 1987
88: Max size of drawing area: 1987
89: Max size of drawing area: 1987
90: Max size of drawing area: 1988
91: Max size of drawing area: 1991
92: Max size of drawing area: 1998
93: Max size of drawing area: 2010
94: Max size of drawing area: 2027
95: Max size of drawing area: 2047
96: Max size of drawing area: 2070
97: Max size of drawing area: 2081
98: Max size of drawing area: 2092
99: Max size of drawing area: 2100
100: Max size of drawing area: 2107
101: Max size of drawing area: 2111
102: Max size of drawing area: 2120
103: Max size of drawing area: 2121
104: Max size of drawing area: 2114
105: Max size of drawing area: 2103
106: Max size of drawing area: 2090
107: Max size of drawing area: 2079
108: Max size of drawing area: 2067
109: Max size of drawing area: 1041778868224
110: Max size of drawing area: 1167546384384
111: Max size of drawing area: 1238703931392
112: Max size of drawing area: 1276669722624
113: Max size of drawing area: 1309063512064
114: Max size of drawing area: 1343297552384
115: Max size of drawing area: 1374106550272
116: Max size of drawing area: 1400898060288
117: Max size of drawing area: 1420033261568
118: Max size of drawing area: 1433709838336
119: Max size of drawing area: 1441023524864
120: Max size of drawing area: 1445354274816
121: Max size of drawing area: 1446969212928
122: Max size of drawing area: 1446998310912
123: Max size of drawing area: 1445853921280
124: Max size of drawing area: 1443434987520
125: Max size of drawing area: 1441244119040
126: Max size of drawing area: 1438365384704
127: Max size of drawing area: 1434834698240
128: Max size of drawing area: 1433127485440
129: Max size of drawing area: 1431166386176
130: Max size of drawing area: 1428794507264
131: Max size of drawing area: 1426846908416
132: Max size of drawing area: 1424902848512
133: Max size of drawing area: 1422711586816
134: Max size of drawing area: 1421144358912
135: Max size of drawing area: 1419822366720
136: Max size of drawing area: 1418796728320
137: Max size of drawing area: 1418471538688
138: Max size of drawing area: 1418324869120
139: Max size of drawing area: 1418688200704
140: Max size of drawing area: 1418869211136
141: Max size of drawing area: 1418884022272
142: Max size of drawing area: 1418318315520
143: Max size of drawing area: 1417706078208
144: Max size of drawing area: 1415971078144
145: Max size of drawing area: 1414762201088
146: Max size of drawing area: 1413338497024
147: Max size of drawing area: 1411397320704
148: Max size of drawing area: 1410726100992
149: Max size of drawing area: 1410048851968
150: Max size of drawing area: 1410049114112
151: Max size of drawing area: 1410049114112
152: Max size of drawing area: 1410049114112
153: Max size of drawing area: 1410049114112
154: Max size of drawing area: 1410049114112
155: Max size of drawing area: 1410049114112
156: Max size of drawing area: 1410049114112
157: Max size of drawing area: 1410049114112
158: Max size of drawing area: 1410049114112
159: Max size of drawing area: 1410049114112
160: Max size of drawing area: 1410049114112
161: Max size of drawing area: 1410049114112
162: Max size of drawing area: 1410049114112
163: Max size of drawing area: 1410049114112
164: Max size of drawing area: 1410049114112
165: Max size of drawing area: 1410049114112
166: Max size of drawing area: 1410049114112
167: Max size of drawing area: 1410049114112
168: Max size of drawing area: 1410049114112
169: Max size of drawing area: 1410049114112
170: Max size of drawing area: 1410049114112
171: Max size of drawing area: 1410049114112
172: Max size of drawing area: 1410049114112
173: Max size of drawing area: 1410049114112
174: Max size of drawing area: 1410049114112
175: Max size of drawing area: 1410049114112
176: Max size of drawing area: 1410049114112
177: Max size of drawing area: 1410049114112
178: Max size of drawing area: 1410049114112
179: Max size of drawing area: 1410049114112
180: Max size of drawing area: 1410049114112
181: Max size of drawing area: 1410049114112
182: Max size of drawing area: 1410049114112
183: Max size of drawing area: 1410049114112
184: Max size of drawing area: 1410049114112
185: Max size of drawing area: 1410049114112
186: Max size of drawing area: 1410049114112
187: Max size of drawing area: 1410049114112
188: Max size of drawing area: 1410049114112
189: Max size of drawing area: 1410049114112
190: Max size of drawing area: 1410049114112
191: Max size of drawing area: 1410049114112
192: Max size of drawing area: 1410049114112
193: Max size of drawing area: 1410049114112
194: Max size of drawing area: 1410049114112
195: Max size of drawing area: 1410049114112
196: Max size of drawing area: 1410049114112
197: Max size of drawing area: 1410049114112
198: Max size of drawing area: 1410049114112
199: Max size of drawing area: 1410049114112