Application crashes after installing 6.2025.1.13, with the following error: Only one clip operation currently supported

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
McSaverCharting
Newbie
Newbie
Posts: 18
Joined: Mon Jan 29, 2024 12:00 am

Application crashes after installing 6.2025.1.13, with the following error: Only one clip operation currently supported

Post by McSaverCharting » Tue Feb 11, 2025 12:07 pm

I have up Steema Chart to 6.2025.1.13 and it crashes the app when displaying the main application window which contain five charts.
If i restored to 6.2024.11.6 and it works fine.

at Microsoft.Maui.Graphics.Win2D.W2DCanvasState.ClipPath(PathF path, WindingMode windingMode)
at Microsoft.Maui.Graphics.Win2D.W2DCanvas.ClipPath(PathF path, WindingMode windingMode)
at Steema.TeeChart.Maui.Drawing.CanvasMaui.ClipRectangle(Rect r)
at Steema.TeeChart.Maui.Drawing.Graphics3DBase.Steema.TeeChart.Drawing.IGraphics3D.ClipRectangle(Rectangle r)
at Steema.TeeChart.Tools.Annotation.DrawText(IGraphics3D g)
at Steema.TeeChart.Tools.Annotation.DrawText()
at Steema.TeeChart.Tools.Annotation.ChartEvent(EventArgs e)
at Steema.TeeChart.Tools.BannerTool.ChartEvent(EventArgs e)
at Steema.TeeChart.Chart.BroadcastToolEvent(EventArgs e)
at Steema.TeeChart.Chart.InternalDraw(Boolean noTools)
at Steema.TeeChart.Chart.InternalDraw()
at Steema.TeeChart.Maui.TChart.Draw(ICanvas g, RectF rect)
at Microsoft.Maui.Graphics.Win2D.W2DGraphicsView.OnDraw(CanvasControl sender, CanvasDrawEventArgs args)
at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_global__Microsoft_Graphics_Canvas_UI_Xaml_CanvasControl__global__Microsoft_Graphics_Canvas_UI_Xaml_CanvasDrawEventArgs_.EventState.<GetEventInvoke>b__1_0(CanvasControl sender, CanvasDrawEventArgs args)
at ABI.Windows.Foundation.TypedEventHandler`2.Do_Abi_Invoke[TSenderAbi,TResultAbi](Void* thisPtr, TSenderAbi sender, TResultAbi args)

Using Visual Studio : Microsoft Visual Studio Community 2022 (ARM 64-bit) - Preview
Version 17.13.0 Preview 5.0

DotNet : 9
MauiControl : 9.0.30
CommunityToolKit : 10.030

Pep
Site Admin
Site Admin
Posts: 3315
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Application crashes after installing 6.2025.1.13, with the following error: Only one clip operation currently suppo

Post by Pep » Wed Feb 12, 2025 8:02 am

Hello,
can you pleae tell us in which platform this happens to you (windows, android or ios) ?

Thanks

McSaverCharting
Newbie
Newbie
Posts: 18
Joined: Mon Jan 29, 2024 12:00 am

Re: Application crashes after installing 6.2025.1.13, with the following error: Only one clip operation currently suppo

Post by McSaverCharting » Wed Feb 26, 2025 11:23 am

Sorry, I took so long to response.

Windows !

Pep
Site Admin
Site Admin
Posts: 3315
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Application crashes after installing 6.2025.1.13, with the following error: Only one clip operation currently suppo

Post by Pep » Fri Feb 28, 2025 7:51 am

Ok, no problem, let us do some checks here and back to you asap.

Thanks

Pep
Site Admin
Site Admin
Posts: 3315
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Application crashes after installing 6.2025.1.13, with the following error: Only one clip operation currently suppo

Post by Pep » Tue Mar 11, 2025 11:46 pm

Hello,
could you please share me the code you're using ? or just tell me which series types you're drawing ?
I've been trying to reproduce the problem by usign some series types and all worked fine.
Maybe it's happenning at the time to draw something on canvas ?

Thanks

McSaverCharting
Newbie
Newbie
Posts: 18
Joined: Mon Jan 29, 2024 12:00 am

Re: Application crashes after installing 6.2025.1.13, with the following error: Only one clip operation currently suppo

Post by McSaverCharting » Wed Mar 12, 2025 2:27 pm

After much research, the problem is caused by the use of your BannerTool.

I was dynamically creating a BannerTool in the ViewModel's InitializingChartControl() which is called in my constructor of the View.

If I comment out the creation and references to it, the application runs fine.

Sample creation code:
_BannerTool = new BannerTool(Chart);

_BannerTool.Shape.Color = System.Drawing.Color.Transparent;
_BannerTool.Shape.Font.Color = System.Drawing.Color.LightGray;
_BannerTool.Shape.Font.Size = 15;
_BannerTool.Shape.Shadow.Visible = false;
_BannerTool.Shape.Pen.Visible = false;
_BannerTool.Position = AnnotationPositions.Center;
_BannerTool.TextAlign = Steema.TeeChart.Drawing.StringAlignment.Center;
_BannerTool.Text = "";

Hope this help you!

Pep
Site Admin
Site Admin
Posts: 3315
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Application crashes after installing 6.2025.1.13, with the following error: Only one clip operation currently suppo

Post by Pep » Fri Mar 14, 2025 12:14 am

Hello,
it's strange, because I've just checked and it's working fine here by using a BannerTool.
Please, can you check if the attached sample demo that uses the code you sent to me, is working fine to you ?
MauiTest.zip
(223.65 KiB) Downloaded 1 time
Thanks

Post Reply