Bug #2879

The restarting engines command breaks the annotations saving operation

Added by Serge Heiden almost 3 years ago. Updated about 2 years ago.

Status:New Start date:07/23/2020
Priority:High Due date:
Assignee:- % Done:

60%

Category:Annotation Spent time: -
Target version:TXM 0.8.2

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)


Related issues

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

History

#1 Updated by Serge Heiden almost 3 years ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde almost 3 years ago

  • Tracker changed from Task to Bug
  • Subject changed from Remove 'File > Restart engines' menu entry and open modal dialog box displaying the progression of the annotations saving operation to Restarting engines command break the annotations saving operation

#3 Updated by Matthieu Decorde almost 3 years ago

  • Subject changed from Restarting engines command break the annotations saving operation to The restarting engines command breaks the annotations saving operation

#4 Updated by Matthieu Decorde over 2 years ago

  • Description updated (diff)

#5 Updated by Matthieu Decorde about 2 years ago

  • Description updated (diff)

#6 Updated by Matthieu Decorde about 2 years ago

  • % Done changed from 0 to 40

#7 Updated by Matthieu Decorde about 2 years ago

  • Description updated (diff)

#8 Updated by Matthieu Decorde about 2 years ago

  • % Done changed from 40 to 80

Solution 1 is implemented

#9 Updated by Matthieu Decorde about 2 years ago

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

Also available in: Atom PDF