Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439106 - >=www-client/firefox-15.0.1: random freezes (e.g. opening file chooser dialog)
Summary: >=www-client/firefox-15.0.1: random freezes (e.g. opening file chooser dialog)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: http://www.oracle.com/technetwork/jav...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-20 21:09 UTC by Martin von Gagern
Modified: 2015-01-06 14:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (www-client:firefox-15.0.1.emerge--info,8.10 KB, text/plain)
2012-10-20 21:11 UTC, Martin von Gagern
Details
backtrace from g_return_if_fail_warning (gentoo439106a.log,10.14 KB, text/plain)
2012-11-09 21:47 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2012-10-20 21:09:44 UTC
I've observed firefox to be rather unstable of late: from time to time, the UI would simply freeze, and I'd have to kill and restart the application. I'd say this is since Firefox 15, but I'm not sure.

Today, I encountered this repeatedly. Due to the latest bunch of Java updates and portage fetch restrictions, I had to download various files manually from Oracle. In two out of four cases, I'd experience just such a freeze the moment I click on a link and the "Save as" dialog should appear.

Reproducible: Sometimes

Steps to Reproduce:
1. Start Firefox
2. Open http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html
3. Accept terms
4. Click on jre-6u37-linux-i586.bin
Actual Results:  
Firefox freezes

Expected Results:  
KDE file chooser dialog box asking me where to save the file

For the latest freeze, I had FF started from console, and got this output there:

(firefox:29990): GLib-GObject-WARNING **: cannot register existing type `GdkWindow'

(firefox:29990): GLib-CRITICAL **: g_once_init_leave: assertion `result != 0' failed

(firefox:29990): Gdk-CRITICAL **: gdk_window_get_display: assertion `GDK_IS_WINDOW (window)' failed
Comment 1 Martin von Gagern 2012-10-20 21:11:17 UTC
Created attachment 327014 [details]
emerge --info
Comment 2 Jeroen Roovers gentoo-dev 2012-10-21 14:29:08 UTC
What directory is your file dialog trying to open? Now if the answer is DISTDIR, you owe me two internets.
Comment 3 Jory A. Pratt gentoo-dev 2012-10-21 18:52:45 UTC
16.0.1 has just been added to tree, if you can duplicate with it please update your report.
Comment 4 Martin von Gagern 2012-10-21 19:11:04 UTC
(In reply to comment #2)
> What directory is your file dialog trying to open? Now if the answer is
> DISTDIR, you owe me two internets.

Not $DISTDIR, but ~/downloads/java.

(In reply to comment #3)
> 16.0.1 has just been added to tree, if you can duplicate with it please
> update your report.

Will do so after my next sync. Will report back the moment I encounter this again. If you don't hear from me within the month, then I assume this issue will have vanished for good.
Comment 5 Martin von Gagern 2012-10-31 19:32:15 UTC
Just had this
Comment 6 Martin von Gagern 2012-10-31 19:34:45 UTC
Sorry, wrong button, meant to edit the subject.

Had a freeze again in firefox-16.0.2. Not related to file chooser dialog this time. Instead the issue occurred while following a link. ~/.xsession-errors shows the same three error messages described in comment #0.
Comment 7 Martin von Gagern 2012-11-01 12:11:12 UTC
Had this yet again, this time apparently triggered by launching a second firefox process, which attempts to operate as a remote and open a window in the first. Same error message. Now I've attached gdb to my running firefox, with a breakpoint in g_return_if_fail_warning. With a bit of luck, that will get me a backtrace for the g_once_init_leave assertion at least. Reproducing this thing is still a problem.
Comment 8 Martin von Gagern 2012-11-09 21:47:57 UTC
Created attachment 329040 [details]
backtrace from g_return_if_fail_warning

(In reply to comment #7)
> Now I've attached gdb to my running firefox, with a breakpoint in
> g_return_if_fail_warning.

Here is a backtrace from when g_return_if_fail_warning got called. This happens two times, for the two critical assertion errors, and the attachment covers both.

This time, Dropbox might have been involved in triggering this: I used the Dropbox tray icon to open the Dropbox website, which opened a new firefox tab. I guess I might have activated a different firefox window first, and when I eventually got to the Dropbox tab, things froze. At least that's how I remember it, but I might have mixed things up in my memory.
Comment 9 Martin von Gagern 2012-11-17 12:30:47 UTC
Yet again, this time perhaps triffered by mozplugger embedding an okular window to view some pdf.
Comment 10 Thomas 2013-03-14 21:12:41 UTC
I can confirm the same as in #7: as soon as I try to open a second instance of firefox, the first one freezes forever with the same gdk messages.
This is even 100% reproducible with all plugins and addons disabled, as well as starting "firefox -safe-mode".

[www-client/firefox-19.0.2 / arch=i686]
Comment 11 Thomas 2013-03-15 05:50:55 UTC
Update:

this only seems to happen when starting firefox via KDE (shortcut), and *not* when starting from a xterm/konsole window.
Also reproducible when starting with a new user profile (removing ~/.mozilla).

Workaround: 

edit the properties of the shortcut and activate "start in shell"

(found here: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1085972 comment #2)
Comment 12 Jory A. Pratt gentoo-dev 2015-01-06 14:29:01 UTC
If you can reproduce with 31.3.0 from mozilla overlay please re-open. Please update bug info completely if reopened to ensure we via it.