ataranto / CefSharp

.Net binding for the Chromium Embedded Framework
Other
62 stars 34 forks source link

CefSharp WPF control crashes when interacting with HTML drop down lists (HTML select tag) #41

Closed kishorereddik closed 11 years ago

kishorereddik commented 11 years ago

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:

  1. Launch CefSharp.WinForms.Example.exe
  2. Browse the attached 'dropdown-lists.html' file OR you can browse any website that has form with drop down select list, for example http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select
    1. Try repeatedly click on the drop down menu to display the popup
  3. You can also notice artifacts while rendering the popup
  4. 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>

 
ataranto commented 11 years ago

should be fixed by abaaa9784156af0269ea3f9f5cbd4114a3a21f86