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

Webview crash after detaching the tab #13369

Closed
btlechowski opened this issue Mar 2, 2018 · 10 comments
Closed

Webview crash after detaching the tab #13369

btlechowski opened this issue Mar 2, 2018 · 10 comments

Comments

@btlechowski
Copy link
Contributor

btlechowski commented Mar 2, 2018

Steps to Reproduce

  1. add new tab (with plus sign)
  2. detach the added tab

Actual result:
Webview crash
the pages on the original window may crash also

Expected result:
No webview crash

Reproduces how often:
100%

Brave Version

Brave: 0.21.654 
V8: 6.5.254.26 
rev: bc6272cac63ac15bf1449017c991243c1c843644 
Muon: 5.1.3 
OS Release: 6.1.7601 
Update Channel: Beta 
OS Architecture: x64 
OS Platform: Microsoft Windows 
Node.js: 7.9.0 
Brave Sync: v1.4.2 
libchromiumcontent: 65.0.3325.88

cc: @NejcZdovc @bsclifton @darkdh @kjozwiak

@btlechowski btlechowski added this to the 0.21.x w/ Chromium 65 (Beta Channel) milestone Mar 2, 2018
@hferreiro
Copy link
Contributor

This bug was previously reported here: brave/muon#478.

@bridiver
Copy link
Collaborator

bridiver commented Mar 9, 2018

so this is windows/linux only? Can't be reproduced on mac?

@hferreiro
Copy link
Contributor

@bridiver correct, Windows/Linux only

@srirambv
Copy link
Collaborator

srirambv commented Mar 12, 2018

On 0.21.656 it doesn't cause webview crash instead it shows white blank screen. Reattaching or reloading the page doesn't load it correctly.

@bridiver bridiver self-assigned this Mar 12, 2018
@bridiver
Copy link
Collaborator

@srirambv what muon version does 0.21.656 have? I'm not able to reproduce on win10 with a local build

@bridiver
Copy link
Collaborator

I'm using 4.9.0. I tried dragging the tab out of the window and the detach context menu item and both worked without a problem.

@bridiver
Copy link
Collaborator

I take that back, I can repro the white screen when detaching a background tab

@srirambv
Copy link
Collaborator

@bridiver this is about:brave info

Brave 0.21.656
V8 6.5.254.31
rev c8e9925
Muon 4.9.0
OS Release 10.0.16299
Update Channel Beta
OS Architecture x64
OS Platform Microsoft Windows
Node.js 7.9.0
Brave Sync v1.4.2
libchromiumcontent 65.0.3325.146

@hferreiro
Copy link
Contributor

The crash is related to not creating new surface ids when the device scale factor is not 1.

I have applied some upstream commits that fix the issue in https://github.com/brave/muon/commits/fix/13369. I had to cherry-pick from my PR about using git apply (brave/muon#341) because the current hook doesn't support creating new files.

@bridiver
Copy link
Collaborator

closed with brave/muon@2231f5b

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