Bug 32335 - gscan2pdf can't open PDF file
Summary: gscan2pdf can't open PDF file
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: papoteur
URL:
Whiteboard: MGA8TOO MGA8-64-OK MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2023-09-28 09:55 CEST by papoteur
Modified: 2023-10-14 00:58 CEST (History)
5 users (show)

See Also:
Source RPM: gscan2pdf-2.13.2-1.mga9.src.rpm
CVE:
Status comment:


Attachments
gscan2pdf log file, fail with epson 1660 (133.17 KB, text/plain)
2023-10-01 22:06 CEST, Morgan Leijström
Details

Description papoteur 2023-09-28 09:55:11 CEST
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
Comment 1 papoteur 2023-09-28 10:00:21 CEST
> INFO - stderr: pdfinfo -isodates /mnt/yves/tmp/DRAW-1.pdf: command not found
Thus, poppler is lacking as dependency.
Comment 2 papoteur 2023-10-01 17:07:00 CEST
Done for cauldron

QA Contact: (none) => yvesbrungard

Comment 3 papoteur 2023-10-01 17:24:19 CEST
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-bugs
Whiteboard: (none) => MGA8TOO

Comment 4 papoteur 2023-10-01 17:26:14 CEST
Suggested advisory:
======================
Import of PDF files in gscan2pdf was failing is some cases, when poppler wasn't installed.
The correction adds poppler as requirement.
======================
Comment 5 Morgan Leijström 2023-10-01 21:06:23 CEST
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

Comment 6 Morgan Leijström 2023-10-01 21:06:43 CEST
mga9
Comment 7 papoteur 2023-10-01 21:28:35 CEST
Thanks Morgan,
could you launch with the --debug option and catch the output?
Comment 8 Morgan Leijström 2023-10-01 21:41:19 CEST
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.
Comment 9 Morgan Leijström 2023-10-01 22:04:33 CEST
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...
Comment 10 Morgan Leijström 2023-10-01 22:06:57 CEST
Created attachment 14025 [details]
gscan2pdf log file, fail with epson 1660

File of gscan2pdf --log=gscan2pdf.log in previous comment
Comment 11 papoteur 2023-10-02 08:30:11 CEST
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

Comment 12 Thomas Andrews 2023-10-03 03:13:31 CEST
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

Comment 13 Thomas Andrews 2023-10-03 03:36:33 CEST
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.
Comment 14 Marja Van Waes 2023-10-12 17:55:02 CEST
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) => marja11
Keywords: (none) => advisory

Comment 15 papoteur 2023-10-12 18:38:44 CEST
I think that the update has to be pushed, thus this is OK with the advisory. It won't introduce regression.
Comment 16 Thomas Andrews 2023-10-12 19:47:23 CEST
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

Comment 17 Thomas Andrews 2023-10-13 02:31:21 CEST
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

Thomas Andrews 2023-10-13 02:32:06 CEST

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 18 Mageia Robot 2023-10-14 00:58:51 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2023-0088.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.