Thanks for the reply! I found the culprit by the way: Shoes.app do # ... @clickdown = rect :left => left, :top => top, :width => 0, :height => 0 # ... end
This is bad code on my part - it actually isn't what I had intended to do ... I intended to set clickdown.left = clickdown.top = 0, and use it as a variable to store the mouse clicks in. Instead, it looks like Shoes tried to get the left and top from the main canvas object, which probably isn't ready for it at that point. It shouldn't crash though ... Shoes doesn't seem like the capital punishment kind of democracy. Secondary question: Is Shoes built with debugging symbols? I didn't see any debugging info, so I'm trying to figure out if I ran gdb wrong or if it's the binary. IIRC I downloaded Shoes 2 Raisins from the official site. Thanks! -- Kristleifur On Sat, Apr 18, 2009 at 5:56 AM, Devyn Cairns <[email protected]>wrote: > Hmm... weird. > > > On Wed, Apr 15, 2009 at 9:10 AM, Kristleifur Daðason < > [email protected] <kristleifur%[email protected]>> wrote: > >> Hello everybody, >> >> the attached code crashes. (Here's the *"pcb-bottom.png"* image it loads: >> http://i44.tinypic.com/zm0ghg.png) >> >> I'm in the middle of writing some basic rectangle-drawing code, that draws >> on top of a PCB I scanned in. The code is short, and there's not much to >> say. It crashes like this on 64-bit Ubuntu 8.10: >> >> $ shoes helperdeck.rb >> helperdeck.rb:21: [BUG] Segmentation fault >> ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] >> >> Aborted (core dumped) >> $ >> >> I can't get anything useful out of *gdb*. It also crashes on PPC Mac OS X >> 10.4, and I saw something related to *canvas.left* IIRC. I don't have the >> mac here so vague is all you get at this point. >> >> I humbly request guidance as to what to do to best serve the interests of >> Shoes. >> >> Thanks! -- Kristleifur >> > > > > -- > ~devyn >
