<div>Hi Ivan,</div>
<div> </div>
<div><font color="#3366ff"><font color="#3333ff">> are preloading an array of 26 images ~32K each and this crashes on the<br>> olpc.<br><br>Please provide more details. Memory allocation shouldn't *crash* the<br>
machine under any (reasonable set of) circumstances; the OOM killer<br>might kick in and destroy a few processes, however. In your case, you're<br>allocating less than a meg, so something is certainly wrong if it's
<br>crashing. What kind of crash are you getting? Can you post the code and<br>the images somewhere where we can test this?</font><br></font></div>
<div>The program runs when images are scaled to 600 x 250 (using the gtk scale_simple function) or smaller. When we try to scale up to larger dimensions - e.g. 800 x 400 - it crashes. The application simply exits on it own.
</div>
<div> </div>
<div>I tried replacing the images (to be loaded into the array) with smaller size (~19k) black and white images and the program runs alright. But when these are replaced with color images of similar size, the same problem occurs.
<br><br>Here's the relevant part of code, KEY_X and KEY_Y are the image dimensions we're trying to scale up (default 600 x 250):</div>
<div> </div>
<div> </div>
<div> <font color="#cc66cc"> self.dict_pixbuf = {}<br> alphastring = "abcdefghijklmnopqrstuvwxyz"<br> <br> for i in range(len(alphastring)):<br> letter = alphastring[i]<br>
self.dict_pixbuf[letter] = gtk.gdk.pixbuf_new_from_file(IMAGE_SOURCE + os.sep + "keypress" + os.sep + letter.upper() + ".gif").scale_simple(KEY_X, KEY_Y, gtk.gdk.INTERP_BILINEAR)<br></font>
</div>
<div> </div>
<div>Any suggestions would be appreciated! Thanks!</div>
<div> </div>
<div> </div>
<div>yh</div>
<div> </div>
<div><span class="gmail_quote">On 6/22/07, <b class="gmail_sendername">Ivan Krstiæ</b> <<a href="mailto:krstic@solarsail.hcs.harvard.edu">krstic@solarsail.hcs.harvard.edu</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Aneto,<br><br>Aneto Okonkwo wrote:<br>> I have been having difficulty installing git on windows. Does anyone
<br>> have any instructions I can use to download and set it up?<br><br>Git still relies on a mudball of shell and Perl scripts, so getting it<br>running under Windows proper is an uphill battle. The recommended way to
<br>do it is to first set up Cygwin, which might be more trouble than you're<br>willing to go through. Even then, it'll run quite slowly because of<br>certain FS ops being substantially slower on Windows than on Linux.
<br><br>> Alternatively is there anyway to use git on the olpc itself, does anyone<br>> have those instructions?<br><br>As root, 'yum install git-core' should do it.<br><br>> are preloading an array of 26 images ~32K each and this crashes on the
<br>> olpc.<br><br>Please provide more details. Memory allocation shouldn't *crash* the<br>machine under any (reasonable set of) circumstances; the OOM killer<br>might kick in and destroy a few processes, however. In your case, you're
<br>allocating less than a meg, so something is certainly wrong if it's<br>crashing. What kind of crash are you getting? Can you post the code and<br>the images somewhere where we can test this?<br><br>--<br>Ivan Krstiæ <
<a href="mailto:krstic@solarsail.hcs.harvard.edu">krstic@solarsail.hcs.harvard.edu</a>> | GPG: 0x147C722D<br></blockquote></div><br>