Public bug reported:

X server hits a client limit at a very low value.   Somewhere around 95
clients.     This is very easy to hit and I have hit this limit
frequently since upgrading to 11.10.     This has not normally been a
problem in decades of running linux.

# Firefox downloads PDF file but does not open it as usual
$ evince /tmp/CM6206+datasheet+1.7.pdf &
[26] 9099
 Maximum number of clients reachedCannot parse arguments: Cannot open display: 
[26]   Exit 1                  evince /tmp/CM6206+datasheet+1.7.pdf
$ ubuntu-bug evince 
Maximum number of clients reachedCannot start: Gtk couldn't be initialized
$ ps axlww | fgrep -i evince | wc
     45     632    4771
 $ ico
Maximum number of clients reachedico: cannot open display ":0"
$ killall evince

# NOTE that I killed evince and thus about half the clients.

$ xlsclients | wc
     50     107    1227
$ xlsclients | sort | uniq -c
      1 ''  /bin/sh /usr/lib/libreoffice/program/soffice
      1 cervantes  applet.py
      1 cervantes  bamfdaemon
      1 cervantes  bluetooth-applet
      1 cervantes  compiz
      1 cervantes  deja-dup
      6 cervantes  emacs
      1 cervantes  eog
      1 cervantes  evolution-alarm-notify
      4 cervantes  file-roller
      1 cervantes  firefox
      1 cervantes  gdu-notification-daemon
      1 cervantes  gnome-fallback-mount-helper
      1 cervantes  gnome-screensaver
      1 cervantes  gnome-session
      1 cervantes  gnome-settings-daemon
      1 cervantes  gnome-terminal
      1 cervantes  gpodder
      3 cervantes  inkscape
      1 cervantes  nautilus
      1 cervantes  nm-applet
      1 cervantes  notify-osd
      1 cervantes  npviewer.bin
      2 cervantes  plugin-container
      1 cervantes  polkit-gnome-authentication-agent-1
      2 cervantes  python
      1 cervantes  scp-dbus-service.py
      1 cervantes  soffice
      1 cervantes  ubuntuone-syncdaemon
      1 cervantes  unity-panel-service
      1 cervantes  unity-window-decorator
      1 cervantes  update-manager
      1 cervantes  update-notifier
      2 cervantes  vlc
      2 cervantes  xsane
      1 cervantes  xterm -bg green -title alpine -e alpine


$ sudo lsof -p `pidof X` | grep socket | wc -l
[sudo] password for whitis:
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/whitis/.gvfs
      Output information may be incomplete.
64

$ xwininfo -root -children | wc
    882    5982   56551

$ xrestop - Display: :0
          Monitoring 67 clients. XErrors: 0
          Pixmaps:  162522K total, Other:    1405K total, All:  163928K total

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier    
1200000  1784    2    1   38 16732    26206K    435K  26641K   ?   Compiz
0600000     0    0    0    1    0    22500K      0B  22500K   ?   <unknown>
1a00000     7    3    1   20   66    20282K      2K  20284K  2723 nautilus
0c00000     6    2    0   18  319    18750K      7K  18757K  2680 gnome-setting
14c00000    59   99    1 2268 2453    12731K     62K  12793K  2426 Downloads
4e00000     4    3    1   18   55    12709K      2K  12712K 11289 food_0002.jpe
a400000    25  126    1 1040  151    12316K      8K  12324K 22268 Wireless Test
13600000    48  165    1  128  115     8221K      8K   8229K 26330 BitPim
0000000     2    0    2    0  132     7500K      5K   7505K   ?   <unknown>
1e00000     0    0    0    1    0     7500K      0B   7500K   ?   <unknown>
2c00000  9661   67    1  118 1113     1870K    255K   2125K  2782 unity-window-
e000000     5    3    1   19   57     1358K      2K   1361K  5330 CN0144-Design
6400000     5    3    1   19   57     1358K      2K   1361K 19168 st51_d00_e00.
6000000     5    3    1   19   57     1358K      2K   1361K 19051 st51_d00_asci
4c00000     5    3    1   19   57     1358K      2K   1361K 11279 15w-pcb.zip [
13a00000    15   99    1  175  131      900K      6K    906K 30059 Preview 7650
7a00000    15  101    1  167  130      899K      6K    906K 23198 Preview 7650:
7600000    17 7714    1   26   68      472K    183K    656K 21913 virginia_low.
6200000    22 7862    1   50   83      463K    187K    651K 21158 usmap2.svg -
7400000    17 4358    1   28   69      469K    105K    575K 21902 virginia.svg
...

Unity and compiz seem to have an inordinate number of windows open.

uptime was a mere 19 days.

I am not running google chrome, lastpass, or MinimizeToTray which have
been blamed for this problem elsewhere.

On a related note, the screensaver can take a very long time to let you
unlock the screen (and actually displays the desktop to prying eyes
before hiding it and displaying the prompt).    Last time I needed to
unlock, it would not display the password window.   I switched to a
console window and killed it.  It has been mentioned that switching to
console and back may free some x server resources.

I have 16GB RAM in this machine.

ati-driver-installer-11-10-x86.x86_64.run

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: xorg 1:7.6+7ubuntu7
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
.tmp.unity.support.test.0:
 
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: 1e1a99f31ec2933306456e1f141c45d8
CheckboxSystem: edda5d4f616ca792bf437989cb597002
CompizPlugins: 
[core,bailer,detection,composite,opengl,compiztoolbox,decor,gnomecompat,resize,regex,mousepoll,snap,imgpng,grid,place,unitymtgrabhandles,move,vpswitch,animation,workarounds,wall,session,expo,fade,ezoom,scale,unityshell]
CompositorRunning: compiz
Date: Sun Jan  1 07:19:16 2012
DistUpgraded: Log time: 2011-11-09 01:26:59.103060
DistroCodename: oneiric
DistroVariant: ubuntu
GdmLog: X: /tmp/.X11-unix has suspicious mode (not 1777) or is not a directory, 
aborting.
GraphicsCard:
 ATI Technologies Inc Cayman PRO [AMD Radeon 6900 Series] [1002:6719] (prog-if 
00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Device [1043:03d4]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
JockeyStatus:
 xorg:fglrx_updates - ATI/AMD proprietary FGLRX graphics driver (post-release 
updates) (Proprietary, Disabled, Not in use)
 xorg:fglrx - ATI/AMD proprietary FGLRX graphics driver (Proprietary, Disabled, 
Not in use)
MachineType: System manufacturer System Product Name
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic 
root=UUID=02f53b93-8fd3-44ee-911b-a2d656e2d4d2 ro
SourcePackage: xorg
UpgradeStatus: Upgraded to oneiric on 2011-11-09 (53 days ago)
dmi.bios.date: 02/17/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1902
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: Crosshair IV Formula
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr1902:bd02/17/2011:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnCrosshairIVFormula:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu5
version.fglrx-installer: fglrx-installer N/A
version.ia32-libs: ia32-libs 20090808ubuntu26
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu3
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 
1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:0.0.16+git20110411+8378443-1

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug compiz-0.9 oneiric running-unity ubuntu

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/910539

Title:
  maximum number of clients reached

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/910539/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to