A repeat before the Segno makes the D.S. and D.S. al coda not working as expected
I nailed it to a 2 lines example.
If you remove the repeat barlines on the first measure, before the Segno, it works perfectly.
Having repeated measures before the Segno breaks things. I made multiples tests, it does not have to be the first measure and it does not have to be just before the Segno.
I think it might be a bug, if you confirm I can create a bug report.