Error in processing a valid AMC latex source file after cancelling the Update documents operation (Bug #225)


Added by Anirvan Sarkar over 10 years ago. Updated over 9 years ago.


Status:Closed Start date:10/09/2013
Priority:Normal Due date:
Assignee:Alexis Bienvenüe % Done:

100%

Category:-
Target version:1.3.0

Description

Steps to reproduce this problem:

  1. Create a new AMC project using any valid AMC latex source file. (You may use the attached file).
  2. Set Number of papers to some value(say 5) and click on Update documents.
  3. After documents have been prepared, set Number of papers to some large value(say 500) and click on Update documents.
  4. Before documents have been processed click on Cancel near the progress bar.
  5. Now set the Number of papers to some other value than which was set in step 3(say 15) and click on Update documents.

AMC will now show a dialog box with the message: Errors while processing the source file. You have to correct the source file and re-run documents update. See the processing log in 'Command output details' below. Use LaTeX editor or latex command for a precise diagnosis.

Things to note:

  • After step 4 you will notice that even when you have clicked on cancel all the amc-compiled.* files in the project directory gets updated continuously especially the amc-compiled.log file and amc-compiled.pdf file whose size increases continuously.
  • AMC will update the documents successfully if:
    1. All the amc-compiled.* files are deleted from the project directory or
    2. You wait for some time. For some reason if you wait for some time and then click on Update documents, AMC will successfully process the files.
  • The Catalog button is not disabled along with the Question and Solution button.
  • A Documents have been prepared notification is shown(if enabled in the preferences) after cancelling the Update documents operation. It will be more meaningful if it is changed to Document processing has been cancelled or something similar or not shown at all.

I have attached the log file generated after following these steps.


source.tex - Sample source file (1.3 kB) Anirvan Sarkar, 10/09/2013 10:37 am

AMC-DEBUG-U8bmHRHR.log - Log file produced while executing the above steps (60.2 kB) Anirvan Sarkar, 10/09/2013 10:37 am


History

Updated by Pieter Van den Hombergh over 10 years ago

It might have to do with the fact that AMC starts multiple child processes to process the two or three latex variants.

If that is the case, then on cancel all latex sub-processes should be killed, not just one.

Updated by Alexis Bienvenüe over 10 years ago

The underlying latex process was not killed. Please try revision r1482 that should behave in a better way.

  • Status changed from New to Feedback

Updated by Anirvan Sarkar almost 10 years ago

AMC now properly updates the documents without any errors.

  • Target version set to 1.3.0
  • % Done changed from 0 to 100
  • Assignee set to Alexis Bienvenüe
  • Status changed from Feedback to Resolved

Updated by Anirvan Sarkar over 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF