fiddlerpianist / knitml

Automatically exported from code.google.com/p/knitml
11 stars 2 forks source link

pattern view hangs when told to "repeat until measures 58 in" #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to convert this pattern into KEL:
http://www.wingedsheep.com/blog/2009/01/14/double_dropped_scarf.html

This is a modified version of the pattern due to the bugs found in issues 5
and 6, but it gets past the compilation errors:

Directions {             
      UseNeedle 'needle-size8Circular'
      CastOn 25 sts
      Instruction 'garter-st' {
        Row: k to end
      }
      Repeat 'garter-st' for 19 additionalTimes
      Instruction 'double-drop-pattern' {
        Row: K1, repeat to end { yo, yo, k1 }
        //Row: K1, repeat to end { drop, drop, k1 } // see issue #5, this
line fails because its not in the library
        Row: k to end
        Row: k to end
        Row: k to end
        Row: k to end
        Row: k to end
        Row: k to end
      }
      Repeat 'double-drop-pattern' until measures 58 in
      NextRow: BindOff all sts 
  }

If I change the 2nd to last line to this:

      Repeat 'double-drop-pattern' for 20 additionalTimes

then it produces the Pattern view successfully, however if I keep the
original line listed above (until measure 58 in), then the program gets
hung after I try to click the pattern view tab and I have to forcibly quit
the program.

0.2.0 on MacOSX

Original issue reported on code.google.com by jessica.sant on 19 Mar 2010 at 1:11

GoogleCodeExporter commented 9 years ago
I took a look at the pattern you are trying to run. Because you commented out 
the
decrease line, you are telling the pattern to increase the number of stitches 
on the
needle exponentially. After one repeat you'd have 73 sts, after the 2nd 217 sts,
after the 3rd 647, etc. It can handle 20 repeats, and maybe even 58 repeats if 
your
gauge is 1 row per inch.

I'll write out how many repeats are calculated to the log for a future release.

Original comment by fiddlerpianist@gmail.com on 29 Mar 2010 at 8:56

GoogleCodeExporter commented 9 years ago
Forgot to finish that sentence... "It can handle 20 repeats, and maybe even 58
repeats if your gauge is 1 row per inch..." but much after that, the program 
quickly
runs out of memory as it tries to track millions of stitches. My test bombed at
around 60,000 stitches.

Original comment by fiddlerpianist@gmail.com on 30 Mar 2010 at 4:21

GoogleCodeExporter commented 9 years ago
that makes sense, I forgot that because I wasn't using the decrease that I was
constantly adding stitches, and that knitml attempts to actually "knit" the 
project
-- hence it ran out of space.

Makes perfect sense as to why it happened.

Original comment by jessica.sant on 30 Mar 2010 at 4:26