Skip to content

SP5: Two plot control and keyboard input will stackoverflow #2609

@taya92413

Description

@taya92413

Bug Report

Issue: Two plot controls and then keyboard input will System.StackOverflowException: 'Exception_WasThrown' in WindowsBase.dll or CoreLib.dll.
I tested 5.0.4 5.0.3 5.0.2 have the same problem(.NET 6.0),5.0.1 5.0.0 can be used normally,I also tested .NET Framework 4.6.2, 5.0.4 can be used normally.

Reproducing: add two plot control and focus on the window and type something with the keyboard

螢幕擷取畫面 2023-04-26 161931

// a code sample 
<Grid>
   <Scottplot:WpfPlot x:Name="wpfplot" HorizontalAlignment="Left" VerticalAlignment="Top" Height="249" Width="352" Margin="10,10,0,0" />
   <Scottplot:WpfPlot x:Name="wpfplot_Copy" HorizontalAlignment="Left" VerticalAlignment="Top" Height="249"Width="352" Margin="400,10,0,0" />       
</Grid>

System Details

  • ScottPlot Version: 5.0.4 beta
  • Operating System: Windows11
  • Application Type: WPF
  • .NET Version: .NET6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions