Skip to content

Win UI 3 app crashing when picking color of CartesianChart with ShareX #2035

@Erruar

Description

@Erruar

Describe the bug
My app crashes with strange errors if I try to capture the color of the CartesianChart, even if the app is in the background and inactive. As soon as I capture the color (using ShareX color picker) in the chart area, the app crashes with "Object reference not set to an instance of an object."
" at LiveChartsCore.Native.PointerController.OnWindowsPointerReleased(Object sender, PointerRoutedEventArgs e)
at WinRT._EventSource_global__Microsoft_UI_Xaml_Input_PointerEventHandler.EventState.b__1_0(Object sender, PointerRoutedEventArgs e)
at ABI.Microsoft.UI.Xaml.Input.PointerEventHandler.Do_Abi_Invoke(IntPtr thisPtr, IntPtr sender, IntPtr e)".

To Reproduce
Steps to reproduce the behavior:

  1. Create any CartesianChart with updated information in real time
  2. Use ShareX Color picker
  3. Capture any color in CartesianChart area
  4. See error

Expected behavior
Crash should not occur

Screenshots
Image

Desktop (please complete the following information):

  • OS: Windows 11 24H2
  • Win UI 3 App
  • Unpackaged, elevated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions