Try repeatedly click on the drop down menu to display the popup
You can also notice artifacts while rendering the popup
It crashes with the following exception:
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=CefSharp.Wpf
StackTrace:
at memcpy(Void* , Void* , UInt32 )
at CefSharp.Wpf.WebView.SetBuffer(Int32* currentWidth, Int32* currentHeight, Int32 width, Int32 height, Void* fileMappingHandle, Void* backBufferHandle, InteropBitmap* ibitmap, ActionHandler paintDelegate, Void* buffer)
at CefSharp.Wpf.WebView.SetPopupBuffer(Int32 width, Int32 height, Void* buffer)
at CefSharp.RenderClientAdapter.OnPaint(RenderClientAdapter* , CefRefPtr* browser, cef_paint_element_type_t type, vector<CefRect\,std::allocator >* dirtyRects, Void* buffer)
Note: I am not experiencing this problem with CefSharp.WinForms control. It is working fine with the WinForms control.
CefSharp WPF control crashes when interacting with HTML drop down lists (HTML select tag)
The issue can be re-producible with CefSharp.WinForms.Example.exe
Steps to re-produce:
It crashes with the following exception:
System.AccessViolationException was unhandled Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Source=CefSharp.Wpf StackTrace: at memcpy(Void* , Void* , UInt32 ) at CefSharp.Wpf.WebView.SetBuffer(Int32* currentWidth, Int32* currentHeight, Int32 width, Int32 height, Void* fileMappingHandle, Void* backBufferHandle, InteropBitmap* ibitmap, ActionHandler paintDelegate, Void* buffer) at CefSharp.Wpf.WebView.SetPopupBuffer(Int32 width, Int32 height, Void* buffer) at CefSharp.RenderClientAdapter.OnPaint(RenderClientAdapter* , CefRefPtr* browser, cef_paint_element_type_t type, vector<CefRect\,std::allocator >* dirtyRects, Void* buffer)
Note: I am not experiencing this problem with CefSharp.WinForms control. It is working fine with the WinForms control.
'dropdown-lists.html
<!DOCTYPE html>