TBX: X.X, Impossible to export a concordance of a single occurrence
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” :
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)
Tested on TXM 0.7.6 (Linux) and on Portal 0.6.1
Solution
Bug due to a progression bar amount computation error (divide by 0)
Validation test
-
call concordance on DISCOURS with the following query: [word="Vladivostok"]
-
export the concordance
MD : OK Linux64
(from redmine: issue id 1150, created on 2014/11/26 by Alexey Lavrentev)