Bug #1150

TBX: X.X, Impossible to export a concordance of a single occurrence

Added by Alexey Lavrentev over 8 years ago. Updated about 2 years ago.

Status:Closed Start date:11/26/2014
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Commands / Export Spent time: -
Target version:TXM 0.7.7

Description

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

History

#1 Updated by Matthieu Decorde over 8 years ago

  • Category set to Commands / Export
  • Target version set to TXM 0.7.7

#2 Updated by Matthieu Decorde over 8 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 80

#3 Updated by Matthieu Decorde over 8 years ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot over 8 years ago

Successfully tested on Seven.

#5 Updated by Matthieu Decorde about 8 years ago

  • Description updated (diff)
  • % Done changed from 80 to 100

#6 Updated by Matthieu Decorde about 2 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF