Support Board
Date/Time: Fri, 31 Jan 2025 09:11:07 +0000
Post From: custom developed DTC Server and SC
[2019-04-01 18:55:57] |
User12089 - Posts: 365 |
ok here we go we go - new important information available .... it seems that for each Detached chart, the main SC Process creates a dedicated Thread (all software dev folks know the difference between Process and Thread, that's not for non-technical readers of the forum) I have identified that there is a deadlock between the Thread of the main SC Process and the Thread of one Detached Chart - see attached the proof .... Let me describe the full setup SC version 1882 64 bit Windows 10 laptop with 32 GB RAM and 6 CPU cores SC is launched and then I open two different chart books, each with about 15 charts - that still results in only 1 Thread Then I create 1 detached chart and that seems to spawn a new Thread - so one of the chartbooks contained such detached chart and it was for the same symbol as for some of the non-detached charts in the chart book Then see the attached screenshot about the deadlock between the two Threads also see here https://docs.microsoft.com/en-us/windows/desktop/Debug/wait-chain-traversal Also note that both Threads seem to be exhibiting some meaningful CPU utilization e.g. about 14% in total, BUT at the same time their state in Windows Task Manager is shown as "Non Responding" .... I have been using chartbooks with gazillion of Detached charts (in fact with 100% detached charts) but so far have not encountered such deadlock It may be due to one of the following reasons: - Bug introduced in the latest versions of SC - Something to do with Detached and Non-Detached charts when they try to e.g. write to the same Historical Market Depth file (that study is on the charts and all charts are intraday) - Something to do with the custom DTC Server developed by me and how detached and non-detached charts use data from it Let me know what to do next In the meantime I will simply stop using chartbooks with mixed detached and attached charts and will use chartbooks with 100% NON-detached charts and see whether the problem with the deadlock will disappear. Then I will try with chartbooks with 100% Detached charts etc Date Time Of Last Edit: 2019-04-01 19:05:58
|
4-1-2019 6-59-46 PM.png / V - Attached On 2019-04-01 18:41:43 UTC - Size: 69.45 KB - 345 views |