gscan2pdf reports an error when trying to open a PDF file. In console the error reported is: DEBUG - Free space in /tmp/gscan2pdf-7clv (Mb): 990.3046875 (warning at 10) INFO - Getting info for /mnt/yves/tmp/DRAW-1.pdf INFO - file -Lb /mnt/yves/tmp/DRAW-1.pdf DEBUG - import_files queued /mnt/yves/tmp/DRAW-1.pdf INFO - Spawned PID 2491 INFO - Format: 'PDF document, version 1.5, 1 pages' INFO - pdfinfo -isodates /mnt/yves/tmp/DRAW-1.pdf WARN - Use of uninitialized value $info in concatenation (.) or string at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 2932. INFO - stdout: INFO - stderr: pdfinfo -isodates /mnt/yves/tmp/DRAW-1.pdf: command not found WARN - Use of uninitialized value $info in pattern match (m//) at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 2939. INFO - 1 pages WARN - Use of uninitialized value $info in pattern match (m//) at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 2944. WARN - Use of uninitialized value $string in pattern match (m//) at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 3045. WARN - Use of uninitialized value $string in pattern match (m//) at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 3045. WARN - Use of uninitialized value $string in pattern match (m//) at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 3045. WARN - Use of uninitialized value $string in pattern match (m//) at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 3045. WARN - Use of uninitialized value $string in pattern match (m//) at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 3045. DEBUG - import_files started /mnt/yves/tmp/DRAW-1.pdf DEBUG - import_files queued /mnt/yves/tmp/DRAW-1.pdf INFO - pdfimages -f 1 -l 1 -list /mnt/yves/tmp/DRAW-1.pdf WARN - Use of uninitialized value $out in split at /usr/share/perl5/vendor_perl/Gscan2pdf/Document.pm line 3350. INFO - pdfimages -f 1 -l 1 /mnt/yves/tmp/DRAW-1.pdf x INFO - pdftotext -bbox -f 1 -l 1 /mnt/yves/tmp/DRAW-1.pdf /tmp/gscan2pdf-7clv/cQawKz2QrY.html DEBUG - import_files started /mnt/yves/tmp/DRAW-1.pdf ERROR - Open file, Error extracting images from PDF DEBUG - import_files finished /mnt/yves/tmp/DRAW-1.pdf
> INFO - stderr: pdfinfo -isodates /mnt/yves/tmp/DRAW-1.pdf: command not found Thus, poppler is lacking as dependency.
Done for cauldron
QA Contact: (none) => yvesbrungard
Submitted: Mageia 8 gscan2pdf-2.11.0-1.1.mga8.noarch.rpm Mageia 9 gscan2pdf-2.13.2-1.1.mga9.noarch.rpm Sources: Mageia 8 gscan2pdf-2.11.0-1.1.mga8.src.rpm Mageia 9 gscan2pdf-2.13.2-1.1.mga9.src.rpm
Assignee: geiger.david68210 => qa-bugsWhiteboard: (none) => MGA8TOO
Suggested advisory: ====================== Import of PDF files in gscan2pdf was failing is some cases, when poppler wasn't installed. The correction adds poppler as requirement. ======================
I confirm poppler is a dependency now, and was not in previous version. -- I tried to use the program, but it seem incompatible with my scanner Epson Perfection 1660 photo. gscan2pdf lists it as Epson GT-8300. Trying to scan, the scanner status lamp flashes a minute, then gscan2pdf show a popup "Error during device I/O" This old scanner works perfectly with our packaged xsane.
CC: (none) => fri
mga9
Thanks Morgan, could you launch with the --debug option and catch the output?
Launched it now. Now the scan dialogue shows up with a spinning (wait) cursor and start button greyed, after a while error popup: Error opening device: opening device 'epson2:libusb:002:005':Error during device I/O Scanner status lamp is still blinking busy even after I close gscan2pdf, so status seem stuck. I will reboot and grab the debug output from fresh start.
Interesting. Now on launch it pops up a message it can not find the scanner it used before. There are options to restart gscan2pdf, and to search a gain. (an dothe roptions) None works. I notice that from Plasma system tray a HPLIP warning message popped up shortly: HP_Scan_Devices Scanner (1.1.1.1) (5018) I have no idea how to find out what it mean... After closing gscan2pdf error message, the app refuse to close, Plasma (?) puts up a dialogue it does not respond, and I let it kill it. Log coming...
Created attachment 14025 [details] gscan2pdf log file, fail with epson 1660 File of gscan2pdf --log=gscan2pdf.log in previous comment
It seems that the error occurs in sane when trying to scan a page. I didn't see any such error reported in bug tracker https://sourceforge.net/p/gscan2pdf/bugs/ I would presume that this error is specific to the device. We have the latest release and there is only one commit after it. I don't imagine what we can do except to report upstream.
CC: (none) => geiger.david68210
I'm seeing a similar error message with my HP Envy Photo 7858 all-in-one. I saw this once before the update, then not again, but after this update I see the error message every time. See Bug 32325. Poppler always was installed on this machine. Before the update, if I threatened to remove poppler a list of dependent packages popped up, but gscan2pdf wasn't on it. After the update, it is. So I also confirm the new dependency is there. But... I also still cannot open a pdf with it. Jpegs, yes. Pdfs, no.
CC: (none) => andrewsfarm
Cancel that last part. It WILL open pdfs as long as they are not too complex. It's expecting one image per page in a pdf; multiple images are not opened properly. It also doesn't seem to be able to deal with a text document from Writer that was saved as a pdf.
Advisory from comment 4 with srpms from comment 3 added to SVN. Please remove the "advisory" keyword if it needs to be changed. It also helps when obsolete advisories are tagged as "absolete".
CC: (none) => marja11Keywords: (none) => advisory
I think that the update has to be pushed, thus this is OK with the advisory. It won't introduce regression.
OK, we'll use bug 32325 to address the scanner error messages. Giving this an MGA9 OK, but I don't see where MGA8 has been checked yet.
Whiteboard: MGA8TOO => MGA8TOO MGA9-64-OK
MGA8 Plasma, same procedure as comment 12, same results. The scanner error was expected that time, as I was on a laptop that was away from the network scanner, and the scanner wasn't powered up anyway. Giving this the other OK, and validating.
Whiteboard: MGA8TOO MGA9-64-OK => MGA8TOO MGA8-64-OK MGA9-64-OK
Keywords: (none) => validated_updateCC: (none) => sysadmin-bugs
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2023-0088.html
Resolution: (none) => FIXEDStatus: NEW => RESOLVED