You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug Report: App crashes when drawing text on pointer pressed in GraphicsView (Windows) #29418
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
Implemented a custom view using View and ViewHandler.
Utilized GraphicsView to draw text.
Set ManipulationMode to All and subscribed to the PointerPressed event to trigger text redraw.
Used a custom font in the sample project for text rendering.
Steps to Reproduce
Run the attached sample on Windows.
Rapidly press and move the pointer simultaneousely over the drawn text.
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.
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.
Activity
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
10 remaining items
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
kubaflo commentedon Oct 12, 2026
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.
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)
[Windows] Fix GraphicsView crash during repeated drawing (#37419)