Mac version - Canvas or Rectangle makes app crash
Mac version - Canvas or Rectangle makes app crash
22 Dec 2023, 15:12
Hello. We are trying to make our Indicator compatible with the newly released Mac version. The problem is, whenever I am adding a Canvas or a Rectangle element to a Stack Panel the program crashes. I tried different ways to understand what the issue could be but I have been unable to do so. Do you have other report of this? TextBlocks work perfectly for example.
var contentStacker = new StackPanel { Margin = "10 10 10 10", Orientation = Orientation.Vertical }; var plProgrCanvas = new Canvas(); plProgrCanvas.Margin = "0 4"; plProgrCanvas.Height = BAR_HEIGHT; plProgrBorder = new Rectangle() { StrokeColor = Color.Red, StrokeThickness = 2, RadiusX = 2, RadiusY = 2, Width = PANEL_WIDTH - 20, Height = BAR_HEIGHT }; plProgrCanvas.AddChild(plProgrBorder); contentStacker.AddChild(plProgrCanvas);
Report (I can provide it in full of needed)
Process: cTrader.Mac [41540]
Path: /Applications/cTrader.app/Contents/MacOS/cTrader.Mac
Identifier: com.spotware.ctmac
Version: 4.8 (848)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2023-12-22 16:07:10.3493 +0300
OS Version: macOS 13.0 (22A8380)
Report Version: 12
Anonymous UUID: 3303A365-732E-3C1A-8EF0-C98652F9F406
Sleep/Wake UUID: 2E6F1C70-286D-4AFD-AD98-7CE51F180210
Time Awake Since Boot: 250000 seconds
Time Since Wake: 18432 seconds
System Integrity Protection: enabled
Crashed Thread: 0 UI Thread Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
PanagiotisCharalampous
23 Dec 2023, 08:48
Hi there,
Can you please provide the complete indicator source code?
Best regards,
Panagiotis
@PanagiotisCharalampous