Bug #2879

The restarting engines command breaks the annotations saving operation

Ajouté par Serge Heiden il y a environ 5 ans. Mis à jour il y a plus d'un an.

Statut:New Début:23/07/2020
Priorité:High Echéance:
Assigné à:- % réalisé:

60%

Catégorie:Annotation Temps passé: -
Version cible:TXM 0.8.4

Description

Currently, the annotations saving operation can be very long.

Users tend to call the 'File > Restart engines' command, hoping that something will get cleared but braking the annotations saving operation.

Users can even quit TXM, hoping they will get control afterwards.

As a long operation!
  • TXM must show the progression of the operation, like what is done for other time consuming commands
  • TXM must display the status of the operation: the user must understand to wait

Solution 1

The XML-TXM update steps were not wrap in a Job -> allowing the restart command to run before the annotation are saved

Add the following message in jobs/console:
  • FR: Merci de ne pas quitter TXM tant que cette opération n'est pas terminée (risque de corruption des données)
  • EN: Please do not quit TXM until this operation is completed (risk of data corruption)]

Solution 2 (see #2986)

a. remove 'File > Restart engines' menu entry
b. open a modal dialog box displaying the progression of the annotations saving operation

TXM is currently using Eclipse Jobs to run operations. The jobs are started using the Job.schedule() method which ensures jobs are started in order but do not block the other jobs.
  • The Job priority only drives the job start time.
  • The Job rule is to strict and does not allow to run a Job from another job (ex: cannot save RCP project while importing a corpus in a job)
  • The job family (see Job.belongsTo method) only allow to pilot a group of Job

partial solution: https://wiki.eclipse.org/FAQ_How_do_I_prevent_two_jobs_from_running_at_the_same_time%3F -> does not works when a ROOT level sub job is called (RCP project saving)


Demandes liées

lié à Task #2746: Improve the UI to block only concerned branch when launch... New 29/01/2020
lié à Task #2747: Improve user feedback in case of long computing or re-com... New 29/01/2020
lié à Bug #2986: Wrap all TXM jobs with a progress dialog New 08/01/2021

Historique

#1 Mis à jour par Serge Heiden il y a environ 5 ans

  • Description mis à jour (diff)

#2 Mis à jour par Matthieu Decorde il y a environ 5 ans

  • Tracker changé de Task à Bug
  • Sujet changé de Remove 'File > Restart engines' menu entry and open modal dialog box displaying the progression of the annotations saving operation à Restarting engines command break the annotations saving operation

#3 Mis à jour par Matthieu Decorde il y a environ 5 ans

  • Sujet changé de Restarting engines command break the annotations saving operation à The restarting engines command breaks the annotations saving operation

#4 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • Description mis à jour (diff)

#5 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • Description mis à jour (diff)

#6 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • % réalisé changé de 0 à 40

#7 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • Description mis à jour (diff)

#8 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • % réalisé changé de 40 à 80

Solution 1 is implemented

#9 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • Description mis à jour (diff)
  • % réalisé changé de 80 à 60

#10 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • Version cible changé de TXM 0.8.2 à TXM 0.8.4

Formats disponibles : Atom PDF