Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70765

Thrown errors in assignment PDF-related scripts cause fail for scheduled task

    XMLWordPrintable

Details

    • MOODLE_39_STABLE

    Description

      I may be misunderstanding how all this works.

      If there are bad PDFs, the scheduled task \assignfeedback_editpdf\task\convert_submissions might encounter one of the many thrown errors such as "Unable to find pointer to xref table". My understanding of the conversion script is that it will attempt items in the queue 3 times (default setting) and then remove an item that can't be converted from the queue. Some of the errors that occur, such as "Could not find readonly pages for grade $grade->id" seem to allow the script to continue but others, such as the "unable to find pointer to xref table" do not.

      It seems to me that corrupted PDFs should never stop the conversion script. It should just remove those from the queue and carry on. If instructors see corrupted files in their student's assignment submissions, they can talk to the student about it.

      Attachments

        1. Alisson_1.jpg
          973 kB
        2. errorfile.txt
          973 kB
        3. IMG_8121.jpg
          1.95 MB

        Activity

          People

            Unassigned Unassigned
            dsoini Diane Soini
            Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: