[Kde-bindings] calling KParts::MainWindow#action_collection causes a crash with recent revision of korundum from 4.4 branch

Richard Dale rdale at foton.es
Wed Jan 27 21:44:43 UTC 2010


On Wednesday 27 January 2010 01:42:46 pm Stefano Crocco wrote:
> With the latest revision of smoke and korundum from the 4.4 branch, calling
> KParts::MainWindow#action_collection causes a crash (both with ruby 1.8 and
> 1.9). You can obtain it by running the following code
> 
> require 'korundum4'
> 
> data = KDE::AboutData.new "test", "", KDE::ki18n("Test"), "0.1",
>     KDE.ki18n('A test application')
> KDE::CmdLineArgs.init ARGV, data
> a = KDE::Application.new
> w = KParts::MainWindow.new nil, 0
> w.action_collection
> 
> The same code runs perfectly with an older revision of smoke and korundum
> (with smoke still generated using kalyptus). With the recent one, instead,
>  I get the following backtrace:
I think this is a bug in the new Smoke library generator, rather than QtRuby.  
KParts::MainWindow has a complicated inheritance heirarchy, and it might be to 
do with that rather than a problem with the KActionCollection class.

-- Richard



More information about the Kde-bindings mailing list