Greasemonkey 1.1 causes crash with firefox 15.0.1 on ubuntu 12.04 #1632

jooiiee opened this Issue Sep 18, 2012 · 20 comments


None yet

5 participants

jooiiee commented Sep 18, 2012

When Greasemonkey 1.1 is enabled in firefox 15.0.1 but without any installed scripts and the native Unity global menubar extension enabled firefox crashes when focus is shifted from the firefox window, even if to another firefox window (Eg. settings) or any other application (eg thunderbird).

When greasemonkey is disabled the problem does not occur. The problem has been occurring for about 3 days and is very possible to replicate. I have only tested the problem on one computer.

If either of the addons are disabled there are no problems and no other addons seem to cause problems.

A temporary solution to the problem is to disable greasemonkey.


Where would I find the "Unity global menubar extension" ? I can only find which doesn't have any download link. Is this part of "Ubuntu Firefox Modifications 2.1.1" ?

I'd also suspect that the bug is there, and not in Greasemonkey. They seem to have compiled code which is much more likely to crash Firefox.

jooiiee commented Sep 20, 2012

Unity global menubar is part of ubuntu and installed automaticly, to use it you would have to install ubuntu 12.04.


I'm running Ubuntu 12.04 and I don't have it.

Ventero commented Sep 20, 2012

The package containing the addon is called firefox-globalmenu.


Thanks. I've now installed that, and I definitely get unity style menus. But no crashes.

  1. On Ubuntu 12.04
  2. Have installed "firefox" and "firefox-globalmenu" package. *
  3. Start completely empty Firefox profile.
  4. Focus all sorts of different windows including Firefox: nothing unexpected happens.
  5. Install
  6. Focus all sorts of different windows including Firefox: nothing unexpected happens.

* Like:

ii  firefox                                              15.0.1+build1-0ubuntu0.12.04.1          Safe and easy web browser from Mozilla
ii  firefox-globalmenu                                   15.0.1+build1-0ubuntu0.12.04.1          Unity appmenu integration for Firefox

And: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1 and Greasemonkey is 1.1 as publicly hosted today.

jooliee: Does following these steps give you the same result? Perhaps there's a third extension/some other setting that is causing the issue?


I have followed your steps arantius, and I have replicated the results experienced by jooiiee.

$ cat /etc/issue
Ubuntu 12.04.1 LTS \n \l

  1. made a new firefox profile
  2. installed greasemonkey through "Find extension"
  3. changed focus
  4. crash

Are there anything else I could try that would be helpful to tracking down this issue?


Given that I didn't have the firefox-globalmenu package installed, there's probably something else I don't have either. I think the best next step is for anybody seeing this to go to about:support, click the "Copy all to clipboard" button, and get that text to me. Paste it into a and put the link here if you're comfortable being public or send it to me (this username at gmail) privately if you prefer. Some "dpkg -l" output might also be useful, but I don't know yet.

jooiiee commented Sep 25, 2012

I noticed the problem does not occur on my laptop. I will compare the two devices about:support and dpkg output tomorrow or later today if i have time.

@atluxity - about:support - dpkg -l

only now I could not get that profile to crash again... strange...


It is back to crashing again.. strange...

akerbos commented Sep 29, 2012

I have a similar problem. I am not sure about focus changes; for me it crashed when FF opened some window (Browser popup for writing a new mail in a webmailer, dialogs from plugins, ...). Of course that would also cause focus to change.

Linux 3.2.0-31-generic-pae #50-Ubuntu SMP i686 i686 i386 GNU/Linux
Ubuntu 12.04
Greasemonkey 1.1
Firefox 15.0.1 (for Ubuntu canonical 1.0)

Would crash reports help you? I have like a dozen of them.


@akerbos , crash reports certainly can't hurt.

akerbos commented Sep 30, 2012

@arantius Here goes:

Report 1
Report 2
Report 3
Report 4
Report 5
Report 6
Report 7
Report 8
Report 9
Report 10

Note that I disabled all plugins and did not observe the problem. I then reenabled the plugins in arbitrary order; the problem reappeared after I enabled Greasemonkey.

arantius commented Oct 1, 2012

Not a a lot for me to go on in those crash reports, but I see that they all mention uGlobalMenu::OnClose.

To anybody experiencing crashing, does this version also crash?

If not, then I have a good idea where the crash is coming from.

atluxity commented Oct 2, 2012

I could not get this version to crash. I have not spent extensive time with it, will try to introduce it to my working-profile and spend a day with it. I will check back in at the end of my day.

arantius commented Oct 2, 2012

Thanks! P.S. Don't use that version too long after you're done testing, it's intentionally broken, to exclude the bit that I assumed was inducing the crash.

atluxity commented Oct 2, 2012

It was running in my browser for 7 hours without any crashes.

arantius commented Oct 4, 2012

Here's a newer build with my proposed real fix:

Again, please test and report your findings, because I can't reproduce this bug so I can't know if any fix works or not on my own.

@arantius arantius added a commit that closed this issue Oct 4, 2012
@arantius arantius Remove menu items asynchronously.
Fixes some mysterious crashing bug on Ubuntu Unity.

Fixes #1632
@arantius arantius closed this in 6876ae7 Oct 4, 2012
akerbos commented Oct 4, 2012

@arantius Can't reproduce now. Good job, thanks!

atluxity commented Oct 5, 2012

@arantius Seems fine, great work! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment