Skip to content
This repository

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

Closed
jooiiee opened this Issue September 18, 2012 · 20 comments

5 participants

jooiiee arantius Ventero Hans-Petter Fjeld Raphael
jooiiee

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.

arantius
Collaborator

Where would I find the "Unity global menubar extension" ? I can only find https://launchpad.net/globalmenu-extension 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

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

arantius
Collaborator

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

Ventero

The package containing the addon is called firefox-globalmenu.

arantius
Collaborator

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 https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
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?

Hans-Petter Fjeld

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?

arantius
Collaborator

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 http://gist.github.com/ 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

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.

Hans-Petter Fjeld

https://gist.github.com/3781878 - about:support
https://gist.github.com/3781893 - dpkg -l

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

Hans-Petter Fjeld

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

Raphael

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.

arantius
Collaborator

@akerbos , crash reports certainly can't hurt.

Raphael

@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
Collaborator

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?
https://github.com/downloads/arantius/greasemonkey/greasemonkey-2012.10.01.beta.xpi

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

Hans-Petter Fjeld

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
Collaborator

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.

Hans-Petter Fjeld

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

arantius
Collaborator

Here's a newer build with my proposed real fix:
https://github.com/downloads/arantius/greasemonkey/greasemonkey-2012.10.04.beta.xpi

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 closed this issue from a commit October 04, 2012
arantius Remove menu items asynchronously.
Fixes some mysterious crashing bug on Ubuntu Unity.

Fixes #1632
6876ae7
arantius arantius closed this in 6876ae7 October 04, 2012
Raphael

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

Hans-Petter Fjeld

@arantius Seems fine, great work! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.