-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.5
-
MOODLE_401_STABLE
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-79307-403 -
The default configuration for a site has the EditPDF assignment submission plugin enabled, and selected for all new assignment activities
Unless ghostscript is correctly installed and configured, the task to perform the conversion of file submissions enters a fail loop wherein the error produced is as follows:
Execute adhoc task: assignfeedback_editpdf\task\convert_submission
|
Adhoc task id: 4
|
Adhoc task custom data: {"submissionid":"1","submissionattempt":"0"}
|
... started 15:02:48. Current memory use 32.8 MB.
|
Converting submission for user id 3
|
... used 71 dbqueries
|
... used 0.6078770160675 seconds
|
Adhoc task failed: assignfeedback_editpdf\task\convert_submission,Error generating image with ghostscript, debugging info: <pre>Command:
|
'/usr/bin/gs' -q -sDEVICE=png16m -dSAFER -dBATCH -dNOPAUSE -r'100' -dFirstPage='1' -dLastPage='1' -dDOINTERPOLATE -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sOutputFile='/tmp/requestdir/znnZ/64fb298819efc/64fb2988ddce8/image_page0.png' '/tmp/requestdir/znnZ/64fb298819efc/64fb2988ddce8/error.pdf'
|
|
Result:
|
|
|
Output:
|
</pre>
|
Backtrace:
|
* line 806 of /mod/assign/feedback/editpdf/classes/pdf.php: call to assignfeedback_editpdf\pdf->get_image()
|
* line 565 of /mod/assign/feedback/editpdf/classes/pdf.php: call to assignfeedback_editpdf\pdf::get_error_image()
|
* line 441 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\pdf->get_images()
|
* line 603 of /mod/assign/feedback/editpdf/classes/document_services.php: call to assignfeedback_editpdf\document_services::generate_page_images_for_attempt()
|
* line 104 of /mod/assign/feedback/editpdf/classes/task/convert_submission.php: call to assignfeedback_editpdf\document_services::get_page_images_for_attempt()
|
* line 508 of /lib/classes/cron.php: call to assignfeedback_editpdf\task\convert_submission->execute()
|
* line 302 of /lib/classes/cron.php: call to core\cron::run_inner_adhoc_task()
|
* line 128 of /lib/classes/cron.php: call to core\cron::run_adhoc_tasks()
|
* line 186 of /admin/cli/cron.php: call to core\cron::run_main_process()
|
We should not even reach that point in the execution if we know the conversion can never succeed (because ghostscript is absent/misconfigured) - improve the error, and make it more useful for the user/admin to interpret
- Discovered while testing
-
MDL-79305 No logging visible in failed task logs
- Closed