I've had two issues lately (possibly related). 1 is charts freezing, and 2 is "Ninjatrader has stopped working". This test case is able to reproduce the former.
Steps to reproduce:
- Open 3 charts with 2000 bars (enough to give the chart some work)
- Link all 3 charts to the same Instrument Link colour at the top right
- Add the BollingerRainbowCrasher indicator to all three charts.
- Choose all test options on the indicator settings except "RandomlyThrowException"
- Put Sunglasses on and press ok
- Open the indicator settings on one chart and enable the "RandomlyThrowException" option. It will load partially rendered with a log to the output about the error.
Normal use will cause the bug to manifest eventually but by stress-testing it can apppear within a minute. You need to seriously abuse the instrument selector to get the series-linked charts stuck in a deadlock.
- Select an instrument on chart 1, and even before its done loading that, quickly flip it to another.
- Then jump to the other two charts and flip each of them to different instruments before they have finished loading.
- keep going round flipping instruments as fast as you can.
Very quickly the Charts become Frozen and the CPU is zero. The chart threads are deadlocked - each one is waiting for the other to finish waiting.
Comment