I encountered the same issue.
I am using several drawing indicators in my strategy, as shown below:
bt.indicators.ExponentialMovingAverage(self.datas[0], period=25)
bt.indicators.WeightedMovingAverage(self.datas[0], period=25,subplot=True)
# bt.indicators.StochasticSlow(self.datas[0])
bt.indicators.MACDHisto(self.datas[0])
rsi = bt.indicators.RSI(self.datas[0])
bt.indicators.SmoothedMovingAverage(rsi, period=10)
bt.indicators.ATR(self.datas[0], plot=False)
When I comment out bt.indicators.StochasticSlow(self.datas[0])
, the problem does not occur.
I don't have enough time to research it, but I hope this information is helpful to you.