Error Exception #3B086C2C in cTrader 4.8.904.0

Created at 08 Apr 2024, 14:34
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!
AJ

ajaycc3

Joined 08.04.2024

Error Exception #3B086C2C in cTrader 4.8.904.0
08 Apr 2024, 14:34


Hi guys,

I'm testing my cBot and it's working perfectly fine on my windows computers but I have now tested it on my back and I get the below error:

Error Exception #3B086C2C in cTrader 4.8.904.0

I have downloaded and installed - NET 7.0 SDK (v7.0.306) - macOS x64 Installer! as suggested but I still get this error.

Can anyone help / advice? 

 

Thank you

AJ


@ajaycc3
Replies

PanagiotisCharalampous
09 Apr 2024, 05:19

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis


@PanagiotisCharalampous

Waxy
17 Apr 2024, 08:35

Hello Panagiotis,

I'm experimenting something with Ajay also and I don't have a crash, but I have an inconsistent behavior, here's a simple code, it doesn't crash, but while it is shown perfectly on Windows (with a few differences between versions), it's not visible on Mac at all.

Here's a code sample:

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo.Robots;

[Robot(AccessRights = AccessRights.None)]
public class MacIssue : Robot
{
    private Grid _grid;
    private LabelWithTextBox _control1;
    private ButtonTextBoxWithControl _control2;
    private int _colCounter;

    protected override void OnStart()
    {
        _grid = new Grid(1, 15)
        {
            //ShowGridLines = true,
            Width = 1000,
            Height = 30,
            HorizontalAlignment = HorizontalAlignment.Left,
            VerticalAlignment = VerticalAlignment.Top,
            Margin = new Thickness(0, 30, 0, 0)
        };
        
        _control1 = new LabelWithTextBox(1.0);

        _grid.AddChild(_control1, 0, _colCounter);
        //_grid.Columns[2].SetWidthInPixels(130);
        _grid.Columns[_colCounter].SetWidthToAuto();
        _colCounter++;

        _control2 = new ButtonTextBoxWithControl(100.0);
        
        _grid.AddChild(_control2, 0, _colCounter);
        _grid.Columns[_colCounter].SetWidthToAuto();
        _colCounter++;
        
        Chart.AddControl(_grid);
    }

    protected override void OnTick() { }

    protected override void OnStop() { }

    public int InputRrrBaseTp { get; } = 1;
}

public class ButtonTextBoxWithControl : WrapPanel
{
    public TextBox TextBox { get; }
    public Button Button { get; }

    public ButtonTextBoxWithControl(double defaultRiskValue)
    {
        Orientation = Orientation.Horizontal;
        
        Button = new Button
        {
            Text = "Control 2",
            Width = 70,
            CornerRadius = 0
        };
        
        TextBox = new TextBox
        {
            Width = 50,
            Text = defaultRiskValue.ToString("0.00"),
        };
        
        var defaultBackgroundColor = TextBox.BackgroundColor;
        
        TextBox.TextChanged += args =>
        {
            if (!ValidateDouble(TextBox.Text))
            {
                TextBox.BackgroundColor = Color.Red;
                return;
            }
            
            TextBox.BackgroundColor = defaultBackgroundColor;
        };
        
        var upDownController = new UpDownController();
        
        AddChild(Button);
        AddChild(TextBox);
        AddChild(upDownController);
    }
    
    public void NormalizeValue()
    {
        TextBox.Text = double.Parse(TextBox.Text).ToString("0.00");
    }
    
    private bool ValidateDouble(string value)
    {
        return double.TryParse(value, out var result) && result >= 0;
    }
}

public class LabelWithTextBox : WrapPanel
{
    public TextBox TextBox { get; }

    public LabelWithTextBox(double defaultValue)
    {
        Orientation = Orientation.Horizontal;
        
        var textBlock = new Button
        {
            Text = "Control 1",
            Width = 50,
            Height = 26,
            FontSize = 12,
            //HorizontalContentAlignment = HorizontalAlignment.Center,
            //VerticalContentAlignment = VerticalAlignment.Center,
            HorizontalAlignment = HorizontalAlignment.Center,
            VerticalAlignment = VerticalAlignment.Center,
            //Padding = new Thickness(0, 5, 0, 0),
            CornerRadius = 0,
            //IsEnabled = false,
        };
        
        TextBox = new TextBox
        {
            Width = 70,
            Height = 26,
            Text = $"{defaultValue:F2}",
            IsReadOnly = true,
            FontSize = 12,
            HorizontalAlignment = HorizontalAlignment.Center,
            VerticalAlignment = VerticalAlignment.Center,
            TextAlignment = TextAlignment.Center,
        };
        
        AddChild(textBlock);
        AddChild(TextBox);
    }
}

public class UpDownController : StackPanel
{
    public Button UpButton { get; } 
    public Button DownButton { get; }

    public UpDownController()
    {
        Orientation = Orientation.Vertical;
        
        UpButton = NewButton("▲");

        //UpButton.Click += args => { OnUpButtonClicked(); };
        
        DownButton = NewButton("▼");
        
        //DownButton.Click += args => { OnDownButtonClicked(); };
        
        AddChild(UpButton);
        AddChild(DownButton);
    }

    private Button NewButton(string text) =>
        new()
        {
            Text = text,
            FontSize = 7,
            //Width = 10,
            //Height = 10,
            CornerRadius = 0
        };
}

@Waxy

ajaycc3
19 Apr 2024, 10:57

RE: Error Exception #3B086C2C in cTrader 4.8.904.0

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 


@ajaycc3

PanagiotisCharalampous
19 Apr 2024, 13:36

RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis


@PanagiotisCharalampous

ajaycc3
20 Apr 2024, 14:41

RE: RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

Hi Panagiotis,

When is the next release? As this works fine for windows? Just issues with mac.

 

 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis

 


@ajaycc3

PanagiotisCharalampous
22 Apr 2024, 06:20

RE: RE: RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

ajaycc3 said: 

Hi Panagiotis,

When is the next release? As this works fine for windows? Just issues with mac.

 

 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis

 

We do not have a date for it unfortunately.


@PanagiotisCharalampous

ajaycc3
12 Jul 2024, 07:14

RE: RE: RE: RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

When is the next release? As this works fine for windows? Just issues with mac.

 

 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis

 

We do not have a date for it unfortunately.

Hi there,

Wanted to know if this has been fixed yet on mac as its been quite awhile now?

Thanks 


@ajaycc3

PanagiotisCharalampous
12 Jul 2024, 07:23

RE: RE: RE: RE: RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

ajaycc3 said: 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

When is the next release? As this works fine for windows? Just issues with mac.

 

 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis

 

We do not have a date for it unfortunately.

Hi there,

Wanted to know if this has been fixed yet on mac as its been quite awhile now?

Thanks 

Hi,

A new update was released the previous days. Do you still experience this problem?

Best regards,

Panagiotis


@PanagiotisCharalampous

ajaycc3
17 Jul 2024, 12:38

RE: RE: RE: RE: RE: RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

PanagiotisCharalampous said: 

ajaycc3 said: 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

When is the next release? As this works fine for windows? Just issues with mac.

 

 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis

 

We do not have a date for it unfortunately.

Hi there,

Wanted to know if this has been fixed yet on mac as its been quite awhile now?

Thanks 

Hi,

A new update was released the previous days. Do you still experience this problem?

Best regards,

Panagiotis

 

 

I have just done a fresh install of cTrader for mac and I can confirm that it is still not working. - Can this be fixed asap please ?


@ajaycc3

PanagiotisCharalampous
18 Jul 2024, 06:03

RE: RE: RE: RE: RE: RE: RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

ajaycc3 said: 

PanagiotisCharalampous said: 

ajaycc3 said: 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

When is the next release? As this works fine for windows? Just issues with mac.

 

 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis

 

We do not have a date for it unfortunately.

Hi there,

Wanted to know if this has been fixed yet on mac as its been quite awhile now?

Thanks 

Hi,

A new update was released the previous days. Do you still experience this problem?

Best regards,

Panagiotis

 

 

I have just done a fresh install of cTrader for mac and I can confirm that it is still not working. - Can this be fixed asap please ?

Hi there,

Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

Best regards,

Panagiotis
 


@PanagiotisCharalampous

ajaycc3
12 Nov 2024, 20:36 ( Updated at: 13 Nov 2024, 06:22 )

RE: RE: RE: RE: RE: RE: RE: RE: RE: Error Exception #3B086C2C in cTrader 4.8.904.0

Ok, I have just done this. Can someone please help me with this issue! It's been months!

It all works on windows fine but on mac it does not. We have used many different macs and they all have the latest ctrader too!

 

 

PanagiotisCharalampous said: 

ajaycc3 said: 

PanagiotisCharalampous said: 

ajaycc3 said: 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

When is the next release? As this works fine for windows? Just issues with mac.

 

 

PanagiotisCharalampous said: 

ajaycc3 said: 

Hi Panagiotis,

Any update on this?

 

PanagiotisCharalampous said: 

Hi there,

Can you please share with us the source code of the cBot?

Best regards,

Panagiotis

 

Hi there,

We will fix it in an upcoming release.

Best regards,

Panagiotis

 

We do not have a date for it unfortunately.

Hi there,

Wanted to know if this has been fixed yet on mac as its been quite awhile now?

Thanks 

Hi,

A new update was released the previous days. Do you still experience this problem?

Best regards,

Panagiotis

 

 

I have just done a fresh install of cTrader for mac and I can confirm that it is still not working. - Can this be fixed asap please ?

Hi there,

Could you please send us some troubleshooting information the next time this happens? Please paste a link to this discussion inside the text box before you submit it.

Best regards,

Panagiotis
 

 


@ajaycc3

ajaycc3
26 Nov 2024, 14:54

FIX ASAP! ITS BEEN MONTHS AND MONTHS!

I have done this a week or so ago!

Can someone fix this issue on mac please 


@ajaycc3