Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser stop redrawing on resize. #2492

Closed
ekalchev opened this issue Aug 17, 2018 · 9 comments
Closed

Browser stop redrawing on resize. #2492

ekalchev opened this issue Aug 17, 2018 · 9 comments
Labels
upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium.
Milestone

Comments

@ekalchev
Copy link

ekalchev commented Aug 17, 2018

Bug Report

  • What version of the product are you using?
    65

  • What architecture x86 or x64?
    x86

  • On what operating system?

    • Win10
  • Are you using WinForms, WPF or OffScreen?
    WPF + Winforms control

  • What steps will reproduce the problem?
    I provided reproducible sample application https://ufile.io/jfzop

  • What is the expected output? What do you see instead?
    To work!

  • Please provide any additional information below.

It seems browser rendering is get broken if you resize the browser window while a page is loading and you have the settings below. Commenting this line

     settings.CefCommandLineArgs.Add("disable-gpu-vsync", "1"); //Disable Vsync

fixes the problem. I guess this will be only reproducible on machines with GPU.

Yes, if you enable these options and resize the window

        settings.CefCommandLineArgs.Add("disable-gpu", "1");
        settings.CefCommandLineArgs.Add("disable-gpu-compositing", "1");
        settings.CefCommandLineArgs.Add("disable-gpu-vsync", "1"); //Disable Vsync
@ekalchev
Copy link
Author

ekalchev commented Aug 17, 2018

Took me two days to figure out what is causing this. I hope someone to look at this sample app that is reproducing the issue. You need to start resizing the window while the page is loading.
https://ufile.io/jfzop

@amaitland
Copy link
Member

Please no zip files as per the issue template.

Unclear if you tested with the CEF sample application, please clarify. If your experiencing the problem with cefclient there is no point opening an issue here.

@ekalchev
Copy link
Author

This is reproducible with cefclient 3.3325.1758 but not with latest 3.3440.1805.gbe070f9. I guess it was fixed.

@amaitland amaitland added the upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium. label Aug 18, 2018
@amaitland amaitland added this to the 69.0.0 milestone Aug 18, 2018
@amaitland
Copy link
Member

You can try 67.0.0-pre01 which is based on 3.3396.1786.gd3e36d0 / Chromium 67.0.3396.79 if you haven't already tried a 3396 branched version.

master is currently based on 3.3440.1803 you can use a CI build if your game, seehttps://github.com/cefsharp/CefSharp#releases-1

Closing as upstream.

@wuruile
Copy link

wuruile commented Nov 28, 2018

This problem still exists on 69.0.0, so, this problem wasn't fixed at all !

@xzycn
Copy link

xzycn commented Jan 15, 2019

@wuruile Maybe you could try to use v71.0.0-pre01 now, otherwise v71.0.0 in a couple of days.It solves my problem :)

@TGolias-zz
Copy link

@xzycn @wuruile I can confirm the problem still exists on v71.0.0. That's actually one of the big reasons I may have to use WinForms version hosted in a WindowsFormsHost for the project I'm working on.

Weirdly I noticed that minimizing the Window hosting the WPF WebBrowser then maximizing it causes the browser to start redrawing again. If this gives anyone any ideas on a workaround let me know, I'd be willing to give them a shot.

-and if I end up finding anything I'll be sure to post my findings here.

@amaitland
Copy link
Member

There is another bug in CEF causing problems on resize, you can track the progress at https://bitbucket.org/chromiumembedded/cef/issues/2614/osr-resizing-issue-surface-invariants

@CaptBli
Copy link

CaptBli commented Feb 28, 2020

Similar to @TGolias, we have a couple of browsers that we use for two different sets of data. When it stops rendering we have to switch to the other browser and back and it starts rendering again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream These issues require fixing in the Chromium Embedded Framework(CEF) or Chromium.
Projects
None yet
Development

No branches or pull requests

6 participants