BlackEdder / ggplotd

Plotting library for the D programming library. The design is inspired by ggplot2 for R.
Boost Software License 1.0
77 stars 21 forks source link

random test failure #34

Open MartinNowak opened 7 years ago

MartinNowak commented 7 years ago

Testing v1.1.1 w/ dmd 2.072.1 on linux x86-64

Running ./testggplotd-gtk__ Random seed: 3850067743 Random seed MCMC: 1709140524

This fails due to some assertion in iota (maybe related to Issue 6531 – assertion failure in std.range.iota).

BlackEdder commented 7 years ago

I have been unable to reproduce this. From your description I assume it happens only very rarely? The tests that use random inputs can fail due to weird corner cases. But I thought I had solved those.

I tried to set the values to the reported seed values, but for me the tests successfully passed. I have now improved the seed output a little bit, so hopefully next time I will be able to reproduce it.

If you are able to reproduce it then it would be helpful if you could print out the randomly produced values and I could see what might be going wrong. (https://github.com/BlackEdder/ggplotd/blob/master/source/ggplotd/example.d#L116)

MartinNowak commented 7 years ago

I pinned the seeds but it still sometimes fails, might also be related with server rendering. https://ci.dawg.eu/job/projects/REPO=BlackEdder%2Fggplotd/ https://ci.dawg.eu/job/projects/REPO=BlackEdder%2Fggplotd/653/console Will try to debug it I can find time, but as said before, it looks like the known Phobos iota bug.