After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 548665 - GTK+ applications crash on remote Debian Lenny X server
GTK+ applications crash on remote Debian Lenny X server
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-08-20 13:50 UTC by freggy1
Modified: 2008-08-21 12:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description freggy1 2008-08-20 13:50:56 UTC
I have a Mandriva 2009.0 system with GNOME 2.23 and GKT+ 2.13.7. When I connect to this system with ssh -X from a Debian Lenny PPC system, all GTK+ applications crash with this error:

$ gedit

Gdk-ERROR **: The program 'gedit' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
  (Details: serial 11 error_code 17 request_code 155 minor_code 8)
  (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.)
aborting...
Trace/breakpoint trap

Non-GTK+ applications can be started fine on remote X.
Comment 1 freggy1 2008-08-20 14:27:52 UTC
Backtrace:

  • #0 IA__g_logv
    at gmessages.c line 503
  • #1 IA__g_log
    at gmessages.c line 517
  • #2 gdk_x_error
    at gdkmain-x11.c line 641
  • #3 _XError
    at XlibInt.c line 2912
  • #4 _XReply
    at xcb_io.c line 419
  • #5 XRRGetScreenResources
    at XrrScreen.c line 81
  • #6 init_multihead
    at gdkscreen-x11.c line 682
  • #7 _gdk_x11_screen_new
    at gdkscreen-x11.c line 913
  • #8 IA__gdk_display_open
    at gdkdisplay-x11.c line 190
  • #9 IA__gdk_display_open_default_libgtk_only
    at gdk.c line 291
  • #10 IA__gtk_init_check
    at gtkmain.c line 924
  • #11 IA__gtk_init
    at gtkmain.c line 959
  • #12 main
    at gedit.c line 473

Comment 2 freggy1 2008-08-20 14:43:42 UTC
The debian system is running Debian Lenny PowerPC, X server 1.4.2.
The Mandriva system is x86.

Running xrandr on Mandriva with remove Debian X:

$ xrandr --verbose
X Error of failed request:  BadImplementation (server does not implement operation)
  Major opcode of failed request:  155 (RANDR)
  Minor opcode of failed request:  6 ()
  Serial number of failed request:  9
  Current serial number in output stream:  9
X Error of failed request:  BadImplementation (server does not implement operation)
  Major opcode of failed request:  155 (RANDR)
  Minor opcode of failed request:  8 ()
  Serial number of failed request:  10
  Current serial number in output stream:  10

Locally on the Debian X server:
$ xrandr --verbose
Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 2560 x 1878
LVDS connected 1280x854+1280+0 (0x5f) normal (normal left inverted right x axis y axis) 321mm x 214mm
	Identifier: 0x5c
	Timestamp:  49409
	Subpixel:   horizontal rgb
	Clones:    
	CRTC:       0
	CRTCs:      0
	EDID_DATA:
		00ffffffffffff000610209c01010101
		050c0103802016780aa7a299594f8c26
		1d525400000001010101010101010101
		0101010101012d1f000051560c301070
		130041d610000018000000fe004c544e
		31353257330000000a20000000fe004c
		544e31353257330000000a20000000fc
		00436f6c6f72204c43440a202020000b
		scaler: full
	backlight: 255 (0x000000ff) range:  (0,255)
  1280x854 (0x5f)   79.8MHz -HSync -VSync *current +preferred
        h: width  1280 start 1296 end 1408 total 1536 skew    0 clock   52.0KHz
        v: height  854 start  855 end  858 total  866           clock   60.0Hz
  1280x800 (0x60)   83.5MHz
        h: width  1280 start 1344 end 1480 total 1680 skew    0 clock   49.7KHz
        v: height  800 start  801 end  804 total  828           clock   60.0Hz
  1280x768 (0x61)   80.1MHz
        h: width  1280 start 1344 end 1480 total 1680 skew    0 clock   47.7KHz
        v: height  768 start  769 end  772 total  795           clock   60.0Hz
  1024x768 (0x62)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0x63)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  640x480 (0x64)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   59.9Hz
DVI-0 connected 1280x1024+0+0 (0x65) normal (normal left inverted right x axis y axis) 338mm x 270mm
	Identifier: 0x5d
	Timestamp:  49409
	Subpixel:   no subpixels
	Clones:     S-video
	CRTC:       1
	CRTCs:      0 1
	EDID_DATA:
		00ffffffffffff0010ac073043464141
		150c010308221b8cea6f8ba25a4d9424
		1a5156a54b0001010101010101010101
		010101010101302a009851002a403070
		1300520e1100001e000000ff00394730
		373732354b414146430a000000fc0044
		454c4c203137303246500a20000000fd
		00384c1e500e000a202020202020000b
		dvi_monitor_type: auto
		scaler: off
	load_detection: 1 (0x00000001) range:  (0,1)
  1280x1024 (0x65)  108.0MHz +HSync +VSync *current +preferred
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
  1600x1024 (0x66)  106.9MHz -HSync -VSync
        h: width  1600 start 1620 end 1640 total 1670 skew    0 clock   64.0KHz
        v: height 1024 start 1027 end 1030 total 1067           clock   60.0Hz
  1400x1050 (0x67)  122.0MHz +HSync +VSync
        h: width  1400 start 1488 end 1640 total 1880 skew    0 clock   64.9KHz
        v: height 1050 start 1052 end 1064 total 1082           clock   60.0Hz
  1280x1024 (0x68)  135.0MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock   80.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   75.0Hz
  1280x1024 (0x65)  108.0MHz +HSync +VSync *current
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock   64.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   60.0Hz
  1440x900 (0x69)  108.8MHz +HSync +VSync
        h: width  1440 start 1472 end 1880 total 1912 skew    0 clock   56.9KHz
        v: height  900 start  918 end  927 total  946           clock   60.2Hz
  1280x960 (0x6a)  108.0MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock   60.0KHz
        v: height  960 start  961 end  964 total 1000           clock   60.0Hz
  1280x800 (0x60)   83.5MHz
        h: width  1280 start 1344 end 1480 total 1680 skew    0 clock   49.7KHz
        v: height  800 start  801 end  804 total  828           clock   60.0Hz
  1152x864 (0x6b)  108.0MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock   67.5KHz
        v: height  864 start  865 end  868 total  900           clock   75.0Hz
  1280x768 (0x61)   80.1MHz
        h: width  1280 start 1344 end 1480 total 1680 skew    0 clock   47.7KHz
        v: height  768 start  769 end  772 total  795           clock   60.0Hz
  1024x768 (0x6c)   78.8MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock   60.1KHz
        v: height  768 start  769 end  772 total  800           clock   75.1Hz
  1024x768 (0x6d)   78.8MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock   60.0KHz
        v: height  768 start  769 end  772 total  800           clock   75.0Hz
  1024x768 (0x6e)   75.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1328 skew    0 clock   56.5KHz
        v: height  768 start  771 end  777 total  806           clock   70.1Hz
  1024x768 (0x62)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  832x624 (0x6f)   57.3MHz -HSync -VSync
        h: width   832 start  864 end  928 total 1152 skew    0 clock   49.7KHz
        v: height  624 start  625 end  628 total  667           clock   74.6Hz
  800x600 (0x70)   50.0MHz +HSync +VSync
        h: width   800 start  856 end  976 total 1040 skew    0 clock   48.1KHz
        v: height  600 start  637 end  643 total  666           clock   72.2Hz
  800x600 (0x71)   49.5MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock   46.9KHz
        v: height  600 start  601 end  604 total  625           clock   75.0Hz
  800x600 (0x63)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  800x600 (0x72)   36.0MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
        v: height  600 start  601 end  603 total  625           clock   56.2Hz
  640x480 (0x73)   31.5MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
        v: height  480 start  481 end  484 total  500           clock   75.0Hz
  640x480 (0x74)   31.5MHz -HSync -VSync
        h: width   640 start  664 end  704 total  832 skew    0 clock   37.9KHz
        v: height  480 start  489 end  492 total  520           clock   72.8Hz
  640x480 (0x73)   31.5MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
        v: height  480 start  481 end  484 total  500           clock   75.0Hz
  640x480 (0x75)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   60.0Hz
  640x480 (0x64)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   59.9Hz
  720x400 (0x76)   28.3MHz -HSync +VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock   31.5KHz
        v: height  400 start  412 end  414 total  449           clock   70.1Hz
S-video disconnected (normal left inverted right x axis y axis)
	Identifier: 0x5e
	Timestamp:  49409
	Subpixel:   no subpixels
	Clones:     DVI-0
	CRTCs:      0 1
		tv_standard: ntsc
	tv_vertical_position: 0 (0x00000000) range:  (-5,5)
	tv_horizontal_position: 0 (0x00000000) range:  (-5,5)
	tv_horizontal_size: 0 (0x00000000) range:  (-5,5)
	load_detection: 0 (0x00000000) range:  (0,1)
Comment 3 Matthias Clasen 2008-08-20 15:22:23 UTC
BadImplementation is by definition an X server bug. Please report this against the Mandriva X server.
Comment 4 Matthias Clasen 2008-08-20 15:23:53 UTC
Sorry, I meant the Debian X server.
Comment 6 Frederic Crozat 2008-08-21 12:01:28 UTC
according to http://cgit.freedesktop.org/xorg/xserver/tree/randr/rrsdispatch.c

randr doesn't yet swap all requests. Maybe we should try to grab the error for now in gtk and do as if randr was not detected ?