CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

CefSharp.WPf become unresponsive

Open PhilJenson opened this issue 7 years ago • 6 comments

Using Version 69.0.0 & 70.0.0-CI2828 (x86) within CefSharp.MinimalExample.Wpf on Win10

If the WPF minimal example is modified by placing the main grid within another grid so that the browser is positioned within the top righthand corner of resizable grid

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50*"/>
            <RowDefinition Height="50*"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="50*"/>
            <ColumnDefinition Width="50*"/>
        </Grid.ColumnDefinitions>

... Existing Grid 
        <GridSplitter Grid.Row="0" VerticalAlignment="Bottom" Height="10" HorizontalAlignment="Stretch"/>
        <GridSplitter Grid.Column="1" HorizontalAlignment="Left" Width="10" VerticalAlignment="Stretch"/>
        
    </Grid>

When resizing the browser using the splitters bars the Chromium browser becomes unresponsive and stops resizing. Within the MinimalExample you may need to move the splitter bar rapidly and many times before this happens but in my application it occurs more often.

PhilJenson avatar Dec 03 '18 10:12 PhilJenson

Welcome! We prefer to keep this issue track just for bug reports. If you have a question or need help with something I'd ask that you self close this issue and have a read over https://github.com/cefsharp/CefSharp/blob/master/ISSUE_TEMPLATE.md it contains background information, details on where to ask your questions Gitter or StackOverflow) should be used.

If you're reporting a bug, you must complete the bug report template see https://github.com/cefsharp/CefSharp/blob/master/ISSUE_TEMPLATE.md#bug-report. Please make sure you provide enough detail that someone else can reproduce the issue you are experiencing.

It's also important to remember that CefSharp is just a wrapper around the Chromium Embedded Framework(CEF), a lot of questions people have aren't actually CefSharp specific, they're generic to CEF and for those CEF has it's own support forum at http://magpcss.org/ceforum/index.php and issue tracker at https://bitbucket.org/chromiumembedded/cef

welcome[bot] avatar Dec 03 '18 10:12 welcome[bot]

Further to the above; the existing grid within the MinimalExample is position on Row 0, Column 1

PhilJenson avatar Dec 03 '18 10:12 PhilJenson

@PhilJenson Is there a reason you skipped using the Bug Report template? See https://github.com/cefsharp/CefSharp/blob/master/ISSUE_TEMPLATE.md#bug-report

Possibly a duplicate of #2547 (not enough information provided to tell).

You should test with the CEF Sample Application. Make sure you test using cefclient --multi-threaded-message-loop --off-screen-rendering-enabled --enable-gpu. This is likely an upstream issue.

There are lots of OSR rendering problems with CEF.

https://bitbucket.org/chromiumembedded/cef/issues/2370/cefrenderhandler-onpaint-stops-receiving https://bitbucket.org/chromiumembedded/cef/issues/2511/osr-cef3497-stops-receiving-onpaint https://bitbucket.org/chromiumembedded/cef/issues/2506/osr-video-playback-cef3538

Honestly I'd recommend using the WinForms version hosted in WPF.

amaitland avatar Dec 03 '18 11:12 amaitland

Clearly there was enough information for you to understand the issue.

Changing to WinForms is not an option. As there are so many bugs I guess we will have to stop using it.

PhilJenson avatar Dec 03 '18 11:12 PhilJenson

Clearly there was enough information for you to understand the issue.

Did you test with cefclient? Did you check the log file? Do you believe using the Bug Report Template an unreasonable request? It makes my life easier, so I'd ask that everyone do it.

Changing to WinForms is not an option

Hosting the WinForms version in WPF is trivial. The only advantage of the WPF version is that is supports transparency.

amaitland avatar Dec 03 '18 12:12 amaitland

I took the time tested with the MinimalExample, do not know what cefclient is (is this wpf control). The pertinent information requested in the BUG template was provided.

If the preferred solution is not to use WPF then why does it exist? Are there warnings I have missed which says use WinForms not WPF’ ?

Not a great fan of the Internet Police. Fell free to ignore my posting and close it if it does not confirm.

PhilJenson avatar Dec 03 '18 12:12 PhilJenson