Huh.  It contains a call
+  vector_sort (dots, pure_position_less);
which uses a non-stable sort I guess.  One could check whether using 
vector_stable_sort makes any difference.  Not that I have a clue what I am 
doing here...  The problem is that likely even with a stable sort, the order of 
comparisons is not guaranteed, and the code looks like it triggers some 
semi-recursive evaluation.


---

** [issues:#5217] random results for the merge-rests-engraver regression test**

**Status:** New
**Created:** Fri Oct 20, 2017 07:28 AM UTC by Knut Petersen
**Last Updated:** Tue Oct 31, 2017 11:33 PM UTC
**Owner:** Knut Petersen
**Attachments:**

- 
[out-test-baseline-merge-rests-engraver.png](https://sourceforge.net/p/testlilyissues/issues/5217/attachment/out-test-baseline-merge-rests-engraver.png)
 (23.8 kB; image/png)
- 
[out-test-merge-rests-engraver.png](https://sourceforge.net/p/testlilyissues/issues/5217/attachment/out-test-merge-rests-engraver.png)
 (23.7 kB; image/png)


There is some randomness in the placement of dots. The merge-rests-engraver.ly 
regtest (git-version557dc7) exposes the problem as the output might be one of 
the two attached pngs. The probability for both results is identical on my 
system.




---

Sent from sourceforge.net because testlilyissues-a...@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Testlilyissues-auto mailing list
testlilyissues-a...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
  • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development

Reply via email to