Closed Bug 646759 Opened 13 years ago Closed 13 years ago

"Closing Tab" Bug (Hangs!)

Categories

(Firefox :: Tabbed Browser, defect)

4.0 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 585813

People

(Reporter: marco.piazza, Unassigned)

Details

(Whiteboard: [dupeme])

User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Firefox/4.0

Closing a tab often cause a system hang; Stop script dialog appear, but tab will never close and a "New tab" totaly empty appear !


Reproducible: Sometimes

Steps to Reproduce:
1. Open many Tabs (at least 3/4)
2. Start to close one in the middle

Actual Results:  
System hangs ... "Stop script or continue" dialog appear
Does the same happen in Safe Mode (http://support.mozilla.com/en-US/kb/Safe%20Mode)? Also which URLs have been loaded in those tabs?
Version: unspecified → 4.0 Branch
Works for me on:
Mozilla/5.0 (Windows NT 5.1; rv:2.2a1pre) Gecko/20110331 Firefox/4.2a1pre
I'm confused by this statement :
"System hangs ... "Stop script or continue" dialog appear"
IS the os freezing or Firefox ?
(In reply to comment #3)
> I'm confused by this statement :
> "System hangs ... "Stop script or continue" dialog appear"
> IS the os freezing or Firefox ?

Ok guys, I try to better explain ...
First: I'am using Firefox v4.0 under Windows XP SP3
I found a problem that happen often ... not always but often !
I use to read a forum (any forum not a specific one) opening all the new posts using the CTRL (to open in a new tab) ...
Than I start reading each post in each tab ...
Sometimes when I click the X on the right of the tab (to close it) Firefox hangs ... and some seconds after an error dialog appear (a firfox dialog) telling something like: "A script is not respondig bla bla bla"
At this point I have two possibility (2 buttons) Stop script or Continue.
I choose "Stop scritp" but the tab will never close unless I close Firefox ...

Hope that its more clear now ...

Best regards
The stop script dialog should contain the script name.
Can you copy that name and post it here ?
You should try the safemode as suggested by Henrik.
(In reply to comment #5)
> The stop script dialog should contain the script name.
> Can you copy that name and post it here ?
> You should try the safemode as suggested by Henrik.

Last time I had the problem, this was the script :

Script: chrome://browser/content/tabbrowser.xml:1608

Thanks !
In case it happens again, please click filename and line number which should normally be a link and post the line and the 2-3 lines around it.
(In reply to comment #7)
> In case it happens again, please click filename and line number which should
> normally be a link and post the line and the 2-3 lines around it.

Just happend .. here is the copy/paste of the dialog :

----------------
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: chrome://browser/content/tabbrowser.xml:1608
----------------

Two buttons : "Continue" "Stop Script"

I press "Stop Script" and what happen is :
1) The Tab do not close now and ever
2) A other tabs already present will never close
3) A New blank tab is showed with "New Tab" as text window and a blank icon
4) The only way to close tabs is to close FireFox !

Good night
(In reply to comment #8)
> Script: chrome://browser/content/tabbrowser.xml:1608

This line has to be a link. As said in comment 7 please click on it and copy&paste some lines around the failing one.
(In reply to comment #9)
> (In reply to comment #8)
> > Script: chrome://browser/content/tabbrowser.xml:1608
> This line has to be a link. As said in comment 7 please click on it and
> copy&paste some lines around the failing one.

Link ?? .. it was not a link !
I will try to do the same thing and try to clik but I am quite sure that it was not a link ...
Well, you are right. I mixed it up with the error console. Please paste this link into the location bar and open the URL directly. Copy all of it's content and use a text editor to find the causing line. Thanks.
(In reply to comment #11)
> Well, you are right. I mixed it up with the error console. Please paste this
> link into the location bar and open the URL directly. Copy all of it's content
> and use a text editor to find the causing line. Thanks.

Ok ... as soon as its happen again ! ;)
Load view-source:chrome://browser/content/tabbrowser.xml, hit Ctrl+U, hit Ctrl+L, enter 1608 and you'll see the line.
(In reply to comment #13)
> Load view-source:chrome://browser/content/tabbrowser.xml, hit Ctrl+U, hit
> Ctrl+L, enter 1608 and you'll see the line.

Done !

      <method name="_endRemoveTab">
        <parameter name="aTab"/>
        <body>
          <![CDATA[
            if (!aTab || !aTab._endRemoveArgs)
              return;

            var [aCloseWindow, aNewTab] = aTab._endRemoveArgs;
            aTab._endRemoveArgs = null;


The 1608 is the "return;" ... and now ?
Good night
Thanks Marco, and that looks like a dupe. I'm sure I have seen that mentioned line already somewhere else, but can't find it at the moment.
Whiteboard: [dupeme]
Got it by searching in comments. It's a dupe of bug 585813.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Hey Marco, can you provide a list of extensions that you have installed? It's possible they're interfering somehow.
(In reply to comment #17)
> Hey Marco, can you provide a list of extensions that you have installed? It's
> possible they're interfering somehow.

Just have two, but one is disabled

1) Java Quick Starter v1.0 (enabled and running)
2) Microsoft .NET Framwork Assistant (disabled, was disabled by Firfox v4.0 after install for incompatible reasons)

Have a good night
You need to log in before you can comment on or make changes to this bug.