[Kde-bindings] in korundum 4.5, calling super from event handlers causes SystemStackError

Arno Rehn arno at arnorehn.de
Mon Jul 5 11:04:05 UTC 2010


On Sunday 04 July 2010 19:19:29 Stefano Crocco wrote:
> Hello to everyone,
> after some months in which I've been busy, I've resumed working on my
> project using korundum. I've installed KDE 4.5 RC1 and found out that my
> program almost works with the new version of korundum.
> 
> The problem I have now is that, if I derive a class from certain widget
> classes, then reimplement an event handler for that class and call super
> from within it, I get a SystemStackError. Here's an example of what I
> mean:
> 
> 
> require 'Qt4'
> 
> class MyButton < Qt::PushButton
> 
>   def contextMenuEvent e
>     super
>   end
> 
> end
> 
> app = Qt::Application.new []
> w = MyButton.new
> w.show
> app.exec
> 
> 
> If you run this program, then right click on the button, you get a
> SystemStackError. This seems to happen with all kind of widgets and also
> for the eventFilter method.  All this worked correctly with korundum 4.4.
> 
> I don't know whether this is an intended change and we're not supposed to
> call super for event handlers for classes defined in C++ or if this truly
> is a bug.
Hm, I can't reproduce that, using recent trunk. I've made some fixes to QtRuby 
in the last few days that should appear in RC2, but nothing of what I've done 
seems to be related to this.

Is there anything like a full backtrace? And which Ruby version are you using?

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list