Bug #1150
Mis à jour par Matthieu Decorde il y a presque 11 ans
To reproduce the bug on any corpus, make an index of e.g. ab.* and then a concordance of a word with frequency=1. When trying to export the concordance, you get "java.lang.ArithmeticException: / by zero" :
<pre>
Concordance de <"abaisser"> dans le corpus DISCOURS
Terminé : un résultat
right: 2113 len: 13
Effectué en 15 msec. (15 msec)
** Echec de l'exportation de la concordance : java.lang.ArithmeticException: / by zero
Export sauvegardé : /media/alavrent/data/Mes documents/bfm - local/Stagiaires et vacataires/Valeria Raiskina/test4.csv
Effectué en 13 sec. (13475 msec)
</pre>
Tested on TXM 0.7.6 (Linux) and on Portal 0.6.1
h3. Solution
Bug due to a progression bar amount computation error (divide by 0)
h3. Validation test
* call concordance on DISCOURS with the following query:
<pre>
[word="Vladivostok"]
</pre>
* export the concordance
<pre>
Concordance de <"abaisser"> dans le corpus DISCOURS
Terminé : un résultat
right: 2113 len: 13
Effectué en 15 msec. (15 msec)
** Echec de l'exportation de la concordance : java.lang.ArithmeticException: / by zero
Export sauvegardé : /media/alavrent/data/Mes documents/bfm - local/Stagiaires et vacataires/Valeria Raiskina/test4.csv
Effectué en 13 sec. (13475 msec)
</pre>
Tested on TXM 0.7.6 (Linux) and on Portal 0.6.1
h3. Solution
Bug due to a progression bar amount computation error (divide by 0)
h3. Validation test
* call concordance on DISCOURS with the following query:
<pre>
[word="Vladivostok"]
</pre>
* export the concordance