CBot instance crashed with error #C15EF25B - BUG (issue found).

Created at 07 Aug 2023, 14:07
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!
EK

ekalyvio

Joined 13.06.2023

CBot instance crashed with error #C15EF25B - BUG (issue found).
07 Aug 2023, 14:07


Hello,

every time I execute a buy or sell order, a bot I have produces crashes with the below error and restarts.

Anyone knows what might it be?

07/08/2023 19:53:10.155 | CBot instance [EKVWCD, NAS100, m1] started.
07/08/2023 19:54:00.431 | Executing Market Order to Buy 0.1 NAS100 (SL: 100, TP: 100)
07/08/2023 19:54:00.884 | → Executing Market Order to Buy 0.1 NAS100 (SL: 100, TP: 100) SUCCEEDED, Position PID13636673
07/08/2023 19:54:00.915 | CBot instance [EKVWCD, NAS100, m1] crashed with error #C15EF25B.
07/08/2023 19:54:02.228 | CBot instance [EKVWCD, NAS100, m1] started.

The error occurs on a Pepperstone Live account but when I switch to the Demo one everything works fine.

The minimal code producing the error is:

using cAlgo.API;
using cAlgo.API.Indicators;
using System.Diagnostics;
using System.Security.Cryptography;
namespace EKVWCD
{
   [Robot(AccessRights = AccessRights.None)]
   public class EKVWCD : Robot
   {
       protected override void OnStart()
       {
#if DEBUG
           System.Diagnostics.Debugger.Launch();
#endif
       }
       protected override void OnBarClosed()
       {
           ExecuteMarketOrder(TradeType.Buy, Symbol.Name, 0.1, "TEST", 100, 100);
       }
   }
}

 

EDIT:

After doing plenty of tests I found out that running an ExecuteMarketOrder inside the OnBarClosed() event raises such error. When running it on the OnTick() or OnBar() events that error doesn't get produced. As such it seems that it is a cTrader Automate bug,

 

Thanks

Efthymios


@ekalyvio
Replies

firemyst
08 Aug 2023, 00:02 ( Updated at: 21 Dec 2023, 09:23 )

To make sure @Spotware sees this, please also report this issue and link to thread via the cTrader desktop app:


@firemyst

ekalyvio
08 Aug 2023, 14:28 ( Updated at: 21 Dec 2023, 09:23 )

RE: CBot instance crashed with error #C15EF25B - BUG (issue found).

firemyst said: 

To make sure @Spotware sees this, please also report this issue and link to thread via the cTrader desktop app:

Thanks!

I just reported the error even though there was a character limit on the Report Technical Issue page and I had some difficulty as the limit doesn't allow you to copy-paste any source code larger than a few lines.


@ekalyvio

scotpip
17 Sep 2024, 13:15

RE: CBot instance crashed with error #C15EF25B - BUG (issue found).

Bug still unfixed as of 17/09/24.


@scotpip

PanagiotisCharalampous
18 Sep 2024, 05:21

RE: RE: CBot instance crashed with error #C15EF25B - BUG (issue found).

scotpip said: 

Bug still unfixed as of 17/09/24.

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