Closed lordlouckster closed 3 years ago
After many minutes:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in Condorcet\vendor\julien-boudry\condorcet\lib\Algo\Tools\PairwiseStats.php on line 27
Hi anonymous,
How many votes did you try to ingest? Have you the same limitation with other methods or only with Instant Runfoff?
Did you get PDO Sqlite driver ON with our PHP installation? Can be set on php.ini file. Condorcet can not handle infinite sizes without this.
You can also try to pass this option: (only if Sqlite is set, and not working and it still doesn't work )
--votes-per-mb=50
The other solution is to increase memory limit on your php.ini file.
By reading better this morning. It seems that this bug is more related to a large number of candidates than votes. Interesting, I will try to reproduce it.
No sorry @anonymous7002 I can't reproduce this bug, everything is fast and accurate on my side.
Maybe if you can share your dataset, I can try to reproduce it.
Oh, it was because my dataset had a candidate multiple times in a few votes by accident, like "Spain>Japan>France>Netherlands>Australia>France"!
Ok! It's another type of bug, you must have an error message, not an infinite loop. Will look for it too, with a minor priority :)
Just release 3.0.1. Fix an important issue related to yours. Can you confirm that? Because I can't reproduce the same error as you without your dataset.
Then it gets stuck. CPU use raises to 30%, and memory use raises as well.