Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307401 - media-gfx/xsane crashes during startup if xinerama is enabled
Summary: media-gfx/xsane crashes during startup if xinerama is enabled
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2010-03-02 00:14 UTC by Arsen Shnurkov
Modified: 2017-02-21 19:57 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xsane-bugreport.txt (0.996) (xsane-bugreport.996.txt,55.22 KB, text/plain)
2010-03-02 00:14 UTC, Arsen Shnurkov
Details
xsane-bugreport.txt (0.997) (xsane-bugreport.997.txt,54.91 KB, text/plain)
2010-03-02 00:15 UTC, Arsen Shnurkov
Details
emerge --info (emerge.info.txt,4.06 KB, text/plain)
2010-03-04 17:12 UTC, Arsen Shnurkov
Details
/var/log/Xorg.0.log (Xorg.0.log,60.90 KB, text/plain)
2010-03-16 20:12 UTC, Arsen Shnurkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arsen Shnurkov 2010-03-02 00:14:12 UTC
** Gdk **: The program 'xsane' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 19250 error_code 8 request_code 145 minor_code 5)
Comment 1 Arsen Shnurkov 2010-03-02 00:14:45 UTC
Created attachment 221713 [details]
xsane-bugreport.txt (0.996)
Comment 2 Arsen Shnurkov 2010-03-02 00:15:21 UTC
Created attachment 221715 [details]
xsane-bugreport.txt (0.997)
Comment 3 Bodo Graumann 2010-03-03 17:03:35 UTC
I can confirm this problem, although it comes a little more random:
often I get a crash on start with an error similar to the original reporter
"(Details: serial 9040 error_code 8 request_code 149 minor_code 5)"
but sometimes the scan-window opens correctly but it crashes when I press "scan"

I am using sane-backends-1.0.19-r2 and the error occurs with both avaiable versions of xsane

hope this gets fixed soon
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2010-03-04 11:23:48 UTC
emerge --info output could be helpful.
Comment 5 Arsen Shnurkov 2010-03-04 17:12:49 UTC
Created attachment 222049 [details]
emerge --info
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2010-03-09 20:53:42 UTC
Could not reproduce it yet, sorry.
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2010-03-15 19:20:28 UTC
Which versions of xorg-server are you running?
Comment 8 Bodo Graumann 2010-03-15 20:35:45 UTC
# X -version 

X.Org X Server 1.6.5
Release Date: 2009-10-11
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-gentoo-r5 x86_64 
Current Operating System: Linux nowhereland 2.6.31-gentoo-r6 #1 SMP PREEMPT Fri Feb 26 09:06:57 CET 2010 x86_64
Build Date: 11 December 2009  12:30:44PM
Comment 9 Arsen Shnurkov 2010-03-16 20:12:46 UTC
Created attachment 223953 [details]
/var/log/Xorg.0.log
Comment 10 Arsen Shnurkov 2010-03-16 20:13:46 UTC
(In reply to comment #7)
> Which versions of xorg-server are you running?

X.Org X Server 1.6.5
Release Date: 2009-10-11
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.32-gentoo-kms x86_64 
Current Operating System: Linux Gentoo_x64n 2.6.32-gentoo-r6-kms #1 SMP Wed Feb 24 13:29:26 MSK 2010 x86_64
Comment 11 Patrick Kursawe (RETIRED) gentoo-dev 2010-04-14 20:25:50 UTC
This problem is not gentoo specific and I did not find a general solution. According to my research (well, search engine use) this is a known problem at least on SuSE, RedHat, Debian and Ubuntu. The "solutions" range from using a different X server version, using different graphics card drivers to disabling xinerama. Well, the last suggestion is maybe one which you can easily try.

I contacted the xsane author and he said that he does currently not have the time to investigate the problem, and I can not reproduce it on my box.

Good luck!
Comment 12 Pacho Ramos gentoo-dev 2011-07-08 13:05:11 UTC
+*xsane-0.998 (08 Jul 2011)
+
+  08 Jul 2011; Pacho Ramos <pacho@gentoo.org> +xsane-0.998.ebuild,
+  metadata.xml:
+  Version bump and apply a lot of fixes from different distributions, taking
+  this (with printing and graphics herds as backup) as this looks a bit orphan
+  for a long time.
+

Retry on a fully updated system with xsane-0.998
Comment 13 Bodo Graumann 2011-07-08 19:24:35 UTC
I now have version 0.998 installed and still get:

(xsane:23844): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion `height >= -1' failed
The program 'xsane' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 2548 error_code 8 request_code 149 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


#X -version:

X.Org X Server 1.9.4
Release Date: 2011-02-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.34-gentoo-r1 x86_64 Gentoo
Current Operating System: Linux nowhereland 2.6.37-tuxonice #1 SMP PREEMPT Wed May 25 15:39:03 CEST 2011 x86_64
Kernel command line: softlevel=desktop
Build Date: 20 February 2011  12:05:36PM
Current version of pixman: 0.20.2

I will probably try disabling xinerama...
Comment 14 Pacho Ramos gentoo-dev 2011-07-08 19:33:40 UTC
Also update your system as that xorg-server version is not the latest stable. If still valid, try on a new created user account
Comment 15 Bodo Graumann 2011-07-11 19:08:24 UTC
Ok, I now did a full system update, in particular: 
X.Org X Server 1.10.3
Release Date: 2011-07-08
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.37-tuxonice x86_64 Gentoo
Current Operating System: Linux nowhereland 2.6.38-tuxonice-r1 #1 SMP PREEMPT Mon Jul 11 14:24:34 CEST 2011 x86_64
Kernel command line: softlevel=desktop
Build Date: 11 July 2011  12:22:29PM

But the above error for xsane still occurs on startup.
Disabling xinerama indeed does the trick and xsane works then.
I must admit, that I'm using the proprietary nvidia drivers. But I couldn't get xinerama with the native nv-driver working, to do any further testing.
Comment 16 Pacho Ramos gentoo-dev 2011-07-12 10:52:48 UTC
Looks like this problem was reported to other distributions but I cannot find the fix (if it really exists):
https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/446373
https://bugzilla.novell.com/show_bug.cgi?id=560214
Comment 17 Andreas K. Hüttel archtester gentoo-dev 2012-02-19 22:06:31 UTC
No dupes or changes in this bug for a while and 0.998 is stable... Assuming this bug is fixed. If you disagree, please shout / re-open / ...
Comment 18 Pacho Ramos gentoo-dev 2012-02-20 09:10:22 UTC
Comment #13 was reported with 0.998
Comment 19 Navid Zamani 2012-03-02 11:17:03 UTC
Still the case with -r1.

Where do I disable that xinerama use flag? xsane doesn’t have it.
Comment 20 Andreas Proteus 2013-09-27 17:37:09 UTC
This problem also applies to media-gfx/xsane-0.999.

I use xinerama with a triple monitor configuration.
Whenever I need to scan something I restart X with a different xorg.conf
to use one head without xinerama. Bummer!