Closed Bug 1106154 Opened 10 years ago Closed 10 years ago

[e10s] closing tab JUST in the moment it loads and starts rendering (the DOM) freezes Nightly!

Categories

(Core :: General, defect)

37 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
e10s - ---

People

(Reporter: filip.rydlo, Unassigned)

Details

Attachments

(1 file)

1. Use TeamView (if possible) to access the target PC: Any modern AMD CPU, Windows 8.1 (ENGLISH) x64 (clean install, fully updated) with Nightly version 36.0a1_2014-11-22 (x64!) installed.

2. Go to "Options" - "General" and check "Enable E10S (multi-process)". And restart Nighly, to be sure it has fully taken effect from the start of it.
3. Click on the yellow question-mark down there directly in the Options. Or ANY OTHER website will do! ...
4. Click "x" of the new tab while it is still *loading*.
5. Repeat steps 3 and 4 again and AGAIN... , untill you HIT the "X" just in the right milisecond WHEN it has loaded AND has just started to render DOM!

Outcome: Nightly will FREEZ forever. Unresponsive to any clicks or keys, the tab will STILL remain opened, but you cannot switch tabs nor do anything. You have frozen the Nightly - *indefinitely*. (use task manager to kill it).
Expected behavior: Tab should close like it normally does.

Note: There *might* be some race-condition involved! This might be very uneasy to spot and debug.


Suggested FIX:  When the EVENT "close tab" is generated, it should first *check* whether the loading process of the TAB being closed is NOT in any critical phase (careful, it is out of sync = running in a different thread! Use mutex/lock...for data exchange about the phase of loading).
If it is detected that for example the construction of the DOM is in ongoing process, it should "wait"  or generate whole ANOTHER event "POSTPONED CLOSE TAB" and send it to the TAB....... and when the tab finishes any phase, it can CHECK there ... if such an EVENT has been sent to it - and close itself safely FROM WITHIN the same *thread* that is constructing/loading the TAB!  This should work thread-safely. Well, in theory at least... :)
Blocks: e10s
Alias: CloseTab_FREEZ_Forever
Severity: major → normal
Iteration: 36.1 → ---
tracking-e10s: --- → ?
Component: Tabbed Browser → Untriaged
Priority: P2 → --
Product: Firefox → Core
Summary: Multiprocess Enabled: closing tab JUST in the moment it lods and starts rendering (the DOM) freezes Nightly! → [e10s] closing tab JUST in the moment it loads and starts rendering (the DOM) freezes Nightly!
Target Milestone: Firefox 37 → ---
Version: 36 Branch → 37 Branch
Hey Filip - are you able to reproduce this behaviour without connecting to the machine with TeamViewer? Like, are you able to reproduce this if you're sitting in front of the target machine?
Flags: needinfo?(filip.rydlo)
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #1)
> Hey Filip - are you able to reproduce this behaviour without connecting to
> the machine with TeamViewer? Like, are you able to reproduce this if you're
> sitting in front of the target machine?

No. At least not yet. I cannot reproduce it on the *latest* version of Nightly x64 at all. It might be fixed already as a side-effect of some change or some other bugfix.
Flags: needinfo?(filip.rydlo)
Assuming TeamViewer was hitting our accessibility API (like RDP does), is it possible that some recent e10s-related change in the accessibility API fixed this, tbsaunde?
Flags: needinfo?(tbsaunde+mozbugs)
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #3)
> Assuming TeamViewer was hitting our accessibility API (like RDP does), is it
> possible that some recent e10s-related change in the accessibility API fixed
> this, tbsaunde?

seems unlikely, but its pretty hard to say anything without a stack or profile.
Flags: needinfo?(tbsaunde+mozbugs)
duping to e10s RDP bug 1096834
No longer blocks: e10s
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
(In reply to Chris Peterson (:cpeterson) from comment #5)
> duping to e10s RDP bug 1096834


What evidence do we have this is a dup?
Resolution: DUPLICATE → FIXED
Moving from Core::Untriaged to Core::General https://bugzilla.mozilla.org/show_bug.cgi?id=1407598
Component: Untriaged → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: