gscan2pdf gets stuck on process 1 of 2 while saving pdf
Brought to you by:
ra28145
I have some pages that I've scanned. I was able to print them without issue, but when I try to save them as a pdf, the status bar gets stuck on process 1 of 2 and it fails to create the file. I've attached a copy of my debug log.
I have the same problem for the last week. Last line in debug log is
Googling about it seems this might be a glitch in ImageMagick. Since this is an unhandled exception, it seems to block everything else which comes after. I cannot even quit without killing the app/force close. I'm going to try with an older version of ImageMagic and see if that helps.
EDIT: The issue goes away if post-processing is turned off.
Last edit: Joel Kolodziej 2022-03-22
Does it happen to you every time? What kind of scan is it (black-white, gray, colorful)? Can you tell us a version of ImageMagick you have installed? Have you tried inspecting the reportedly malformed PNM file (/tmp/gscan2pdf-AFpf/ML5lKwReDl.pnm in that log output)? Can the PNM file be displayed with an image viewer? With "display" command of ImageMagick?
Yes, this happens every time. ImageMagick version is 7.1.0.27-1 from the extra repository on Manjaro. However, I cannot invoke it from the command line or from the KDE Plasma search. Best I can do is `_imagemagick' from the command line.
Calling it from the CLI nets these errors:
_tags:comptags:36: can only be called from completion function
_tags:comptry:55: can only be called from completion function
_tags:comptags:60: can only be called from completion function
_tags:comptags:67: can only be called from completion function
I've suspected there's something wrong with my imagemagick install, but I can't find any way to fix it. Reinstalling from pamac changes nothing.
EDIT: Ok, it helps when you call it with the right command line. However, in my latest scan, none of the files it errors out on exist in the tmp folder. See log below in reply to Jeffrey Ratcliffe. The only pnm file that exists in the tmp folder is the first one fTL7Ii8DM4.pnm.
gscan2pdf is still running, and stuck on processing 1 of 1 while checking the contents of the tmp folder.
Last edit: Joel Kolodziej 2022-04-06
The step that produces the pnm in Joel's case is unpaper. Does activating the "Convert scanned images to PNG before further processing" in Edit/Preferences/General options make any difference?
I tried checking that this time and I still get the error.
gscan2pdf should also work with graphicsmagick + the compatibility layer for imagemagick. Can you give that a try? You already have graphicsmagick installed, I see.
I don't know how to do this.
Apologies for the delay in responding.
Debian-based distros offer a compatibility layer:
https://packages.debian.org/sid/graphicsmagick-imagemagick-compat
You seem to be using Manjaro, and I couldn't find a similar package for that distro.
Do you still have this problem?
If so, we can debug the imagemagick steps.
I've since abandoned that install and moved to a new hardware and distro
which doesn't suffer from this problem anymore. Thanks.
On Wed, Sep 28, 2022, 4:12 AM Jeffrey Ratcliffe ra28145@users.sourceforge.net wrote:
Related
Bugs:
#401Thanks for responding.