[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-gtk
Subject:    gdk_rgb_init () crash in first mozilla use of graphics, missing init
From:       William Bardwell <bardwell.nospam () curl ! com>
Date:       2004-03-05 5:20:33
Message-ID: c292lt$9501 () ripley ! netscape ! com
[Download RAW message or body]

I am working on a stand alone application using the mozilla libraries,
mostly do to do HTTP/HTTPS access, and I would like to let those
accesses pop-up dialog boxes when they want to (e.g. bad SSL
certs. or cookie issues), but my program seems to crash when
the netwerk code tries to do that.

I assume that there is some initialization code missing, but I don't 
understand what it would be...I do:
NS_InitXPCOM2
make an nsIComponentRegistrar
registrar->AutoRegister(nsnull)
create the event queue, and then go into an event loop.

I tried adding making an AppShell, but that gives the same
crash during its Create() method.

I am using a semi-stock mozilla 1.5 build for the libraries and
run-mozilla.sh script.

What do I do to make this init-ing work right either on demand or
in the startup sequence of my program?

The crash is a SEGV:
#0  0x41e1381c in gdk_rgb_set_min_colors () from /usr/lib/libgdk-1.2.so.0
#1  0x41e13b26 in gdk_rgb_init () from /usr/lib/libgdk-1.2.so.0
#2  0x41f511be in _Xi18n_lock ()
    from components/libwidget_gtk.so
#3  0x40343e9a in NSGetModule ()
    from components/libembedcomponents.so
#4  0x40344a0c in NSGetModule ()
    from components/libembedcomponents.so
#5  0x40344487 in NSGetModule ()
    from components/libembedcomponents.so
#6  0x41c8de62 in NSGetModule ()
    from components/libpippki.so
#7  0x41c8a39e in NSGetModule ()
    from components/libpippki.so
#8  0x4010f5c5 in XPTC_InvokeByIndex ()
    from libxpcom.so
#9  0x400fce61 in nsProxyObject::Post(unsigned, nsXPTMethodInfo*, 
nsXPTCMiniVariant*, nsIInterfaceInfo*) ()
    from libxpcom.so
#10 0x400f5750 in PL_HandleEvent ()
    from libxpcom.so
#11 0x400f69ab in nsEventQueueImpl::HandleEvent(PLEvent*) ()
    from libxpcom.so

Thanks.
William Bardwell
bardwell.nospam@curl.com

_______________________________________________
mozilla-gtk mailing list
mozilla-gtk@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-gtk
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic