Bug 439667

Summary: gnome-python2-gtkmozembed python module crashes using example
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: gnome-python2-extrasAssignee: Colin Walters <walters>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 13CC: bestis+rh, caillon, dsm42, hugoleonardomelo, shamardin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-27 13:57:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 481428    
Attachments:
Description Flags
strace output none

Description Daniel Walsh 2008-03-30 06:49:20 UTC
Description of problem:

uname -a
Linux dhcp-10-12-34-132.boston.devel.redhat.com 2.6.25-0.163.rc7.git1.fc9.x86_64
#1 SMP Thu Mar 27 09:29:41 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux


gnome-python2-gtkmozembed-2.19.1-14.fc9.x86_64

python t.py
Segmentation fault

Comment 1 Daniel Walsh 2008-03-30 06:49:20 UTC
Created attachment 299613 [details]
strace output

Comment 2 Matthew Barnes 2008-03-31 14:40:21 UTC
Could you please attach t.py so I can reproduce this?

Comment 3 Daniel Walsh 2008-04-01 06:23:01 UTC
It is in your example documentation.

import gtk
import gtkmozembed

class TinyGecko:
    def __init__(self):
        self.moz = gtkmozembed.MozEmbed()
                
        win = gtk.Window()
        win.add(self.moz)
        win.show_all()
        # self.moz.load_url('http://www.pygtk.org')
        data = '<html><head><title>Hello</title></head><body>pygtk
dev</body></html>'
        self.moz.render_data(data, long(len(data)), 'file:///', 'text/html')

if __name__ == '__main__':
  TinyGecko()
  gtk.main()


Comment 4 Matthew Barnes 2008-04-10 00:34:55 UTC
This appears to be a Mozilla bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=325884

Simplified reproducer:

  #!/usr/bin/env python
  import gtk
  import gtkmozembed

  window = gtk.Window()
  module = gtkmozembed.MozEmbed()

  window.add(module)
  window.show_all()

Setting these environment variables seems to fix it:

  export   LD_LIBRARY_PATH=/usr/lib/firefox-2.0.0.5
  export MOZILLA_FIVE_HOME=/usr/lib/firefox-2.0.0.5
                                    ^^^^^^^^^^^^^^^
                             (whatever you have installed)

Chris, any thoughts about this?

Comment 5 Christopher Aillon 2008-04-19 05:10:18 UTC
You can set it I guess based on one of the conf files in /etc/gre.d

Comment 6 Paul Brossier 2008-05-21 09:23:15 UTC
Two notes about this bug:

 - the bug is reproducible on i386.
 - the exported variables workaround does not work anymore with firefox 3

Cheers, piem

Comment 7 Matthew Barnes 2008-05-21 10:30:54 UTC
Boo.  I guess we're stuck waiting on upstream to fix this, unless someone comes
up with a workaround for XULRunner / Firefox 3.

Leaving this open so I don't lose track of it.

Comment 8 Jani Ollikainen 2008-07-03 07:39:48 UTC
Those enviromental variables works as workaround with firefox-3.0-1.fc9.i386,
gnome-python2-gtkmozembed-2.19.1-16.fc9.i386 and xulrunner-1.9-1.fc9.i386

The trick is to use path where the modules really lies nowadays.

export LD_LIBRARY_PATH=/usr/lib/xulrunner-1.9
export MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.9


Comment 9 Jani Ollikainen 2008-07-04 06:45:07 UTC
Ok, too fast to say it works with those. It worked and works sometimes, but
sometimes it fails.. But without those it never worked.

The program 'screenshot-tng.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 112 error_code 8 request_code 129 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


Comment 10 David Mueller 2009-02-12 19:46:42 UTC
This is still broken on Fedora 10; I had to set the environment variables as suggested in comment #10.

xulrunner-1.9.0.6-1.fc10.i386
gnome-python2-gtkmozembed-2.19.1-26.fc10.i386
firefox-3.0.6-1.fc10.i386

Comment 11 David Mueller 2009-02-12 19:47:16 UTC
My previous comment should have been referring to comment #8.

Comment 12 Bug Zapper 2009-06-09 23:56:02 UTC
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '9'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 13 Lev Shamardin 2010-02-13 07:18:24 UTC
Still broken:
gnome-python2-gtkmozembed-2.25.3-14.fc12.i686

Fix from comment #8 still works.

Comment 14 Hugo Melo 2010-05-31 19:05:24 UTC
Hi,
I can reproduce this error on a F13 x86_64.
I used /usr/lib64/xulrunner-1.9.2/ in the variables MOZILLA_FIVE_HOME and LD_LIBRARY_PATH and it stopped giving segmentation fault.

uname -a
Linux panini.ibm.com 2.6.33.3-85.fc13.x86_64 #1 SMP Thu May 6 18:09:49 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

Comment 15 Bug Zapper 2010-11-04 11:58:38 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 16 Hugo Melo 2010-11-04 13:55:37 UTC
Please, check comment 14. I was able to reproduce this error on Fedora 13.
Thanks!

Comment 17 Bug Zapper 2011-06-02 18:34:03 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 18 Lev Shamardin 2011-06-04 18:11:32 UTC
Still an issue on Fedora 14, gnome-python2-gtkmozembed-2.25.3-30.fc14.1.x86_64

Comment 19 Bug Zapper 2011-06-27 13:57:38 UTC
Fedora 13 changed to end-of-life (EOL) status on 2011-06-25. Fedora 13 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.