** 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)
Created attachment 221713 [details] xsane-bugreport.txt (0.996)
Created attachment 221715 [details] xsane-bugreport.txt (0.997)
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
emerge --info output could be helpful.
Created attachment 222049 [details] emerge --info
Could not reproduce it yet, sorry.
Which versions of xorg-server are you running?
# 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
Created attachment 223953 [details] /var/log/Xorg.0.log
(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
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!
+*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
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...
Also update your system as that xorg-server version is not the latest stable. If still valid, try on a new created user account
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.
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
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 #13 was reported with 0.998
Still the case with -r1. Where do I disable that xinerama use flag? xsane doesn’t have it.
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!