Re: Maemomm crash with Gtk::Dialog on maemo OS



On Wed, 2007-12-05 at 14:33 +0200, Lassi Väätämöinen wrote:
> Hi,
> 
> I was writing an app on N800 platform and came across segmentation fault when 
> running a recursive static Gtk::Main::run() within the app. This happens when 
> the dialog is closed and then opened again later. The Window is inherited 
> from Gtk::Dialog, but when inherited from Hildon::WIndow, I got the same 
> segmentation fault. The code is as follows:
> 
> 
> 	PrefWindow window(config_);
> 	Gtk::Main::run(window);

Could you try to create a simple test case?

> I use show_all() in the dialog to show all the child widgets and then when 
> closing the window I use hide(). hide_all() causes crash also so this doesn't 
> have any effect probably?
> 
> Debugging the app on N800 with GDB gave me following backtrace:
> 
> GDB backtrace
> #0 0x402f2a74 in ?? ()
> #1 0x411d44e8 in g_type_class_unref ()
>  from /usr/lib/libgobject-2.0.so.0
> #2 0x00001000 in ?? () at sources.h:89
> #3 0x00001000 in ?? () at sources.h:89
>
> But due to lacking knowledge I don't know where the function 
> g_type_class_unref() lies. Also what is notable that I have compiled same app 
> on PC (Linux platform), and on scratchbox with maemo SDK but this 
> segmentation fault does not occur with these, only on N800.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]