[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-12-13 Thread Matthew Piatt
I'm running an AMD Radeon HD 6450 with the driver downloaded and
installed from the AMD website (http://support.amd.com/en-
us/download/desktop?os=Linux%20x86)

When running sudo lsof -P `pidof X` I would also see a lot of entries
like another user mentioned above:

Xorg 21747 root 103r REG 8,4 0 16387220 /etc/ati/atiapfuser.blb

After renaming atiapfuser.blb to something else (atiapfuser.blb.bak), I
rebooted, and these entries stopped piling up. It's been a few days
since I did this, and I haven't seen them at all, and I don't get any
more errors about maximum number of clients reached.

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-11-11 Thread padarjohn
This is looking more and more like a X server resource leak.

I reached this state again after a couple of days (as I usually do) and
tried to capture some information to compare with the clean-state data,
so I closed everything I had open until I had only the clients that I
normally have right after login. Then I started running xwininfo with
different options.

After successfully running xwininfo several times I suddenly got

 Maximum number of clients reachedxwininfo: error: unable to open
display :0.0

I literally had not run anything else other than a few shell commands. I
seriously doubt xwininfo is leaking handles. Later, when I'm not doing
real work, I'll try to script something to see if I can create a
failure.

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   99

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-10-29 Thread padarjohn
I don't think this is an issue with a  hardcoded constant in X, not
unless someone recently made it much smaller. I hadn't seen this problem
at all in 15+ years of using Linux/X, not until upgrading from 10.04LTS
to 12.04LTS.

More likely it's a newly introduced resource leak in X or gnome.

I'm using the nVidia driver.

I hit this yesterday and had to log out/restart X, and I'm already
hitting it again today.

After killing everything except a single terminal and this instance of
Firefox I notice out of 244 root window children over 160 instances of
this sort:

 0xc001b9 (has no name): ()  238x196+842+518  +842+518
2 children:
0xc001ba (has no name): ()  236x164+1+27  +843+545
0xc001bb (has no name): ()  238x196+0+0  +842+518

They're all children of the root window. There are some duplicates, for
instance (ignoring their 2 children):

 0xc01660 (has no name): ()  1077x1052+850+154  +850+154
 0xc016b1 (has no name): ()  1077x1052+324+118  +324+118
 0xc017ea (has no name): ()  1077x1052+850+154  +850+154
 0xc01877 (has no name): ()  1077x1052+850+154  +850+154
 0xc018fb (has no name): ()  1077x1052+850+154  +850+154
 0xc01947 (has no name): ()  1077x1052+850+154  +850+154
 0xc019cc (has no name): ()  1077x1052+850+154  +850+154
 0xc01a45 (has no name): ()  1077x1052+850+154  +850+154

I used to think it was xscreensaver, but I disabled that. I have no screensaver 
process running now. The only strange thing that might be related is a shell 
script I run that fires off xplanet every 5 minutes to generate a jpeg and then 
calls 
  gconftool -t str -s /desktop/gnome/background/picture_filename file.jpg 
to update the background image.

 xlsclients
john  gnome-session
john  gnome-settings-daemon
john  gnome-panel
john  gnome-fallback-mount-helper
john  rainlendar2
john  polkit-gnome-authentication-agent-1
john  devilspie
john  gtk-window-decorator
john  notify-osd
john  gdu-notification-daemon
john  telepathy-indicator
john  indicator-applet
john  gweather-applet-2
john  indicator-applet-session
john  indicator-printers-service
john  evolution-alarm-notify
john  gnome-terminal
john  firefox

Any suggestions on how to debug this would be appreciated.

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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

  $ 

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-08-19 Thread SA
I've just hit this bug in 13.04 using nvidia drivers.

but the 280+ instances of Kblankscrn from the screen saver bug currently
going around probably contributes!

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 
7650:
  76017 77141   26   68  472K183K656K 21913 
virginia_low.
  62022 78621   50   83  463K187K651K 21158 usmap2.svg -
  74017 43581   28   69  469K105K575K 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

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-07-21 Thread linas
Nothing to do with ATI, I hit this on NVIDIA as well. In my case, I have
many, many copies of evince running.

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 
7650:
  76017 77141   26   68  472K183K656K 21913 
virginia_low.
  62022 78621   50   83  463K187K651K 21158 usmap2.svg -
  74017 43581   28   69  469K105K575K 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 

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-07-21 Thread linas
Anyway, googling for the error message suggests that lots of people hit
this; its a hard-coded constant in an X11 header file; it would need to
be changes and have X11 recompiled, or made into a run-time configurable
parameter.

Lets just hope that Wayland doesn't have this problem ...

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 
7650:
  76017 77141   26   68  472K183K656K 21913 
virginia_low.
  62022 78621   50   83  463K187K651K 21158 usmap2.svg -
  74017 43581   28   69  469K105K575K 21902 virginia.svg
  ...

  Unity and compiz seem to have an inordinate 

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-07-21 Thread CoolAcid
Although I agree with both points. It is hard coded limit in X11, and
you can hit it with NVIDIA drivers. However, in this case, there is a
bug in the ATI drivers which causes users to hit this limit sooner due
to elevated number of windows created and/or not released correctly.

Wayland *should* resolve this issue, however, ATI drivers would need to
be coded to use that driver format as they are currently not supported.

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 
7650:
  76017 77141   26   68  472K183K656K 21913 
virginia_low.
  62022 78621   50   83  463K187K651K 21158 usmap2.svg -

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-05-15 Thread SSShei
There is an easy way around this -- rename (or even delete) the file
/etc/ati/atiapfuser.blb. From my research this is a user profile which
doesn't seem to be utilized, at least in my case. When that files exist,
you will see LOTS of entries like:

Xorg21747 root  103r   REG8,40   16387220
/etc/ati/atiapfuser.blb

in the output of sudo lsof -P `pidof X`. But after I 'mv' the file,
not long these entries.

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  New

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 
7650:
  76017 77141   26   68  472K183K656K 21913 
virginia_low.
  62022 78621   50   83  463K187K651K 21158 

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-05-15 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: fglrx-installer (Ubuntu)
   Status: New = Confirmed

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 
7650:
  76017 77141   26   68  472K183K656K 21913 
virginia_low.
  62022 78621   50   83  463K187K651K 21158 usmap2.svg -
  74017 43581   28   69  469K105K575K 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 

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2013-05-15 Thread CoolAcid
What GPU and driver (w/ version) is everyone using? I've noticed the
/etc/ati/atiapfuser on mine and would like to see if this could be the
actual reason.

Thanks,
J

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  Confirmed

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 
7650:
  76017 77141   26   68  472K183K656K 21913 
virginia_low.
  62022 78621   50   83  463K187K651K 21158 usmap2.svg -
  74017 43581   28   69  469K105K575K 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 

[Desktop-packages] [Bug 910539] Re: maximum number of clients reached

2012-12-04 Thread Donatas Olsevičius
I've had 200 zenity instances (xlsclients | sort | uniq -c), killed it
(killall zenity) and now everything works fine. The problem appeared
after 35 days uptime.

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

Title:
  maximum number of clients reached

Status in “fglrx-installer” package in Ubuntu:
  New

Bug description:
  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 6324771
   $ 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 1071227
  $ 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
  8825982   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   
 
  120  178421   38 1673226206K435K  26641K   ?   Compiz
  060 0001022500K  0B  22500K   ?   unknown
  1a0 731   20   6620282K  2K  20284K  2723 nautilus
  0c0 620   18  31918750K  7K  18757K  2680 
gnome-setting
  14c059   991 2268 245312731K 62K  12793K  2426 Downloads
  4e0 431   18   5512709K  2K  12712K 11289 
food_0002.jpe
  a4025  1261 1040  15112316K  8K  12324K 22268 Wireless 
Test
  136048  1651  128  115 8221K  8K   8229K 26330 BitPim
  000 2020  132 7500K  5K   7505K   ?   unknown
  1e0 00010 7500K  0B   7500K   ?   unknown
  2c0  9661   671  118 1113 1870K255K   2125K  2782 
unity-window-
  e00 531   19   57 1358K  2K   1361K  5330 
CN0144-Design
  640 531   19   57 1358K  2K   1361K 19168 
st51_d00_e00.
  600 531   19   57 1358K  2K   1361K 19051 
st51_d00_asci
  4c0 531   19   57 1358K  2K   1361K 11279 15w-pcb.zip 
[
  13a015   991  175  131  900K  6K906K 30059 Preview 
7650
  7a015  1011  167  130  899K  6K906K 23198 Preview 
7650:
  76017 77141   26   68  472K183K656K 21913 
virginia_low.
  62022 78621   50   83  463K187K651K 21158 usmap2.svg -
  74017 43581   28   69  469K105K575K 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