# Gtk::MozEmbed crashes

**URL:** <https://www.ruby-forum.com/t/gtk-mozembed-crashes/161757>\
**Category:** Ruby\
**Created:** [March 2, 2009, 5:43am UTC](https://www.ruby-forum.com/t/gtk-mozembed-crashes/161757 "2009-03-02T05:43:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sawa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@sawa](https://www.ruby-forum.com/u/sawa)\
**Post date:** [March 2, 2009, 5:43am UTC](https://www.ruby-forum.com/t/gtk-mozembed-crashes/161757/1 "2009-03-02T05:43:24Z")

</div>

Hello

Whenever I have a secondary thread running when gtkmozembed is  
working, the gtkmozembed emits a segmentation fault and crashes  
whenever I click a link on the screen. Is there a way to resolve this?

PS. Now I use firefox 2 for this purpose, I prefer using firefox 3 if  
possible. Is Gtk::MozEmbed comparible with firefox 3?

Environment:  
OS Linux  
Ruby 1.8.7 p72  
gtkmozembed (part of ruby-gnome2-all-0.18.1)  
firefox2.x

Code:  
require ‘gtkmozembed’  
m = Gtk::MozEmbed.new  
m.chrome\_mask = Gtk::MozEmbed::ALLCHROME  
m.location = “[http://livedoor.com](http://livedoor.com)”  
w = Gtk::Window.new  
w.resize(800, 800)  
w \<\< m  
w.show\_all  
Thread.new do end # This line cases segmentation fault when I click  
a link on mozembed.  
Gtk.main

Thank you

---

<div class="post-metadata">

**Author:** ![sawa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@sawa](https://www.ruby-forum.com/u/sawa)\
**Post date:** [March 7, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/gtk-mozembed-crashes/161757/2 "2009-03-07T13:47:19Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Gtk::MozEmbed crashes” on Mon, 2 Mar 2009 13:41:31 +0900,  
sawa [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Whenever I have a secondary thread running when gtkmozembed is  
> working, the gtkmozembed emits a segmentation fault and crashes  
> whenever I click a link on the screen. Is there a way to resolve this?

I can’t reproduce it on my environment.

- Ruby-GNOME2 trunk (r3604)
- XULRunner 1.9.0.6  
(`pkg-config --modversion libxul-embedding-unstable`)

> PS. Now I use firefox 2 for this purpose, I prefer using firefox 3 if  
> possible. Is Gtk::MozEmbed comparible with firefox 3?

Do you know pkg-config module name of Firefox 3?  
If you show me the name, I’ll add it to extconf.rb of  
Ruby/GtkMozEmbed.

P.S. You can also use ruby-list or ruby-gnome2-devel-ja. 🙂

Thanks,
