Skip to content

Bug Report: App crashes when drawing text on pointer pressed in GraphicsView (Windows) #29418

Closed

Description

@Kamalesh-Periyasamy

Description

The application crashes with exit code 0xc000027b when drawing text using DrawText() in a GraphicsView in response to a PointerPressed event on Windows. This happens particularly when ManipulationMode is set to All and using custom font.

MauiApp1_CdeG31uL7s.mp4

In our app, we update the appearance of text when it's pressed (e.g., changing color, weight, or other styles). This is essential to provide immediate feedback for user interaction. This requires us to trigger a redraw during PointerPressed and render the text.

This is a valid and common use case, especially for interactive or touch-based UIs. The crash prevents us from supporting basic touch interactions involving text on Windows in .NET MAUI.

⚙️ Implementation Details

  1. Implemented a custom view using View and ViewHandler.
  2. Utilized GraphicsView to draw text.
  3. Set ManipulationMode to All and subscribed to the PointerPressed event to trigger text redraw.
  4. Used a custom font in the sample project for text rendering.

Steps to Reproduce

  1. Run the attached sample on Windows.

  2. Rapidly press and move the pointer simultaneousely over the drawn text.

  3. The app will crash with the following error:

Error Code: 0xc000027b
Exit Code: 3221226107

Note: Issue occurs when using combination of ManipulationMode All, Custom Font and Text redraw.

MauiApp1.zip

Link to public reproduction project repository

No response

Version with bug

9.0.60 SR6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Activity

  1. added
    t/bug
    on May 9, 2025
  2. ghost added
    s/verified
    on May 9, 2025
  3. ghost added
    s/triaged
    on May 9, 2025
  4. ghost added
    area-drawing
    on May 9, 2025
  5. added this to the Backlog milestone on May 9, 2025
  6. added
    partner/syncfusion
    on Aug 4, 2026
  7. added a commit that references this issue on Aug 14, 2026
    588045f
  8. added 3 commits that reference this issue on Aug 27, 2026
    b1afe0f
    0bb6cca
    5c2ff3e
  9. 10 remaining items

  10. added 6 commits that reference this issue on Sep 27, 2026
    254ac8b
    f5a0356
    1853684
    91910a6
    12b742e
    d75af20
  11. kubaflo commented on Oct 12, 2026

    @kubaflo
    Contributor

    Thank you for the report and the investigation details. We are closing this as completed. PR #37419 explicitly fixes #29418 by clearing disposed Win2D drawing sessions after GraphicsView draw callbacks and records repeated drawing/shutdown validation; no post-fix crash report is recorded.

    Fixing changes: #37419 (merged into inflight/current).

    This records the merged source changes; it does not imply that the fix is included in every released .NET MAUI package.

    If the original scenario still fails in a build that includes these changes, please comment here with the exact version and reproduction details so we can reopen and investigate. The existing reproduction remains available; a new issue is not required.

  12. added 6 commits that reference this issue on Oct 13, 2026
    3980b6b
    7eaad38
    6ab1ea9
    aea8e09
    d723778
    a5bddb0
  13. locked and limited conversation to collaborators on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-drawingpartner/syncfusionplatform/windowss/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions