CBot instance XXX process was unexpectedly terminated.

Created at 09 Jan 2024, 10:58
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!
AC

acrigney

Joined 25.05.2017

CBot instance XXX process was unexpectedly terminated.
09 Jan 2024, 10:58


Guys I am udating one of my .net 6 bots and now 09/01/2024 21:46:01.363 | CBot instance ….. process was unexpectedly terminated.

I have the compiler in the automate tab setting as 6.0.412.

The bot properties are set to

  [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.FullAccess)]

My onstart has  

protected override void OnStart()
  {
      Print("Started");
      var result = System.Diagnostics.Debugger.Launch();

      if (result is false)
      {
          Print("Debugger launch failed");
      }
      else if (result is true)
      {
          Print("Debugger launched");
      }
          ….

But the debugger wont attach

Any help please!!!!

 


@acrigney
Replies

acrigney
09 Jan 2024, 12:26

All bots broken with this error now

Now all of my bots are doing this, must be my machine or something

And its IMPOSSIBLE TO DEBUG this?


@acrigney

PanagiotisCharalampous
10 Jan 2024, 07:25

Hi there,

Please send us some troubleshooting info and quote the link to this discussion.

Best Regards,

Panagiotis 


 


@PanagiotisCharalampous

acrigney
17 Jan 2024, 12:08 ( Updated at: 18 Jan 2024, 14:11 )

RE: CBot instance XXX process was unexpectedly terminated.

Thanks mate but I don't see how that is going to help you, maybe if I could send you a stack trace/symbolic dump or something?

The error occurs before the bot gets to debug. I have tried a clean rebuild etc. I just cloned one bot to make changes and it happened after making changes to the clone.  I will reclone again and see if I get the problem again before making any changes.

 

Best Regards,

                       Alistair

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion.

Best Regards,

Panagiotis 


 

 


@acrigney

acrigney
19 Jan 2024, 00:12 ( Updated at: 19 Jan 2024, 06:31 )

RE: RE: CBot instance XXX process was unexpectedly terminated.

I have tried rebuilding the bot several times, is there no way to debug this mate?

acrigney said: 

Thanks mate but I don't see how that is going to help you, maybe if I could send you a stack trace/symbolic dump or something?

The error occurs before the bot gets to debug. I have tried a clean rebuild etc. I just cloned one bot to make changes and it happened after making changes to the clone.  I will reclone again and see if I get the problem again before making any changes.

 

Best Regards,

                       Alistair

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion.

Best Regards,

Panagiotis 


 

 

 


@acrigney

PanagiotisCharalampous
19 Jan 2024, 06:42

RE: RE: RE: CBot instance XXX process was unexpectedly terminated.

acrigney said: 

I have tried rebuilding the bot several times, is there no way to debug this mate?

acrigney said: 

Thanks mate but I don't see how that is going to help you, maybe if I could send you a stack trace/symbolic dump or something?

The error occurs before the bot gets to debug. I have tried a clean rebuild etc. I just cloned one bot to make changes and it happened after making changes to the clone.  I will reclone again and see if I get the problem again before making any changes.

 

Best Regards,

                       Alistair

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion.

Best Regards,

Panagiotis 


 

 

 

Hi Alistair,

Unfortunately I cannot help you since I cannot reproduce this issue. So please follow my suggestion above.

Best regards,

Panagiotis


@PanagiotisCharalampous

acrigney
19 Jan 2024, 06:53 ( Updated at: 21 Jan 2024, 11:24 )

RE: RE: RE: RE: CBot instance XXX process was unexpectedly terminated.

OK mate I did a submit with the issue but I think I found that if I do a build inside CTrader it will then work. So something was out of sync perhaps with VS and2022 and Ctrader perhaps?

PanagiotisCharalampous said: 

acrigney said: 

I have tried rebuilding the bot several times, is there no way to debug this mate?

acrigney said: 

Thanks mate but I don't see how that is going to help you, maybe if I could send you a stack trace/symbolic dump or something?

The error occurs before the bot gets to debug. I have tried a clean rebuild etc. I just cloned one bot to make changes and it happened after making changes to the clone.  I will reclone again and see if I get the problem again before making any changes.

 

Best Regards,

                       Alistair

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion.

Best Regards,

Panagiotis 


 

 

 

Hi Alistair,

Unfortunately I cannot help you since I cannot reproduce this issue. So please follow my suggestion above.

Best regards,

Panagiotis

 


@acrigney

PanagiotisCharalampous
21 Jan 2024, 11:41

RE: RE: RE: RE: RE: CBot instance XXX process was unexpectedly terminated.

acrigney said: 

OK mate I did a submit with the issue but I think I found that if I do a build inside CTrader it will then work. So something was out of sync perhaps with VS and2022 and Ctrader perhaps?

PanagiotisCharalampous said: 

acrigney said: 

I have tried rebuilding the bot several times, is there no way to debug this mate?

acrigney said: 

Thanks mate but I don't see how that is going to help you, maybe if I could send you a stack trace/symbolic dump or something?

The error occurs before the bot gets to debug. I have tried a clean rebuild etc. I just cloned one bot to make changes and it happened after making changes to the clone.  I will reclone again and see if I get the problem again before making any changes.

 

Best Regards,

                       Alistair

PanagiotisCharalampous said: 

Hi there,

Please send us some troubleshooting info and quote the link to this discussion.

Best Regards,

Panagiotis 


 

 

 

Hi Alistair,

Unfortunately I cannot help you since I cannot reproduce this issue. So please follow my suggestion above.

Best regards,

Panagiotis

 

Could be, I can't know :)


@PanagiotisCharalampous

ctid402288
26 Nov 2024, 00:25 ( Updated at: 26 Nov 2024, 00:28 )

cbot process unexpectedly terminated

After a reboot on my machine, upon restarting my cbot l am now experiencing this issue.

21/08/2024 00:33:20.000 | Error | CBot instance [USDCHF, m30] process was unexpectedly terminated.

I have checked all timeout settings of downstream applications and have found they are generously set. Including  HTTP Timeout setting for RestSharp etcThey are all set for long running connections. I cannot understand why CTrader is dropping connection immediately after the connection is established. Please can you help. 


@ctid402288

PanagiotisCharalampous
26 Nov 2024, 06:48

RE: cbot process unexpectedly terminated

ctid402288 said: 

After a reboot on my machine, upon restarting my cbot l am now experiencing this issue.

21/08/2024 00:33:20.000 | Error | CBot instance [USDCHF, m30] process was unexpectedly terminated.

I have checked all timeout settings of downstream applications and have found they are generously set. Including  HTTP Timeout setting for RestSharp etcThey are all set for long running connections. I cannot understand why CTrader is dropping connection immediately after the connection is established. Please can you help. 

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

ctid402288
26 Nov 2024, 08:28 ( Updated at: 26 Nov 2024, 13:35 )

RE: RE: cbot process unexpectedly terminated

PanagiotisCharalampous said: 

ctid402288 said: 

After a reboot on my machine, upon restarting my cbot l am now experiencing this issue.

21/08/2024 00:33:20.000 | Error | CBot instance [USDCHF, m30] process was unexpectedly terminated.

I have checked all timeout settings of downstream applications and have found they are generously set. Including  HTTP Timeout setting for RestSharp etcThey are all set for long running connections. I cannot understand why CTrader is dropping connection immediately after the connection is established. Please can you help. 

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


 

I have reverted to CTrader version 4.8(909) and the cbot is working fine on there. I think there is a bug in version 5.0. I need version 5.0 because it is the only version on MacOS with backtesting capability. I would be eternally grateful if you could you sort it out please.


@ctid402288

ctid402288
26 Nov 2024, 08:47 ( Updated at: 26 Nov 2024, 13:35 )

RE: RE: RE: cbot process unexpectedly terminated

ctid402288 said: 

PanagiotisCharalampous said: 

ctid402288 said: 

After a reboot on my machine, upon restarting my cbot l am now experiencing this issue.

21/08/2024 00:33:20.000 | Error | CBot instance [USDCHF, m30] process was unexpectedly terminated.

I have checked all timeout settings of downstream applications and have found they are generously set. Including  HTTP Timeout setting for RestSharp etcThey are all set for long running connections. I cannot understand why CTrader is dropping connection immediately after the connection is established. Please can you help. 

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


 

I have reverted to CTrader version 4.8(909) and the cbot is working fine on there. I think there is a bug in version 5.0. I need version 5.0 because it is the only version on MacOS with backtesting capability. I would be eternally grateful if you could you sort it out please.

I have reinstalled Ctrader for mac version 5.0.22 and ran the cbot under backtesting and the error has emerged.  See screenshot attached. There id a comms bug in Version 5.0.


@ctid402288

PanagiotisCharalampous
26 Nov 2024, 13:45

RE: RE: RE: RE: cbot process unexpectedly terminated

ctid402288 said: 

ctid402288 said: 

PanagiotisCharalampous said: 

ctid402288 said: 

After a reboot on my machine, upon restarting my cbot l am now experiencing this issue.

21/08/2024 00:33:20.000 | Error | CBot instance [USDCHF, m30] process was unexpectedly terminated.

I have checked all timeout settings of downstream applications and have found they are generously set. Including  HTTP Timeout setting for RestSharp etcThey are all set for long running connections. I cannot understand why CTrader is dropping connection immediately after the connection is established. Please can you help. 

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


 

I have reverted to CTrader version 4.8(909) and the cbot is working fine on there. I think there is a bug in version 5.0. I need version 5.0 because it is the only version on MacOS with backtesting capability. I would be eternally grateful if you could you sort it out please.

I have reinstalled Ctrader for mac version 5.0.22 and ran the cbot under backtesting and the error has emerged.  See screenshot attached. There id a comms bug in Version 5.0.

Hi there,

Can you please send troubleshooting as per my previous instructions?

Best regards,

Panagiotis


@PanagiotisCharalampous