Hi, I was just send here to report a bug(?) that arose only a few month ago using WasResized().
https://github.com/cefsharp/CefSharp/issues/2547
CEF Version: 3.3578.1860.g36610bd (x64) (http://opensource.spotify.com/cefbuilds/index.html)
C++ 17 x64 via MSVC 2017
Win10 1809 x64
It was first reported in October 2018 and I found the issue discussion in search for the same bug in C++ only a few days ago.
I call WasResized() in the applications main thread whenever a Size message from windows via Win32 arrives for the window I show the off screen rendered html content in I get via "OnPaint()".
CEFs MessageLoop runs in another thread and the command line arguments are always and only:
"multi-threaded-message-loop" "off-screen-rendering-enabled" "enable-gpu" "cache-path=cache"
Data arrives via OnPaint() just fine even when resizing quite fast and rough until the "Check failed: ..." error occures.
It seems there is some kind of mutex/spinlock missing whichs guards the data while "AsyncLayerTreeFrameSink::SubmitCompositorFrame()" runs over it at the same time.
The same error occures when calling "WasResized()" from the CEF UI Thread via "CefPostTask()".
NO other CEF function is triggered by the application other than "WasResized()" after the page has been loaded and some Objects, Functions and a custom protocol have been registered.
[2019.01.14 20:49:08.217] OnWindowResolutionChanged(): (1316 886)
[2019.01.14 20:49:08.227] OnWindowResolutionChanged(): (1311 883)
[0114/204908.239:FATAL:async_layer_tree_frame_sink.cc(190)] Check failed: last_submitted_size_in_pixels_.height() == frame.size_in_pixels().height() (887 vs. 886)
[2019.01.14 20:49:08.241] OnWindowResolutionChanged(): (1298 876)
[2019.01.14 20:49:08.253] OnWindowResolutionChanged(): (1291 872)
...
[2019.01.14 20:49:08.729] OnWindowResolutionChanged(): (619 470)
[0114/204908.736:ERROR:gles2_cmd_decoder.cc(5642)] GLES2DecoderImpl: Context lost because resize failed.
[0114/204908.736:ERROR:gles2_cmd_decoder.cc(5772)] Error: 5 for Command kResizeCHROMIUM
[0114/204908.737:ERROR:gpu_channel_manager.cc(215)] Exiting GPU process because some drivers cannot recover from problems.
I and some other people from the other than C++ world would love to see this problem being solved quickly by a fix or a "correct usage hint".
Thanks for your time.