ERROR: xsane-startimage not found.

Bug #1875706 reported by Ian Kay
90
This bug affects 19 people
Affects Status Importance Assigned to Milestone
xsane (Debian)
Fix Released
Unknown
xsane (Ubuntu)
Fix Released
Medium
Unassigned
Focal
Fix Released
High
Gunnar Hjalmarsson

Bug Description

[Impact]

Starting xsane produces the message:

ERROR: xsane-startimage not found. Looks like xsane is not installed correct.

It appears that the files in xsane-common are not copied into the location where xsane looks for the file xsane-startimage.png.
A similar problem was reported in late 2019 for debian.

[Test Plan]

You need a focal machine with a connected scanner to reproduce the issue.

 * Start xsane from terminal
 * Notice the error message as well as the incomplete UI

Then install xsane and xsane-common from focal-proposed, and find that the issue is no longer present.

[Where problems could occur]

The proposed change simply copies a .pnm file to a location where the program expects it to reside, and adds a symlink to the docs on disk. Can't think of any side effects of these measures.

[Other Info]

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xsane 0.999-8ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
Uname: Linux 5.4.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 28 13:38:50 2020
InstallationDate: Installed on 2020-04-25 (2 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: xsane
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ian Kay (yaknai) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xsane (Ubuntu):
status: New → Confirmed
Revision history for this message
Krzysztof Śmigrodzki (ksmigrod) wrote :

Quick workaround for this problem:

sudo mkdir -p /usr/share/sane/xsane
sudo ln -t /usr/share/sane/xsane /usr/share/doc/xsane-common/*.pnm /usr/share/doc/xsane-common/*.rc /usr/share/doc/xsane-common/*.xpm

I do not know how many of those files are actually needed in /usr/share/sane/xsane but “it works for me”.

Revision history for this message
Clemente López Giner (clemenlg) wrote :

#3 This workaround don't work for all the users (for me for example).

Revision history for this message
farpi (pifar) wrote :

works fine Thank you

Revision history for this message
Bernard Moreton (bernard-moreton-1) wrote :

Worked for me too - but then I found more problems (Failed to start scanner: invalid argument), and then
file:///usr.share/sane/xsane/doc/sane-problems-doc.html : not found
which is in /usr/share/doc/xsane-common/html/sane-problems-doc.html
together with lots of other stuff which is also presumably orphaned ...

Revision history for this message
Kent Svensson (svenssonpaveras) wrote :

Have the same problem: (Ubuntu 20.04)
[xsane] ERROR: xsane-startimage not found. Looks like xsane is not installed correct.

The above workaround (from Krzysztof Śmigrodzki) was like this for me:

sudo mkdir -p /usr/share/sane/xsane (no problem)
sudo ln -t /usr/share/sane/xsane /usr/share/doc/xsane-common/*.pnm (no problem)

/usr/share/doc/xsane-common/*.rc /usr/share/doc/xsane-common/*.xpm
bash: /usr/share/doc/xsane-common/xsane-icon.rc: Access denied

sudo /usr/share/doc/xsane-common/*.rc /usr/share/doc/xsane-common/*.xpm
sudo: /usr/share/doc/xsane-common/xsane-icon.rc: command not found

Changed in xsane (Ubuntu Focal):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → High
status: New → In Progress
Changed in xsane (Ubuntu):
status: Confirmed → Fix Released
Changed in xsane (Debian):
status: Unknown → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

The attached patch fixes this in Ubuntu 20.04.

tags: added: patch
description: updated
Mathew Hodson (mhodson)
Changed in xsane (Ubuntu):
importance: Undecided → Medium
Changed in xsane (Ubuntu Focal):
status: In Progress → Fix Committed
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Ian, or anyone else affected,

Accepted xsane into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xsane/0.999-8ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-focal
Revision history for this message
Ian Kay (yaknai) wrote :

Tested xsane and xsane-common version 0.999-8ubuntu2.1
The file xsane-startimage.pnm is now in the directory /usr/share/sane/xsane.
There were no complaints about missing images on startup.
The preview window now displays xsane-startimage.pnm correctly in lineart, gray and colour modes.
xsane worked properly in the viewer and save modes.

Revision history for this message
Ian Kay (yaknai) wrote : Re: [Bug 1875706] Re: ERROR: xsane-startimage not found.
Download full text (3.5 KiB)

Sorry, I can't figure out where to change the tag.
I added a comment summarizing my (successful) testing.

Ian Kay

    On Wednesday, March 3, 2021, 9:15:48 a.m. EST, Robie Basak <email address hidden> wrote:

 Hello Ian, or anyone else affected,

Accepted xsane into focal-proposed. The package will build now and be
available at https://launchpad.net/ubuntu/+source/xsane/0.999-8ubuntu2.1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Tags added: verification-needed verification-needed-focal

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1875706

Title:
  ERROR: xsane-startimage not found.

Status in xsane package in Ubuntu:
  Fix Released
Status in xsane source package in Focal:
  Fix Committed
Status in xsane package in Debian:
  Fix Released

Bug description:
  [Impact]

  Starting xsane produces the message:

  ERROR: xsane-startimage not found. Looks like xsane is not installed
  correct.

  It appears that the files in xsane-common are not copied into the location where xsane looks for the file xsane-startimage.png.
  A similar problem was reported in late 2019 for debian.

  [Test Plan]

  You need a focal machine with a connected scanner to reproduce the
  issue.

  * Start xsane from terminal
  * Notice the error message as well as the incomplete UI

  Then install xsane and xsane-common from focal-proposed, and find that
  the issue is no longer present.

  [Where problems could occur]

  The proposed change simply copies a .pnm file to a location where the
  program expects it to reside, and adds a symlink to the docs on disk.
  Can't think of any side effects of these measures.

  [Other Info]

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: xsane 0.999-8ubuntu2
  ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
  Uname: Linux 5.4.0-26-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Apr 28 13:38:50 2020
  InstallationDate: Installed on 2020-04-25 (2 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (2...

Read more...

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for testing, Ian. I changed the tags. (It's right below the bug description.)

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xsane - 0.999-8ubuntu2.1

---------------
xsane (0.999-8ubuntu2.1) focal; urgency=medium

  * debian/xsane.install:
    - Copy xsane-startimage.pnm into /usr/share/sane/xsane
      (LP: #1875706)
  * debian/xsane-common.links:
    - Add symlink so the docs are found from the GUI (from bug 1917273)

 -- Gunnar Hjalmarsson <email address hidden> Mon, 01 Mar 2021 04:07:09 +0100

Changed in xsane (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for xsane has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Clemente López Giner (clemenlg) wrote :

After update to 0.999-8ubuntu2.1, same error.
I reported the error with the error manager app.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

@Clemente: *Same* error sounds weird. Can you point me to the new bug you submitted?

Revision history for this message
Clemente López Giner (clemenlg) wrote (last edit ):

xsane
Capability : [(null)]
Capability : [image/jpeg]
Capability : [image/jpeg]
Capability : [image/jpeg]
munmap_chunk(): invalid pointer
Abortado (`core' generado)

This ocurrs after preview the image, check "multiple pages", and scan image.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

But that is something else than the issue reported by this bug report. So can you please submit a new bug using this command:

ubuntu-bug xsane

It would also be good if you could install and try the latest version from the 21.10 archive:

https://packages.ubuntu.com/impish/amd64/xsane/download

and let us know at the new bug whether the issue is present also with that version.

Revision history for this message
Clemente López Giner (clemenlg) wrote :

Hello @Gunnar,
I reported a crash as the Ubuntu documentation Reporting Bugs webpage says: https://help.ubuntu.com/community/ReportingBugs
After doing some tests, it only crash now when I try to scan a colour document (in greyscale all works perfectly).
The new report bug is 1946551: https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1946551
Regards

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Ok, thanks.

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.