GNOME Bugzilla – Bug 455964
Tabs does not close cleanly due to missing toggle ref in pygtk
Last modified: 2007-09-19 14:05:11 UTC
This is on Mandriva Cooker: Epiphany 2.19.5 Mozilla/5.0 (X11; U; Linux i686; en; rv:1.8.1.4) Gecko/20070208 Mandriva/2.0.0.4-5mdv2008.0 (2008.0) Epiphany/2.18 Firefox/2.0.0.4 When I open a tab, play a video from youtube and close the tab with the video still playing, it is not stopped, the sound continues to play. This does not happen with the firefox version my epiphany is based on.
Do you have the 'undo-tab-close' extension installed maybe ?
No, I don't have that extension.
It can happen that sound continues for a second or so, but I've never seen this for more than that... BTW: Mozilla/5.0 (X11; U; Linux i686; en; rv:1.8.1.4) Gecko/20070208 Mandriva/2.0.0.4-5mdv2008.0 (2008.0) Epiphany/2.18 Firefox/2.0.0.4 This UA string is longer than 127 characters, which will cause a bug in the java plugin; please file a mandriva bug to get the string shortened.
I see this in 2.19.5, using "Shockwave Flash 9.0 r48" on ubuntu gutsy, latest as of July 18. The flash plugin windows are not terminated when closing tabs. They continue to play, and can be seen "popping out" into their own windows when epiphany is closed, before finally dissapearing.
I have this problem as well. In addition, I have a problem that I suspect is related: the epiphany process keeps running in background even after closing all tabs and windows.
See details in Ubuntu bug: https://bugs.launchpad.net/bugs/125209 Looks like it's problem with epiphany-extensions' code or with support for extensions in epiphany itself. Not only flash problem.
I'm using gutsy too, I have the same problem.
This could be due to pygobject bug 466082. At least the reporter there says: "Symptoms have been seen so far mostly in Epiphany: failure to shut down, extensions breaking continually, etc. Fun."
Again on Gutsy, same problem here. I'm not really sure but I also believe that when closed tabs are not destroyed at all, so it keeps growing in memory size.
The pygobject patch doesn't seem to fix the issue, when the cc-license-viewer is used epiphany still doesn't close correctly
I made the Creative Commons plugin work. The problem was the line: eventbox.set_tooltip_text (_("View Creative Commons license")) gtk.Widget.set_tooltip_text only exists since pygtk/gtk 2.12. If you have an earlier pygtk version an exception is raised when the plugin attaches to the tab, and it all goes downhill from there. Updating pygtk to 2.12 fixed the issue and epiphany started shutting down correctly. I haven't tried any other python extension, though... At least I tested this in jhbuild epiphany and pygtk. The pygtk installed in ubuntu gutsy has gtk.Widget.set_tooltip_text, so in theory it should work in ubuntu; i'm going to try ubuntu next and report back...
I was wrong, ubuntu gutsy pygtk version is not recent enough: Traceback (most recent call last):
+ Trace 157983
ui_init(window)
eventbox.set_tooltip_text (_("View Creative Commons license"))
** (epiphany:30700): WARNING **: Python code for 'attach_window' failed to execute >>> gtk.pygtk_version (2, 10, 6) I'm guessing we need a new PyGTK 2.11.x release out... :P Though on the other hand it was not very wise of epiphany devs to release extensions requiring a unreleased PyGTK version :|
PS: it also isn't nice on the part of epiphany to fail to destroy a tab when an extension fails.
The bug is still happening on gutsy using pygtk 2.11.0
*** Bug 474525 has been marked as a duplicate of this bug. ***
This is a dupe of #475013 isn't it?
(In reply to comment #16) > This is a dupe of #475013 isn't it? I would say so.. something is preventing a 'tab' to be finalized; this has two consequences: 1. plugins inside the tab keep running (e.g. flash), 2. epiphany must be looking for finalization signals of tabs, but since closing tabs doesn't finalize them then epiphany never quits. So these are likely two symptons of the same single problem.
*** Bug 475013 has been marked as a duplicate of this bug. ***
Changing summary, this problem is caused by pygtk. Disabling all the python extensions vanishes the problem. I can confirm that.
*** Bug 459319 has been marked as a duplicate of this bug. ***
From Wouter's bug report: Breakpoint 2, IA__g_log (log_domain=0xb6eb429c "GLib-GObject", log_level=G_LOG_LEVEL_WARNING, format=0xb6eb539c "%s: couldn't find toggle ref %p(%p)") at gmessages.c:516 516 va_start (args, format); (gdb) bt
+ Trace 163857
Some old related bugs: bug #317242 and bug #171261.
The problem is how to reproduce this. With jhbuilt pygobject/pygtk/epiphany/epiphany-extensions I am not able to reproduce this problem anymore. I activate all python extensions and the epiphany shell exits cleanly all the time, without the toggle ref warning. I think this could be related to bug 466082. However, only a couple of days ago was pygobject 2.14 released containing this fix. Could people please try again with pygobject 2.14 and check that/if the problem goes away?
It seems that the problem is gone on up-to-date Ubuntu Gutsy - epiphany 2.20.0-0ubuntu1, epiphany-extensions 2.20.0-0ubuntu1, python-gobject/pygobject 2.14.0-0ubuntu1, python-gtk2/pygtk 2.12.0-0ubuntu1. Everything works OK now! Thanks.
It's gone here apparently, just checked with my up to date gutsy.
Ok, seems fixed.