Hi,

I'm really interested in using GtkMozEmbed for our product, but when we tried to integrate it, we're getting segment faults. However, when trying to reproduce it in a smaller application, we can't see the problem. The layout is like this:

Window-
  Bin
    vBox
      Menu
      Fixed
       Fixed
        GtkMozEmbed

We handle our own event loop, due to some complex needs. We call gtk_main_iteration_do in a loop, as well as process some other background tasks. However, when we mimick the setup in a simpler C application, we don't see the problem.

It seems that NSGetModule is being a bit too recursive, but not being familiar with XPCOM, I don't know where to begin looking for problems.

If anyone has any ideas that may help us track down the problem, please let me know. I've tried debugging this for about 3 days now, and just can't figure it out. Attached is a backtrace from gdb. Also, if this isn't the proper list, please let me know if there's a better one to post to.

Thanks in advance,
Jon



#0 0x080f5442 in operator delete(void*) ()
#1 0x411b1b4e in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#2 0x411b1b31 in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#3 0x411b1b43 in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#4 0x411b1b31 in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#5 0x411b1b43 in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#6 0x411b1b31 in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#7 0x411b6eff in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#8 0x411b446b in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#9 0x411b3232 in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#10 0x411b63cf in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#11 0x411adeb6 in NSGetModule () from /usr/lib/mozilla/components/libgklayout.so
#12 0x417a2686 in nsCommonWidget::DispatchEvent(nsGUIEvent*, nsEventStatus&) ()
from /usr/lib/mozilla/components/libwidget_gtk2.so
#13 0x417997fa in nsWindow::OnExposeEvent(_GtkWidget*, _GdkEventExpose*) ()
from /usr/lib/mozilla/components/libwidget_gtk2.so
#14 0x4179e1de in nsWindow::HideWindowChrome(int) () from /usr/lib/mozilla/components/libwidget_gtk2.so
#15 0x400fa59f in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x40726097 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#17 0x4073950f in signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
#18 0x40738222 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#19 0x40738764 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#20 0x401e6d9b in gtk_widget_event_internal () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x400f9039 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x402b405c in gdk_window_process_updates_internal () from /usr/lib/libgdk-x11-2.0.so.0
#23 0x402b421a in gdk_window_process_all_updates () from /usr/lib/libgdk-x11-2.0.so.0
#24 0x4009867a in gtk_container_idle_sizer () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x40321c23 in g_idle_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x40321f30 in g_main_dispatch () from /usr/lib/libglib-2.0.so.0
#27 0x403202b8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x403223ed in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#29 0x4032040c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0x400f8bff in gtk_main_iteration_do () from /usr/lib/libgtk-x11-2.0.so.0
#31 0x081b2f7d in StringMap<void*>::HasEntry(string const&) const ()
#32 0x081b315c in mainloop() ()
#33 0x081b1696 in RuntimeRun ()
#34 0x0830bc41 in ?? ()
#35 0x083098bc in ?? ()
#36 0x0812fbfe in LoadProgram(char const*) ()
#37 0x081b2db6 in main ()
#38 0x405b5dcc in __libc_start_main () from /lib/libc.so.6


_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to