ssh -X remote gtk-app locks up X-server for a minute



Hello. I'm not sure if this is the right forum, or if I should just file a bug.

There seems to be a strange timeout going on when running a gtk+
application over "ssh -X". The first time I pull down a menu, there is
a lot of network traffic going on and the whole X server freezes for
almost a minute. Once the pull down menu pops up, the application
reacts normally. Has anyone seen this behavior?

Here is some dump of strace from the client while this happens:

  select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
  read(3, "\1\0\200\5\0\0\0\0\25\1\0\0\245\0\240\0\0\0\0\0\10\0\0"..., 32) = 32
  write(3, "\31\0\v\0\237\0\240\0\0\0\0\0! A\0\237\0\240\0\306\1\0"..., 48) = 48
  read(3, 0xbfffd620, 32)                 = -1 EAGAIN (Resource
temporarily unavailable)
  select(4, [3], NULL, NULL, NULL)        = 1 (in [3])
  read(3, "\1\0\273\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30\0\0\0\30"..., 32) = 32
  write(3, "\17\0\2\0\230\265\240\0", 8)  = 8
  read(3, 0xbfffd640, 32)                 = -1 EAGAIN (Resource
temporarily unavailable)
  :
  <<repeats several thousand times but with different messages sent
and written>>

but eventually it stops and the application and the X-server starts
reacting again and the client enters the normal:

  poll([{fd=3, events=POLLIN}], 1, 0)     = 0

which is just the g_main_loop().

Anything I can do to work around it? I sometimes have to debug
programs by remote by ssh, and this is highly annoying...

Regards,
Dov



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]