Skip to content

WPF - WritableBitmapRenderHandle.CreateOrUpdateBitmap possible lock contention #3448

@ghost

Description

  • Environment Information

    • CefSharp WPF v86.0.241
    • Windows 10 x64
    • .Net Framework v4.8
  • Issue Description
    Drag and drop functionality of a web page running React DnD (https://react-dnd.github.io/react-dnd) causes the entire application running the browser to hang in semi rare cases (never recovering). Stack tracing with dotTrace reveals a possible lock contention in the WPF library, specifically at the CefSharp.WPF.Rendering.WritableBitmapRenderHandle.CreateOrUpdateBitmap() method.

image

  • Steps to reproduce

    • Navigate to a web page that has internal drag and drop functionality (aka. it is possible to drag and drop content within the web page), preferably a web page that uses React DnD in the backend to handle dragging.
    • Drag and drop content within the web page repeatedly.
    • In some cases this should then hang and leave the browser unresponsive.
  • Additional Information

    • The script (TypeScript) that handles dragging in our case: https://pastebin.com/VnaME63a (somewhat obfuscated for IP reasons)
    • dotTrace of the suspected lock contention:
      image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions