gscan2pdf doesn't save files

Bug #608695 reported by Christopher
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gscan2pdf (Debian)
Fix Released
Unknown
gscan2pdf (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gscan2pdf

When saving a scan, the Save window opens as usual and when saving, the most recently used folder opens as usual, but when 'Save' is clicked, the application returns to the Save window in an endless loop.

This is a Maverick issue, not affecting Lucid.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gscan2pdf 0.9.30-2
ProcVersionSignature: Ubuntu 2.6.35-9.14-generic 2.6.35-rc5
Uname: Linux 2.6.35-9-generic i686
Architecture: i386
Date: Thu Jul 22 07:39:44 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20091225)
PackageArchitecture: all
ProcEnviron:
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: gscan2pdf

Revision history for this message
Christopher (soft-kristal) wrote :
Changed in gscan2pdf (Debian):
status: Unknown → New
Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote : Re: [gscan2pdf-help] Can't save PDF with gscan2pdf
  • debug.patch Edit (399 bytes, text/x-patch; charset=US-ASCII; name="debug.patch")

Apologies for crossposting the gscan2pdf-help list, Debian, and Ubuntu
bugs, but it makes no sense to have the same conversation three times.

I've installed the main dependencies from sid and still can't reproduce this.

Does it make a difference if the image is imported or scanned?

Please apply the attached patch, which simply adds a couple of
debugging messages so that I can home in on where this coming from,
start gscan2pdf with the --debug option, try to save a PDF, quit, and
post the output from the command line.

Regards

Jeff

Revision history for this message
Christopher (soft-kristal) wrote :

Before I add the patch, I wanted to advise that I can save in all the image formats, but not the hybrids PDF or DejaVu. I remember this exact problem with previous Alphas, notably Karmic.

I haven't found that it makes a difference if it's imported or scanned. It makes me wonder if it's a Xorg bug, as so many oddities can be traced back to it on Intel 9xx displays.

Please let me know exactly how to apply patches, as i haven't yet acquired that skill. Keep in mind that I'm a musician first and foremost and therefore very GUI oriented, but I can learn code when at gunpoint.

Revision history for this message
madduck (madduck) wrote : Re: Bug#589796: [gscan2pdf-help] Can't save PDF with gscan2pdf

also sprach Jeffrey Ratcliffe <email address hidden> [2010.07.24.1447 +0200]:
> Does it make a difference if the image is imported or scanned?

Importing does not work either, here is the output:

  Importing /tmp/zweizeiler.pdf
  Format Portable Document Format
  Creator: TeX
  Producer: pdfTeX-1.40.10
  CreationDate: Fri Jul 23 15:07:38 2010
  ModDate: Fri Jul 23 15:07:38 2010
  Tagged: no
  Pages: 1
  Encrypted: no
  Page size: 595.276 x 841.89 pts (A4)
  File size: 18491 bytes
  Optimized: no
  PDF version: 1.4
  1 pages
  parent LC_NUMERIC C
  parent LC_NUMERIC C
  Process 18855 exited.

> Please apply the attached patch, which simply adds a couple of
> debugging messages so that I can home in on where this coming
> from, start gscan2pdf with the --debug option, try to save a PDF,
> quit, and post the output from the command line.

typescript attached. No output about saving, and on quit, I was
asked whether I wanted to leave the program without saving.

--
 .''`. martin f. krafft <madduck@d.o> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
  `- Debian - when you have better things to do than fixing systems

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

On 24 July 2010 16:14, martin f krafft <email address hidden> wrote:
> Importing does not work either, here is the output:
>
>  Importing /tmp/zweizeiler.pdf
>  Format Portable Document Format
>  Creator:        TeX
>  Producer:       pdfTeX-1.40.10

Although assuming this was a two-liner from pdfTex, it probably didn't
have an image in it, and therefore would have imported nothing anyway.
Can you import an image (PNM, PNG, etc.) or a PDF with an image in it?

Did you apply the patch before producing the debug output?

tags: added: patch
Revision history for this message
Christopher (soft-kristal) wrote :

For what it's worth, I can scan and save PDFs using Xsane, but I get multiple popup errors, all with this message:

Error during CMS conversion: Could not open scanner OCM profile:

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote : Re: [Bug 608695] Re: gscan2pdf doesn't save files

On 24 July 2010 15:19, Christopher <email address hidden> wrote:
> Please let me know exactly how to apply patches, as i haven't yet

sudo patch /usr/bin/gscan2pdf < debug.patch

Revision history for this message
Christopher (soft-kristal) wrote :

Pasting the debug output file is too large to paste here, so I'm attaching it as a text file.

Revision history for this message
madduck (madduck) wrote : Re: Bug#589796: [gscan2pdf-help] Can't save PDF with gscan2pdf

also sprach Jeffrey Ratcliffe <email address hidden> [2010.07.24.1738 +0200]:
> >  Importing /tmp/zweizeiler.pdf
> >  Format Portable Document Format
> >  Creator:        TeX
> >  Producer:       pdfTeX-1.40.10
>
> Although assuming this was a two-liner from pdfTex, it probably didn't
> have an image in it, and therefore would have imported nothing anyway.
> Can you import an image (PNM, PNG, etc.) or a PDF with an image in it?
>
> Did you apply the patch before producing the debug output?

Yes. And I tried with a PDF with an image (imported a previously
scanned page), but there was no output relating to saving, and
saving didn't work.

--
 .''`. martin f. krafft <madduck@d.o> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
  `- Debian - when you have better things to do than fixing systems

"however jewel-like the good will may be in its own right, there is
 a morally significant difference between rescuing someone from
 a burning building and dropping him from a twelfth-storey window
 while trying to rescue him."
                                                       -- thomas nagel

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :
Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

The logging system was previously just print and warn calls. I've now
replaced all that using Log::Log4perl and added a couple of command
line options to support it. I've uploaded a .deb to
http://launchpadlibrarian.net/52500599/gscan2pdf_0.9.32~1_all.deb

There are no other significant changes, apart from a couple of extra
debugging messages. Please install. You might need a

$ sudo apt-get install liblog-log4perl-perl

first.

If you start the program with

$ gscan2pdf --log=<log file>

It will default to 'debug' level messages, which will be printed to
the terminal window and to <log file>.

Please do so, reproduce the bug, quit, and post <log file>.

Revision history for this message
Christopher (soft-kristal) wrote :

I installed the package, but nothing has changed - I still can't save the scan, and it still overrides the document name with today's date.

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote : Re: [Bug 608695] Re: gscan2pdf doesn't save files

On 25 July 2010 22:21, Christopher <email address hidden> wrote:
> I installed the package, but nothing has changed - I still can't save
> the scan, and it still overrides the document name with today's date.

The basic behaviour didn't change, but the behaviour of the logging
should have. Please start the program with

$ gscan2pdf --log=<log file>

reproduce the problem, quit, and post <log file>.

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote : Re: Bug#589796: [gscan2pdf-help] Can't save PDF with gscan2pdf

On 25 July 2010 23:53, A. Costa <email address hidden> wrote:
> Scanned a blank page, tried to save as a .PDF and quit.  The log
> is attached.

Thanks for this. It seems the problem is related to GTK2 or the Perl
bindings - the file browser should return 'ok' or 'cancel' on
selecting the filename, but:

DEBUG - PDF save filename dialog returned -5

I'll install the relevant packages from sid and see why...

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote : Re: [gscan2pdf-help] Bug#589796: Can't save PDF with gscan2pdf

On 26 July 2010 09:05, Jeffrey Ratcliffe <email address hidden> wrote:
> I'll install the relevant packages from sid and see why...

It is the Perl bindings for GTK that are the problem. I'll work up a
patch, or if necessary a test case and submit the appropriate bugs.

In the mean time, if you downgrade libgtk2-perl and libglib-perl, then
you should be able to save again.

Revision history for this message
Christopher (soft-kristal) wrote :

Hey - that's why I have the stable Lucid on my main partition. It doesn't take long to reboot and do what I have to do with it's working version.

The reason I have partition for Alphas is to be a willing participant in new ideas, warts and all. As long as it boots, I'll keep it.

Revision history for this message
Jeffrey Ratcliffe (jeffreyratcliffe) wrote :

Please sync libglib-perl 1.223 and libgtk2-perl 1.222 from sid, which fix this bug

Changed in gscan2pdf (Ubuntu):
status: New → Fix Committed
Revision history for this message
Stefano Rivera (stefanor) wrote :

Jeremy: What action do you want sponsors to take? (unsubscribing sponsors for now).
You can request syncs with requestsync: https://wiki.ubuntu.com/UbuntuDevelopment/Merging

Changed in gscan2pdf (Debian):
status: New → Fix Released
Revision history for this message
Christopher (soft-kristal) wrote :

What fix? It's still not saving PDF, PS or DejaVu.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Syncs requests filed:
* libglib-perl: bug #615279
* libgtk2-perl: bug #615280

Changed in gscan2pdf (Ubuntu):
status: Fix Committed → Confirmed
Revision history for this message
Stefano Rivera (stefanor) wrote :

Both have been synced and should appear in the archive soon. Can a maverick tester please upgrade to them and see if this bug is still present?

Revision history for this message
Christopher (soft-kristal) wrote :

This morning's update to libgtk2-perl fixed the problem. Still won't save inputted filename, but I can deal with that.

Changed in gscan2pdf (Ubuntu):
status: Confirmed → Fix Released
tags: added: patch-accepted-debian
tags: removed: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.