Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

entire Brave UI becomes unresponsive #10436

Closed
kjozwiak opened this issue Aug 11, 2017 · 22 comments · Fixed by #10640
Closed

entire Brave UI becomes unresponsive #10436

kjozwiak opened this issue Aug 11, 2017 · 22 comments · Fixed by #10640

Comments

@kjozwiak
Copy link
Member

  • Did you search for similar issues before submitting this one?
    Yes

  • Describe the issue you encountered:
    Detaching/Attaching tabs right after Brave has been installed might cause the entire UI to become unresponsive. When this happens, Brave is unusable and needs to be closed using either the Task Manager or the Taskbar under Windows. When clicking on "Print" or "Find in page" via the menu, you'll receive console errors which are outlined under the screenshot section of the bug.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    Windows 10 x64 Build: 10.0.15063 (can't check other OS's right now as MBP being repaired)

  • Brave Version (revision SHA):

Brave | 0.18.14 - Reproduced
rev | ad92d02
Muon | 4.3.6
libchromiumcontent | 60.0.3112.78

Brave | 0.18.22 - Reproduced
rev | d850e28
Muon | 4.3.9
libchromiumcontent | 60.0.3112.90

  • Steps to reproduce: (this needs to be done fairly quickly)
    1. Launch a clean install of Brave (either 0.18.14 or 0.18.22)
    2. Close the about:welcome tab
    3. Load duckduckgo.com within the remaining about:newtab
    4. Open a new tab using the "+" button and load about:preferences
    5. Detach the about:preferences tab into it's own separate window
    6. Quickly attach the about:preferences back into the original window where duckduckgo.com is still opened

You'll notice that the entire UI becomes unresponsive.

  • Actual result:
    The entire Brave UI becomes completely unresponsive. Basically bricks the browser.

  • Expected result:
    The Brave UI should never become unresponsive.

  • Will the steps above reproduce in a fresh profile? If not what other info can be added?
    Yes

  • Is this an issue in the currently released version?
    Yes, 100% reproducible using Brave 0.18.14 | rev: ad92d02 (currently live)

  • Can this issue be consistently reproduced?
    Yes, 100% reproducible with both 0.18.14 & 0.18.22 using the above STR.

  • Screenshot if needed:

Example of the issue occurring:

uifrozen

Error message when attempting to select "Print" or "Find on Page" when the UI is unresponsive:

error

@kjozwiak kjozwiak added this to the 0.18.x Hotfix milestone Aug 11, 2017
@LaurenWags
Copy link
Member

Could not repro on MacOS.
10436

@LaurenWags
Copy link
Member

On Win10 VM, didn't repro exactly. Sometimes this worked without any problems, and twice the tab I re-attached was bricked, but other tabs and the 3 dots menu worked fine.

@kjozwiak
Copy link
Member Author

I managed to reproduce the same issue on two different Win 10 machines that I remote accessed. I'll try getting a VM running on my desktop once I get back. I'll add more info once I've investigated further. Unless one of the developers manages to reproduce this in the meantime via a VM/physical machine.

@LaurenWags
Copy link
Member

@ghost
Copy link

ghost commented Aug 12, 2017

I've seen this issue as well.

Brave | 0.18.14
rev | ad92d02
Muon | 4.3.6
libchromiumcontent | 60.0.3112.78
V8 | 6.0.286.44
Node.js | 7.9.0
Update Channel | dev
OS Platform | Microsoft Windows [7 Ultimate]
OS Release | 6.1.7601
OS Architecture | x64

EDIT:
Updated to Windows 10 and no longer experience this issue.

@bbondy
Copy link
Member

bbondy commented Aug 13, 2017

@kjozwiak could you attach your app.entry.js? I'd like to inspect the line numbers in the screenshot with the call stack

@ghost
Copy link

ghost commented Aug 13, 2017

I have been able to reproduce the bug reliably on win10. When you drag an drop the undocked tab inside of another tab it causes the browser to not function. If you drag it to the right of any open tab it works fine.
test

@kjozwiak
Copy link
Member Author

@kjozwiak could you attach your app.entry.js? I'd like to inspect the line numbers in the screenshot with the call stack

app.entry.js.zip

@bbondy
Copy link
Member

bbondy commented Aug 14, 2017

I think this will be fixe din 0.19.x with my index changes, so moving there. I do have a couple of cleanups I'll push that will make it less likely though.

@bbondy bbondy modified the milestones: 0.19.x (Beta Channel), 0.18.x Hotfix Aug 14, 2017
bbondy added a commit that referenced this issue Aug 14, 2017
This happens sometimes when dragging out / combining tabs

This doesn't solve #10436 but it makes it less likely to happen because
of some randomly encountered js errors when detaching.

Auditors: @bsclifton
bbondy added a commit that referenced this issue Aug 14, 2017
This happens sometimes when dragging out / combining tabs

This doesn't solve #10436 but it makes it less likely to happen because
of some randomly encountered js errors when detaching.

Auditors: @bsclifton
bbondy added a commit that referenced this issue Aug 14, 2017
This happens sometimes when dragging out / combining tabs

This doesn't solve #10436 but it makes it less likely to happen because
of some randomly encountered js errors when detaching.

Auditors: @bsclifton
bbondy added a commit that referenced this issue Aug 14, 2017
This happens sometimes when dragging out / combining tabs

This doesn't solve #10436 but it makes it less likely to happen because
of some randomly encountered js errors when detaching.

Auditors: @bsclifton
@bbondy bbondy self-assigned this Aug 15, 2017
@binhonglee
Copy link

Happened to me on both Windows 10 and macOS.

Couldn't repro on MacOS as it just works when I "close it and open it again".

As for Windows 10, it work on my 3rd attempt reopening the browser. Here's a walkthrough on what I found in each attempts.

  1. Refreshed, closed.
  2. Disabled and reenabled Shields. Still can't see anything (white blank screen like OP) but I did realize that I can highlight the page and click on links if they are positioned so on the page.
  3. Moved my mouse around. Select the only tab opened from the tab bar. Shows everything.

Not sure what does this add to the process but I hope it helps.

@LaurenWags
Copy link
Member

@LaurenWags
Copy link
Member

@bbondy bbondy modified the milestones: 0.18.x Hotfix, 0.19.x (Beta Channel) Aug 17, 2017
dfperry5 pushed a commit to dfperry5/browser-laptop that referenced this issue Aug 18, 2017
This happens sometimes when dragging out / combining tabs

This doesn't solve brave#10436 but it makes it less likely to happen because
of some randomly encountered js errors when detaching.

Auditors: @bsclifton
@LaurenWags
Copy link
Member

@davidgxue
Copy link

I can confirm that I am experiencing the exact same issue. Right now I have to avoid detaching tabs to prevent this...
I am using Windows 8.1 Pro Version 6.3 (Build 9600) 64 bit
UI becomes unresponsive

@kevinp2
Copy link

kevinp2 commented Aug 22, 2017

The same thing appears on Windows 7 with Brave 0.18.23 Unsure about the root cause.

bbondy added a commit that referenced this issue Aug 23, 2017
Fix #10436
Fix #9385
Fix #9722
Fix #10561
Fix #9083
Fix #9671
Fix #10038
Fix #10384
Fix #10532

and probably several others.
@kjozwiak
Copy link
Member Author

kjozwiak commented Aug 31, 2017

BTW, I managed to reproduce this a few times on macOS while using Brave v0.18.23 a few days ago so it's definitely an issue macOS and not isolated to Windows.

@kjozwiak
Copy link
Member Author

Once #10749 is fixed, I'll retest this and see if it was fixed. If not, I'll move this back to the 0.19.x (Beta Channel) milestone.

@bbondy bbondy closed this as completed in 32ef086 Aug 31, 2017
bbondy added a commit that referenced this issue Aug 31, 2017
Auditors: @bridiver

Fix #10436

This is covered by a test already but the bug is a very intermittent race
condition.
bbondy added a commit that referenced this issue Aug 31, 2017
Auditors: @bridiver

Fix #10436

This is covered by a test already but the bug is a very intermittent race
condition.
bbondy added a commit that referenced this issue Aug 31, 2017
Auditors: @bridiver

Fix #10436

This is covered by a test already but the bug is a very intermittent race
condition.
@bbondy bbondy reopened this Sep 2, 2017
@bbondy
Copy link
Member

bbondy commented Sep 2, 2017

I narrowed this down more.

Window 1
  Tab 1
  Tab 2

The key thing here is if you close window 1 for a tab that originated in window 1 then it reproduces.

So if you keep window 1 open and tear off tab1 and 2 into a new window, but always return to Window 1, then it will never reproduce.

if you Move the tabs to a Window 2, and Window 1 closes (or even close it yourself without tearing off last tab), then it will always reproduce.

It seems like there's some link to the originating window that isn't updated and when the originating window is closed it causes problems like crashing and dead tab.

@bbondy
Copy link
Member

bbondy commented Sep 5, 2017

Fixed in muon 4.3.16
brave/muon@3fccef6

Please wait to test this until you have a build with muon 4.3.16

@srirambv
Copy link
Collaborator

srirambv commented Sep 6, 2017

Verified on 0.18.27 with steps mentioned here #10436 (comment). No issues found.

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