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

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

    XMLWordPrintable

    Details

    • Affected Branches:
      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            dsoini Diane Soini
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: