Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 06:11:59 +0000



SC 1316 Errors While Trading

View Count: 2112

[2015-11-16 23:02:44]
Sierra Chart Engineering - Posts: 104368
Before you duplicate a chart and after Sierra Chart has been running for many hours, go to the Windows Task Manager >> Processes tab.

Go to View >> Select Columns and add GDI Objects. What is the number of GDI objects for the Sierra Chart process?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2015-11-17 03:08:04]
umair1 - Posts: 86
There were 1780 GDI objects before I tried duplicating the chart, and after duplicating there are 1796.

I didn't have any issues today. I still haven't tried another system yet. I'll try to set it up tomorrow to try it.

I usually shut my computer down on Friday after the markets close, and then turn it on again on Sunday. So it usually runs continuously from Sunday to Friday. I wonder if that's why I had no issues today.
[2015-11-19 16:26:45]
Sierra Chart Engineering - Posts: 104368
Have you noticed the problem again and have you tried another computer?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2015-11-19 20:31:33]
umair1 - Posts: 86
I haven't been duplicating charts for a few days and so I haven't had any trouble. Just now I duplicated the RBZ5-RBF6-NYMEX 100 tick chart, which worked fine. I then duplicated the RBZ5-RBF6-NYMEX 1-0-0 d-m-s chart and I got the following error:

Caught an unhandled exception in c_MDIDetachableWindow::WindowProc. Message: 546, wParam: 83132, lParam: 1398068 | 2015-11-19 12:26:09
Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:26:09 *
Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:26:09 *
Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:26:10 *
Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:26:10 *
Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:26:11 *
Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:26:11 *
Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:26:12 *
Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:26:12 *

...repeating

Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:27:58 *

I haven't tried another system yet.
[2015-11-19 20:33:20]
umair1 - Posts: 86
The number of GDI objects is 1966, SC is using about 1GB of memory. Total system memory usage is 6.8GB out of 16GB and I'm running 1325 in ACS safe mode.
Date Time Of Last Edit: 2015-11-19 20:33:37
[2015-11-19 20:40:36]
umair1 - Posts: 86
I noticed a few other things. Once the last message ended:

Warning: Caught an exception during the processing of a timer event. | 2015-11-19 12:27:58 *

I was on my ES chart. I few minutes later I switched back to the "RB spreads" chartbook- the newly duplicated 100 tick chart was open and I immediately began getting the warning message above again. I closed the chart and the warning messages stopped. I also noticed that the 1-0-0 chart had not been duplicated- that was the one that caused the exception in the first place.
Date Time Of Last Edit: 2015-11-19 20:43:37
[2015-11-23 18:46:56]
Sierra Chart Engineering - Posts: 104368
Further testing indicates the likely possibility of an error occurring due to the operating system having problems with too many windows. We are going to add some additional error handling to catch this kind of condition to confirm if this is the case.

We will have a new release out today or tomorrow.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2015-11-24 18:24:00]
Sierra Chart Engineering - Posts: 104368
Update to the latest prerelease with Help >> Download Prerelease. This may or may not make a difference in your case.

Let us know what you observe with it. We just need to know if you encounter an exception error and how many chart windows you have open at that time.

We still have more ideas on things we can do.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2015-11-25 18:16:52]
umair1 - Posts: 86
Ok I'm using SC 1330 (prerelease) now, running in ACS safe mode. I installed it yesterday when you asked me to. I duplicated a chart and then tried to pull up the chart settings window and it displayed a blank window which was not responsive to clicks. See attached.

There was no error message. But now pushing F5 and F6 don't work for any chart. If I press f5 I get the following (see attached).
imagechart settings window.png / V - Attached On 2015-11-25 18:13:44 UTC - Size: 71.69 KB - 290 views
imagef5.png / V - Attached On 2015-11-25 18:16:39 UTC - Size: 14.03 KB - 292 views
[2015-11-25 18:25:03]
Sierra Chart Engineering - Posts: 104368
This is an indication that there are too many windows open and the operating system is having a problem handling that. This is an operating system level problem.

You are going to have to use multiple copies of Sierra Chart. Follow the instructions here:
https://www.sierrachart.com/index.php?page=doc/MultipleServices.html#MultipleCopiesDistributeLoadMultipleCPUCores

This is going to be the only reliable solution. In a later release, in the next month or so, trading will also be supported from multiple instances using a single connection to the trading service.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2015-11-25 18:27:39
[2015-11-26 16:20:17]
umair1 - Posts: 86
So what are some things I can do to help prevent the problem? Instead of running two versions of SC would it be better if I simply ran SC on one computer and ran all my other programs/windows on another? I will try this approach next.

I tried attaching a trade window today and got the following error:

6CZ5-CME [CBV] 1000 Trades #5 | Error creating the Trade Window. | 2015-11-26 08:17:38 *
[2015-11-26 21:53:06]
Sierra Chart Engineering - Posts: 104368
Instead of running two versions of SC would it be better if I simply ran SC on one computer and ran all my other programs/windows on another? I will try this approach next.
Yes, try this.


6CZ5-CME [CBV] 1000 Trades #5 | Error creating the Trade Window. | 2015-11-26 08:17:38 *
This is a very clear indication that the problem is the operating system is running out of its own memory for creating windows. That is the basic core problem.

Why you have not seen this in earlier versions of Sierra Chart we do not know. Possibly there are more child windows being created within Sierra Chart. For detached charts this is the case. But not for attached charts.

We do have another idea about solving the problem but it is not something that would be implemented for at least 3 to 4 months from now.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2015-11-26 21:53:57
[2015-12-18 12:47:06]
umair1 - Posts: 86
I just wanted to update. I have been running two instances of Sierra Chart simultaneously on the same computer with half my chartbooks open in one instance and the other half in the other. The memory usage is about 1GB for one instance and 0.5GB for the other. Also I'm running OEC, CQG and thinkorswim simultaneously without a problem. For the past two weeks I have had no crashes, freezing or errors. I'm not running in safe mode either.

If I recall correctly previously when running all my chartbooks in one instance SC would use about 1GB of memory. Since the two instances of SC use 1.5GB of memory (compared to 1GB previously) I'm wondering if there is some restriction on the amount of memory that SC is allowed to use? I understand there is some memory used by SC whether any chartbooks are open or not but I have to believe it is small compared to 0.5GB.
[2015-12-18 17:41:38]
Sierra Chart Engineering - Posts: 104368
Sierra Chart uses very little memory when there are no Chartbooks open. It is about 15 MB. So nowhere near half a gigabyte.

There is a limitation on the amount of memory Sierra Chart can use for an individual instance. This is close to 4 GB.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account