Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#867667: xsane: Preview window empty/unusable

241 views
Skip to first unread message

Jeroen Nijhof

unread,
Jul 8, 2017, 7:50:03 AM7/8/17
to
Package: xsane
Version: 0.999-5
Severity: normal

After upgrading to stretch the preview window is empty/unusable:
i.e. it seems bug 712281 should be reopened.

How to reproduce:

(no .sane/xsane yet)
start xsane
close the preview window
(at this point the preview window can still be reopened ok)
stop xsane
start xsane
open the preview

Result: an empty window, no buttons, and moving the mouse
generates strips of mostly black blobs on the top and left of
the window.

But -- quitting xsane now, and restarting it does result
in a working preview window again! So the problem seems to be
some missing initialization of the preview window when
starting without one.

As described in bug 712281, rm -r ~/.sane/xsane also resolves
the problem, temporarily at least, but that is because
without .sane/xsane the default is to start _with_ the
preview window.

-- System Information:
Debian Release: 9.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xsane depends on:
ii libc6 2.24-11+deb9u1
ii libgimp2.0 2.8.18-1
ii libglib2.0-0 2.50.3-2
ii libgtk2.0-0 2.24.31-2
ii libjpeg62-turbo 1:1.5.1-2
ii liblcms2-2 2.8-4
ii libpng16-16 1.6.28-1
ii libsane 1.0.25-4.1
ii libtiff5 4.0.8-2+deb9u1
ii xsane-common 0.999-5
ii zlib1g 1:1.2.8.dfsg-5

Versions of packages xsane recommends:
ii chromium [www-browser] 59.0.3071.86-1
ii cups-client 2.2.1-8
ii elinks [www-browser] 0.12~pre6-12
ii firefox-esr [www-browser] 52.2.0esr-1~deb9u1
ii google-chrome-stable [www-browser] 59.0.3071.115-1
ii w3m [www-browser] 0.5.3-34

Versions of packages xsane suggests:
ii gimp 2.8.18-1
pn gocr | cuneiform | tesseract-ocr | ocrad <none>
ii gv 1:3.7.4-1+b1
pn hylafax-client | mgetty-fax <none>

-- debconf-show failed

Andrew Worsley

unread,
Nov 17, 2018, 7:40:03 PM11/17/18
to
The work around as described in the Ubuntu version works ok for me.

https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1410756

Opening the preview page with the Ctrl-1 and then shutting down and
restarting it starts with the preview pane with all the buttons
displayed
and working properly. - Thank God for this work around - really
annoying otherwise.

Andrew

Sanne Grabisch

unread,
Jul 1, 2019, 3:30:02 PM7/1/19
to
Package: xsane
Version: 0.999-6+b1
Followup-For: Bug #867667

I can confirm the bug still exists in debian buster.
(the workaround deleting .sane/xsane works too.)



-- System Information:
Debian Release: 10.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xsane depends on:
ii libc6 2.28-10
ii libgimp2.0 2.10.8-2
ii libglib2.0-0 2.58.3-2
ii libgtk2.0-0 2.24.32-3
ii libjpeg62-turbo 1:1.5.2-2+b1
ii liblcms2-2 2.9-3
ii libpng16-16 1.6.36-6
ii libsane 1.0.27-3.2
ii libtiff5 4.0.10-4
ii sensible-utils 0.0.12
ii xsane-common 0.999-6
ii zlib1g 1:1.2.11.dfsg-1

Versions of packages xsane recommends:
ii cups-client 2.2.10-6
ii firefox-esr [www-browser] 60.7.2esr-1

Versions of packages xsane suggests:
ii gimp 2.10.8-2
pn gocr | cuneiform | tesseract-ocr | ocrad <none>
pn gv <none>
pn hylafax-client | mgetty-fax <none>

-- no debconf information

Jozef Riha

unread,
Sep 23, 2020, 6:30:04 AM9/23/20
to
I am on Arch Linux but affected by the very same issue. There is another workaround that worked for me:
running with --sync (i. e. xsane --sync)

Looks like the preview window gets created on each startup and then later - corresponding to settings -
either it's left as is or hidden. Maybe if it's happening too fast (w/o sync) this leads to corruption.

Quick and dirty semi-solution (certainly not ideal but al least working 100%) is to discard the hiding part (that is:
ignore the setting at startup):

--- xsane.c.orig 2020-09-23 12:14:13.366814683 +0200
+++ xsane.c 2020-09-23 12:14:17.106792054 +0200
@@ -5347,10 +5347,10 @@
   {
     gtk_widget_show(xsane.preview->top);
   }
-  else
-  {
-    gtk_widget_hide(xsane.preview->top);
-  }
+  //else
+  //{
+    //gtk_widget_hide(xsane.preview->top);
+  //}
   gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(xsane.show_preview_widget), xsane.show_preview);
 
   xsane_define_maximum_output_size(); /* draw maximum output frame in preview window if necessary */

I do hope someone knowledgeable steps in and prepare a proper fix.

BR, jose

Michael Hatzold

unread,
Jun 9, 2022, 11:50:04 AM6/9/22
to
Package: xsane
Version: 0.999-12
Followup-For: Bug #867667

I do not see what I am scanning. Hence I cannot adjust brightness,
contrast, dimensions. And as my last working xsane scan was not a full
page, I now stuck with those dimension. Don't tell me I could change
the dimensions in a submenue, I know.

Scanning blindly makes xsane unusuable!

BTW, as maybe it's related: I have enabled "preview" in the window (de:
Ansicht) pull-down menue. And then stored the settings. Nonetheless the
(empty) preview window does not get opened on start of xsane.


-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.2-4-siduction-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xsane depends on:
ii libc6 2.33-7
ii libgimp2.0 2.10.30-1+b1
ii libglib2.0-0 2.72.2-2
ii libgtk2.0-0 2.24.33-2
ii libjpeg62-turbo 1:2.1.2-1
ii liblcms2-2 2.12~rc1-2
ii libpng16-16 1.6.37-5
ii libsane1 1.1.1-5
ii libtiff5 4.4.0-2
ii sensible-utils 0.0.17
ii xsane-common 0.999-12
ii zlib1g 1:1.2.11.dfsg-4

Versions of packages xsane recommends:
ii chromium [www-browser] 102.0.5005.61-1
ii cups-client 2.4.2-1
ii falkon [www-browser] 3.2.0+dfsg1-2
ii firefox [www-browser] 100.0.2-1
ii lynx [www-browser] 2.9.0dev.10-1
ii vivaldi-snapshot [www-browser] 5.3.2679.50-1
ii vivaldi-stable [www-browser] 5.3.2679.51-1
ii w3m [www-browser] 0.5.3+git20220429-1+b1

Versions of packages xsane suggests:
ii cuneiform 1.1.0+dfsg-9
ii gimp 2.10.30-1+b1
ii gocr 0.52-3
ii gv 1:3.7.4-2+b1
pn hylafax-client | mgetty-fax <none>
ii ocrad 0.28-2

-- no debconf information



greetings

MH

Michael Hatzold

unread,
Jun 9, 2022, 3:30:04 PM6/9/22
to
Package: xsane
Version: 0.999-12
Followup-For: Bug #867667

Hi

After some more research it seams this bug could be somehow DE related:

I normaly work in a fluxbox environment. And so I did today when I hit
this bug (not for the first time!). As I was in a hurry with some
documents I had to scan, I installed an other scanning application
(simple scan) which did the job.

On the same HW and same installation I later switched to a different
WM/DE: lxqt

When I started xsane while running lxqt, the preview window opened for a
fraction of a second, but closed instantly. I could reopen it and it
worked as it should. Even after closing and reopening xsane, the
preview window opened and stayed open from now on. It even worked after
a reboot. And, to my surprise, it now works in fluxbox, too. As if
there never was a bug.

Bug closed? NO!

This malfunction occurred over the last two years again and again 9 out
of 10 times I wanted to use xsane. And it is not clear why it happens
and when it will happen again.


-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.2-4-siduction-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xsane depends on:
ii libc6 2.33-7
ii libgimp2.0 2.10.30-1+b1
ii libglib2.0-0 2.72.2-2
ii libgtk2.0-0 2.24.33-2
ii libjpeg62-turbo 1:2.1.2-1
ii liblcms2-2 2.12~rc1-2
ii libpng16-16 1.6.37-5
ii libsane1 1.1.1-5
ii libtiff5 4.4.0-2
ii sensible-utils 0.0.17
ii xsane-common 0.999-12
ii zlib1g 1:1.2.11.dfsg-4

Versions of packages xsane recommends:
ii chromium [www-browser] 102.0.5005.61-1
ii cups-client 2.4.2-1
ii falkon [www-browser] 3.2.0+dfsg1-2
ii firefox [www-browser] 100.0.2-1
ii lynx [www-browser] 2.9.0dev.10-1
ii vivaldi-snapshot [www-browser] 5.3.2679.50-1
ii vivaldi-stable [www-browser] 5.3.2679.51-1
ii w3m [www-browser] 0.5.3+git20220429-1+b1

Versions of packages xsane suggests:
0 new messages