Hi all,<br><br>Can I ask your advice on something?<br><br>When my friend runs the following snippet on his Macbook, it crashes.<br><br>  require &#39;cairo&#39;<br>  require &#39;pango&#39;<br>  require &#39;gtk2&#39;<br>  win = Gtk::Window.new<br>
  win.set_default_size 300, 300<br>  canvas = Gtk::Layout.new<br>  surface = Cairo::ImageSurface.new Cairo::FORMAT_ARGB32, 300, 300<br>  context = Cairo::Context.new surface<br>  layout = context.create_pango_layout<br>  layout.text = &#39;hello world&#39;<br>
  context.show_pango_layout layout<br>  context.show_page<br>  surface.write_to_png &#39;temp.png&#39;<br>  img = Gtk::Image.new &#39;temp.png&#39;<br>  canvas.put img, 50, 50<br>  win.add canvas<br>  win.show_all<br>  Gtk.main<br>
<br>But on my Windows 7, it works well.<br>He is using Macbook with Lion, Xcode 4.1 and rvm.<br>ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]<br>Ruby/GNOME2 v1.1.2<br><br>More information is here: <a href="http://pastie.org/3230151">http://pastie.org/3230151</a><br>
<br>  -- C level backtrace information ---------------<br>  ...<br>  6   libpixman-1.0.dylib   0x000000010446528c  pixman_image_composite32 + 144<br><br>It seems to crash in pixman...<br><br>Any information would be appreciated.<br>
<br>Thanks,<br>ashbb<br><br>