Cons (Spreads) Bug

I have found what looks to be a bug in Cons (Spreads) where the spread count of the output of Cons seems to lead the actual content by one frame. It’s as if the actual spread data is one frame behind the number of items in the spread. Example code attached. This is with 45beta24, haven’t tried with older versions.

Here’s instances from the output where the number of slices increases:

Col 1: LinearSpread count
Col 2: Count of Stallone output
Col 3-n: Data triplets (should be “Col 2” number of them)

0.0000, 0.0000
0.0000, 0.0000
0.0000, 0.0000, 0.0000, 0.0000, 0.0000 <- BUG
1.0000, 3.0000, 0.1102, 0.1102, 0.1102
1.0000, 3.0000, 0.1284, 0.1284, 0.1284

and

1.0000, 3.0000, 0.7320, 0.7320, 0.7320
1.0000, 3.0000, 0.7408, 0.7408, 0.7408
1.0000, 3.0000, 0.7496, 0.7496, 0.7496, 1.0000, 3.0000, 0.7496 <- BUG
2.0000, 6.0000, 0.7574, 0.7574, 0.7574, 0.7574, 0.7574, 0.7574
2.0000, 6.0000, 0.7652, 0.7652, 0.7652, 0.7652, 0.7652, 0.7652

BUG - note how the number of data triplets does not match the count, but rather the count of the FOLLOWING frame.

It can be seen this is a Cons problem, not anything downstream, by bypassing the Cons and just outputting the data triplets direct from Stallone into FormatValue:

0.7347, 0.7347, 0.7347
0.7435, 0.7435, 0.7435
0.7514, 0.7514, 0.7514, 0.7514, 0.7514, 0.7514 <- NOTBUG
0.7588, 0.7588, 0.7588, 0.7588, 0.7588, 0.7588

NOTBUG - correct transition to second triplet when value passed .75, unlike the Cons output above, which appears to start outputting the second triplet a frame early (and just wraps around to the start of the spread since the second triplet isn’t in fact there yet).

Any and all help appreciated!

ConsBug.v4p (11.8 kB)

Cons is working fine here. I tried for a while and my computer’s not reproducing this, it’s a C2D p7350 2gig processor with 3gig ram and a 9600m GS graphics card. I’m running WinXP with SP3.

That was on beta24.1, however.

think so too

here a minified bug example. bang and see

ConsBugMinimal.v4p (7.3 kB)

Ayup, fixed in 24.1.

Athankew.