[wxruby-users] GenericDirCtrl Bus Error crash on OSX

Alex Fenton alex at pressure.to
Mon Nov 10 21:42:47 EST 2008


Mathias Bruce wrote:
> On Tue, Nov 11, 2008 at 1:36 AM, Alex Fenton <alex at pressure.to> wrote:
>   
>> Thanks for reporting this. I think it's a bug. In a normal Wx::TreeCtrl
>> get_item_data works fine, but the item data held by a TreeCtrl associated
>> with a GenericDirCtrl isn't a valid ruby object. We can fix this, and it
>> would be helpful to understand what you were trying to do here.
>>     
> Thanks for the quick reply! I apparently misread the docs gravely, and
> got the impression that I had to pick the selected path from the item
> itself. GenericDirCtrl.get_path does exactly what I needed... Sorry
> for wasting your time =o)
>   

NP, you haven't wasted my time at all. It helps the dev team understand 
where the docs could be clearer. As I said, thanks for reporting the 
issue; we can look into making wxRuby give more helpful error messages 
than crashing with a "bus error".

> I read on the website about you preferring self-contained error
> reproduction code, and I completely understand that. The only reason I
> didn't do that was because I'm using XRC and xrcise, so (I think) it
> would have been 2-3 separate files, in which case it would be easier
> to file a bug in the tracker and put them there. I just thought I'd
> find out if the problem was wxruby-related or not, first.
>   

Simply from experience, taking a problem down to a minimal example is 
often a good way to figure out where the error is coming from.

cheers
alex


More information about the wxruby-users mailing list