[wxruby-users] Wx::Bitmap causes segfaults

Andreas Garnæs lists at ruby-forum.com
Mon Oct 13 07:43:03 EDT 2008


Instantiating a Wx::Bitmap with width and height causes a segmentation
fault. This is the minimal example I could find where the behaviour is
exhibited:

require 'rubygems'
require 'wx'
Wx::Bitmap.new(1, 1)

Results in:
/usr/lib/ruby/gems/1.8/gems/wxruby-1.9.8-x86-linux/lib/wx/classes/bitmap.rb:17:
[BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [i486-linux]

Note that without width and height, no segmentation fault is caused:

Wx::Bitmap.new // => #<Wx::Bitmap:0xb5eef164>

I'm running Ubuntu Hardy 8.04, ruby 1.8.6 (2007-09-24 patchlevel 111)
[i486-linux], wxwidgets 1.9.6, and have the following wx-packages
installed:

libwxbase2.6-0                             2.6.3.2.2-2ubuntu4
libwxbase2.8-0                             2.8.7.1-0ubuntu3
libwxbase2.8-dev                           2.8.7.1-0ubuntu3
libwxgtk2.6-0                              2.6.3.2.2-2ubuntu4
libwxgtk2.8-0                              2.8.7.1-0ubuntu3
libwxgtk2.8-dev                            2.8.7.1-0ubuntu3
wx2.8-headers                              2.8.7.1-0ubuntu3

Any help is greatly appreciated!

- andreas
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list