Mac version - Canvas or Rectangle makes app crash

Created at 22 Dec 2023, 15:12
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MA

magickeys.trade

Joined 22.12.2023

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


@magickeys.trade
Replies

PanagiotisCharalampous
23 Dec 2023, 08:48

Hi there,

Can you please provide the complete indicator source code?

Best regards,

Panagiotis


@PanagiotisCharalampous