My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 4938: Firebug hangs the browser on invalid JavaScript (too much recursion)
28 people starred this issue and may be notified of changes. Back to list
 
Reported by Miroslaw...@gmail.com, Oct 25, 2011
Previously it would log (in the firebug console) a warning about too much recursion, now firefox hangs.

* a TEST CASE (yes, no matter how trivial)
Attached.

Which version of Firebug? 1.8.3
Which browser (incl. version)? firefox 7.0.1
On which operating system? WinXP and Fedora 15

* detailed STEPS TO REPRODUCE the issue
1. Unzip attached testcase
2. open hang.html 
3. if firefox still works open and enable firebug console, and refresh page
4. firefox now hangs :(

What is the expected result? 
warning

What do you see instead?
no warning, browser hangs


testcase.zip
8.1 KB   Download
Oct 25, 2011
#1 sebastia...@gmx.de
I can confirm, that the example freezes Firefox using FF 7.0.1 + FB 1.8.3 as well as FF 10.0a1 + FB 1.9.0a4 on Win7.
Status: Triaged
Cc: sebastia...@gmx.de odva...@gmail.com
Labels: Type-Defect ui Test-case-available
Oct 25, 2011
#2 sebastia...@gmx.de
FF 10.0a1 at least gives an unresponsive script message:
resource://firebug/firebug-service.js, line 4211
Jan 11, 2012
#3 sebastia...@gmx.de
I created another test case for this at http://getfirebug.com/tests/issues/4938/issue4938.html.
I tried it with FF 3.6 + FB 1.5.4/1.6.2 and it was working fine. So this is a regression and therefore I marked it as blocker.

Sebastian
Labels: -Test-case-available Test-case-in-suite blocks-1.10
Jan 18, 2012
#4 sebastia...@gmx.de
 Issue 5144  has been merged into this issue.
Feb 3, 2012
#5 sebastia...@gmx.de
 Issue 2679  has been merged into this issue.
Feb 5, 2012
#6 jesdisci...@gmail.com
I observed  Issue 2679  in 3.0.16, so if this bug didn't exist at that time they are distinct.
Feb 5, 2012
#7 sebastia...@gmx.de
Unfortunately your test case of  issue 2679  didn't work.
I assumed both issues are caused by the same problem. Though we'll see as soon as this one is fixed. In the meantime it would be good, if you could create a new test case for 2679, so the problem can be reproduced.

Sebastian
Feb 16, 2012
#8 sebastia...@gmx.de
 Issue 5245  has been merged into this issue.
Feb 16, 2012
#9 twig.ngu...@gmail.com
Hi there,

I'm just copying over the initial post from my other ticket  issue 5245  in the hope that it helps someone figure out what's going on.


-----
- Enable Firebug "script" panel.
- Visit either Gizmodo or LifeHacker.
http://lifehacker.com/5821634/why-you-should-ditch-paypal-and-use-these-other-services-to-send-people-money

Browser will get stuck and the "Stop script" dialog will appear.

> A script on this page may be busy, or it may have stopped
> responding. You can stop the script now, or you can continue to see
> if the script will complete.
>
> Script: resource://firebug/firebug-service.js:3881

I can view these sites if I remember to "clear activation lists" before opening it. Otherwise I have to restart Firefox after the loops begin.
Mar 9, 2012
#10 rorysteel2005
I was able to get around having to restart my browser by having a second window open. Then when the "Unresponsive script" popped up I was able to disable the script tab in firebug and press stop script (can't do anything in the same window as the popup and stop does not work).

Firefox 10.0.2
Mar 22, 2012
#11 sebastia...@gmx.de
 Issue 5344  has been merged into this issue.
Mar 22, 2012
#12 sebastia...@gmx.de
(No comment was entered for this change.)
Labels: -ui debugger
Mar 26, 2012
#13 sebastia...@gmx.de
To make sure this issue can be found easily it is about recursive function calls, which kill / freeze Firefox.

Sebastian
Mar 30, 2012
#14 sebastia...@gmx.de
Obviously a change in Firefox between 5.0 and 8.0 caused this.
I tried this using FB 1.8.4 and while I got the error message in FF 5.0 about "too much recursion", FF 8.0 just crashes.

Unfortunately I don't have any other versions in between anymore to narrow the problem further down.

I posted a Firefox bug related to this at https://bugzil.la/682793.

Sebastian
Apr 2, 2012
#15 sebastia...@gmx.de
Issue 2490 holds another discussion about this. So maybe both should be joined?

Sebastian
Jun 18, 2012
Project Member #16 sebastia...@gmail.com
 Issue 5583  has been merged into this issue.
Jun 18, 2012
Project Member #17 sebastia...@gmail.com
(No comment was entered for this change.)
Cc: -sebastia...@gmx.de sebastia...@gmail.com
Jun 19, 2012
Project Member #18 odva...@gmail.com
(No comment was entered for this change.)
Summary: Firebug hangs the browser on invalid js (too much recursion).
Jun 20, 2012
Project Member #19 sebastia...@gmail.com
 Issue 5583  has been merged into this issue.
Jul 11, 2012
Project Member #20 sebastia...@gmail.com
 Issue 5583  has been merged into this issue.
Jul 12, 2012
Project Member #21 sebastia...@gmail.com
 Issue 5583  has been merged into this issue.
Jul 17, 2012
#22 Miroslaw...@gmail.com
firebug 1.10.0 is out, what about this issue?

it was marked 'blocks-1.10' but I can see it is still not fixed, is it?
Jul 18, 2012
Project Member #23 sebastia...@gmail.com
Since the status is still 'Triaged' you can see that this issue is unfortunately not fixed yet.
Honza already tried to fix this but wasn't successful.
Since 1.10 is out already, I changed the blocking label to 1.11.

Of course we agree that this should be fixed asap.

The workaround until then is to deactivate Firebug for the page that causes the infinite recursion and work with the Firefox Error Console to fix it.

Sebastian
Summary: Firebug hangs the browser on invalid JavaScript (too much recursion)
Labels: -blocks-1.10 blocks-1.11
Jul 18, 2012
Project Member #24 sroussey
(No comment was entered for this change.)
Labels: platform
Jan 29, 2013
#25 IeD3...@gmail.com
I am having this issue on the latest firefox and firebug versions available.

How can this be fixed??????

I get a jquery script request -to stop it from firefox when i refresh, with firebug on. WTF? i can not debug anymore...
Jan 30, 2013
Project Member #26 sebastia...@gmail.com
> How can this be fixed??????
This bug will be fixed as soon as we finished  issue 5421 .
For now there's a simple workaround:
1. Disable Firebug for that page
2. Do the steps that normally cause Firefox to stop responding when Firebug is enabled
3. Check the Firefox Error Console (accessible via Ctrl+Shift+J) for "too much recursion"
4. Fix the bug in your code

When the recursion bug in your code is fixed, you can enable Firebug again.

@Honza:
I tested this with the JSD2 branch and the hang did not occur there. Therefore I marked this as being blocked on  issue 5421  and as a 1.12 blocker, so we don't forget about it.

Sebastian
Labels: -blocks-1.11 blocks-1.12
Blockedon: fbug:5421
Jan 30, 2013
#27 IeD3...@gmail.com
I am not getting too much recursion, it is telling me that jquery hangs... and i have the option to stop it or not.

The thing is, that i am using firebug for debug and i need to refresh the page... It only happens with firebug Opened.

Chris
Jan 30, 2013
Project Member #28 sebastia...@gmail.com
Then your issue is unrelated to this issue.
Please create a new one and attach a test case to it, so we can reproduce your problem.

Sebastian
Feb 24, 2013
Project Member #29 simon.lindholm10
 Issue 6290  has been merged into this issue.
Feb 24, 2013
#30 iz65...@gmail.com
one more testcase: please take a look at attached file

steps to reproduce:
1. open file
2. click link
3. try to close popup
a) if firebug is closed, it freezes for a second and then i think it throws "too much recursion" exception
b) if firbug is active, it hangs up
if you comment bootstrap-dropdown script in sources, there's no recursion.

os: linux
mozilla: 19.0
firebug: 1.11.2


index.html
1.2 KB   View   Download
Mar 18, 2013
Project Member #31 simon.lindholm10
 Issue 6322  has been merged into this issue.
Mar 18, 2013
Project Member #32 simon.lindholm10
 Issue 6322  has been merged into this issue.
Jun 11, 2013
Project Member #33 sebastia...@gmail.com
 Issue 6515  has been merged into this issue.
Jun 12, 2013
Project Member #34 sebastia...@gmail.com
 Issue 6515  has been merged into this issue.
Jun 28, 2013
Project Member #35 sebastia...@gmail.com
 Issue 6560  has been merged into this issue.
Cc: florent....@gmail.com
Aug 22, 2013
Project Member #36 sebastia...@gmail.com
(No comment was entered for this change.)
Labels: -blocks-1.12 priority-high
Feb 24, 2014
#37 globexde...@gmail.com
Here is a very simple test case: http://jsfiddle.net/rg8mS/1/

If Firebug's Script Tab is enabled -- the browser will hang for at least 10 seconds on this page. If the Script panel is disabled - the "too much recursion" message is displayed almost instantly.
Feb 25, 2014
Project Member #38 sebastia...@gmail.com
Thanks for the test case. This obviously refers to https://bugzil.la/975611.

As mentioned in comment 26 this will be fixed when we finished moving to the new debugger API called JSD2, which will happen with the next major release.

Sebastian
Mar 27, 2014
Project Member #39 sebastia...@gmail.com
This issue has been fixed in Firebug 2.0 alpha 1
https://getfirebug.com/releases/firebug/2.0/firebug-2.0a1.xpi

Please let us know how it works for you.

Thanks for the help!

Sebastian
Status: Fixed
Labels: fixed-2.0-a1
Mar 28, 2014
Project Member #40 sebastia...@gmail.com
(No comment was entered for this change.)
Owner: sebastia...@gmail.com
Sign in to add a comment

Powered by Google Project Hosting