cannot open display: :0.0

Help please, I don’t know what’s happened… :frowning:

aleksej@linux-ltgs:~> LC_ALL=C uname -a                                                                              Linux linux-ltgs 4.3.3-1-default #1 SMP PREEMPT Wed Dec 16 08:03:35 UTC 2015 (db72752) x86_64 x86_64 x86_64 GNU/Linux
aleksej@linux-ltgs:~> LC_ALL=C gimp                                                                                  
Skipping duplicate plug-in: '/usr/lib64/gimp/2.0/plug-ins/gmic_gimp'
Maximum number of clients reachedxcb_connection_has_error() returned true
Maximum number of clients reached
(file-jpeg:2837): Gtk-WARNING **: cannot open display: :0.0
^C/usr/lib64/gimp/2.0/plug-ins/script-fu terminated: Interrupt
gimp: terminated: Interrupt


aleksej@linux-ltgs:~> LC_ALL=C kwrite
cannot find .rc file "kwriteui.rc" for component "kwrite"
cannot find .rc file "kwriteui.rc" for component "kwrite"
^C
aleksej@linux-ltgs:~> LC_ALL=C chromium
Maximum number of clients reachedxcb_connection_has_error() returned true
Maximum number of clients reached[2877:2877:1225/203628:FATAL:x11_event_source.cc(80)] Check failed: display_. 
#0 0x7f72eb15e67e base::debug::StackTrace::StackTrace()
#1 0x7f72eb17d2ce logging::LogMessage::~LogMessage()
#2 0x7f72ea231308 ui::X11EventSource::X11EventSource()
#3 0x7f72ea231797 ui::PlatformEventSource::CreateDefault()
#4 0x7f72ee4eac4b content::GpuMain()
#5 0x7f72edf95f24 content::ContentMainRunnerImpl::Run()
#6 0x7f72edf94931 content::ContentMain()
#7 0x56499dd43daa ChromeMain
#8 0x7f72e65db610 __libc_start_main
#9 0x56499dd43c59 _start


Received signal 6
#0 0x7f72eb15e67e base::debug::StackTrace::StackTrace()
#1 0x7f72eb15e75b base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x7f72e6970d60 <unknown>
#3 0x7f72e65efd38 __GI_raise
#4 0x7f72e65f118a __GI_abort
#5 0x7f72eb15d285 base::debug::BreakDebugger()
#6 0x7f72eb17d405 logging::LogMessage::~LogMessage()
#7 0x7f72ea231308 ui::X11EventSource::X11EventSource()
#8 0x7f72ea231797 ui::PlatformEventSource::CreateDefault()
#9 0x7f72ee4eac4b content::GpuMain()
#10 0x7f72edf95f24 content::ContentMainRunnerImpl::Run()
#11 0x7f72edf94931 content::ContentMain()
#12 0x56499dd43daa ChromeMain
#13 0x7f72e65db610 __libc_start_main
#14 0x56499dd43c59 _start
  r8: ffffa47f2b8bea30  r9: ffffa47f2b8bea20 r10: 0000000000000008 r11: 0000000000000202
 r12: 00007fffb971dea8 r13: 00007fffb971da30 r14: 0000000000000000 r15: 0000000000000000
  di: 0000000000000b3d  si: 0000000000000b3d  bp: 00007fffb971d9d0  bx: 00007fffb971dea0
  dx: 0000000000000006  ax: 0000000000000000  cx: 00007f72e65efd38  sp: 00007fffb971d678
  ip: 00007f72e65efd38 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
[2820:2845:1225/203635:ERROR:logging.h(810)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[2820:2845:1225/203635:ERROR:native_backend_kwallet_x.cc(396)] Error contacting kwalletd (isEnabled)
[2820:2845:1225/203636:ERROR:logging.h(810)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[2820:2845:1225/203636:ERROR:native_backend_kwallet_x.cc(396)] Error contacting kwalletd (isEnabled)
Fontconfig error: Cannot load default config file
aleksej@linux-ltgs:~> LC_ALL=C chromium
Maximum number of clients reachedxcb_connection_has_error() returned true
Maximum number of clients reached[3285:3285:1225/204618:FATAL:x11_event_source.cc(80)] Check failed: display_.  
#0 0x7f1eac62367e base::debug::StackTrace::StackTrace()
#1 0x7f1eac6422ce logging::LogMessage::~LogMessage()
#2 0x7f1eab6f6308 ui::X11EventSource::X11EventSource()
#3 0x7f1eab6f6797 ui::PlatformEventSource::CreateDefault()
#4 0x7f1eaf9afc4b content::GpuMain()
#5 0x7f1eaf45af24 content::ContentMainRunnerImpl::Run()
#6 0x7f1eaf459931 content::ContentMain()
#7 0x55eef2806daa ChromeMain
#8 0x7f1ea7aa0610 __libc_start_main
#9 0x55eef2806c59 _start

Received signal 6
#0 0x7f1eac62367e base::debug::StackTrace::StackTrace()
#1 0x7f1eac62375b base::debug::(anonymous namespace)::StackDumpSignalHandler()
#2 0x7f1ea7e35d60 <unknown>
#3 0x7f1ea7ab4d38 __GI_raise
#4 0x7f1ea7ab618a __GI_abort
#5 0x7f1eac622285 base::debug::BreakDebugger()
#6 0x7f1eac642405 logging::LogMessage::~LogMessage()
#7 0x7f1eab6f6308 ui::X11EventSource::X11EventSource()
#8 0x7f1eab6f6797 ui::PlatformEventSource::CreateDefault()
#9 0x7f1eaf9afc4b content::GpuMain()
#10 0x7f1eaf45af24 content::ContentMainRunnerImpl::Run()
#11 0x7f1eaf459931 content::ContentMain()
#12 0x55eef2806daa ChromeMain
#13 0x7f1ea7aa0610 __libc_start_main
#14 0x55eef2806c59 _start
  r8: ffff8d2c0859eff0  r9: ffff8d2c0859efe0 r10: 0000000000000008 r11: 0000000000000202
 r12: 00007fff67f168e8 r13: 00007fff67f16470 r14: 0000000000000000 r15: 0000000000000000
  di: 0000000000000cd5  si: 0000000000000cd5  bp: 00007fff67f16410  bx: 00007fff67f168e0
  dx: 0000000000000006  ax: 0000000000000000  cx: 00007f1ea7ab4d38  sp: 00007fff67f160b8
  ip: 00007f1ea7ab4d38 efl: 0000000000000202 cgf: 0000000000000033 erf: 0000000000000000
 trp: 0000000000000000 msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
[3233:3255:1225/204620:ERROR:logging.h(810)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/
kwalletd: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[3233:3255:1225/204620:ERROR:native_backend_kwallet_x.cc(396)] Error contacting kwalletd (isEnabled)
[3233:3255:1225/204622:ERROR:logging.h(810)] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/
kwalletd: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
[3233:3255:1225/204622:ERROR:native_backend_kwallet_x.cc(396)] Error contacting kwalletd (isEnabled)
Fontconfig error: Cannot load default config file
Fontconfig error: Cannot load default config file
[3233:3260:1225/205800:ERROR:sync_resource_handler.cc(59)] Cross origin redirect denied
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

Can you give us more information of what are you doing when the errors has occurred? Do you have updated any packages recently?

By the errror that you have posted it seems that you have reached the maximum number of clients allowed by the X server. You can install the xlsclients package to see the running clients.

Install the xlsclients:


zypper in xlsclients

After you have xlsclients installed, please, post the output from the following commads:


xlsclients | wc -l 
xlsclients

aleksej@linux-ltgs:~> xlsclients | wc -l
Maximum number of clients reachedxlsclients:  unable to open display ":0"
0
aleksej@linux-ltgs:~> xlsclients  
Maximum number of clients reachedxlsclients:  unable to open display ":0"


sudo zypper up only.
I can not run the application after the last update.

Wow. … top:

**[0;10m[1m 5435 root      20   0  119136  53556   2084 R 13,29 2,324   0:03.84 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5465 root      20   0  119136  50316   2048 R 13,29 2,184   0:02.95 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5473 root      20   0  119136  47520   2036 R 13,29 2,063   0:02.69 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5477 root      20   0  119136  45792   2048 R 13,29 1,988   0:02.50 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5479 root      20   0  119136  45780   2060 R 13,29 1,987   0:02.44 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5481 root      20   0  119136  44424   2092 R 13,29 1,928   0:02.37 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5437 root      20   0  119136  53328   2092 R 12,97 2,315   0:03.53 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5470 root      20   0  119136  48996   2028 R 12,97 2,127   0:02.77 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5475 root      20   0  119136  46560   2036 R 12,97 2,021   0:02.66 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5483 root      20   0  119136  41588   2140 R 12,97 1,805   0:02.10 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m 5443 root      20   0  119136  46836   2056 D 11,39 2,033   0:02.69 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m 5447 root      20   0  119136  45156   2084 D 10,76 1,960   0:02.50 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5455 root      20   0  119136  43976   2024 R 8,861 1,909   0:02.40 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5441 root      20   0  119136  46968   2080 R 8,228 2,039   0:02.70 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5439 root      20   0  119136  52208   2092 R 6,646 2,266   0:03.13 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5457 root      20   0  119136  42724   2044 R 5,696 1,854   0:02.24 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5459 root      20   0  119136  42540   2084 R 5,696 1,846   0:02.22 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5462 root      20   0  119136  41060   2068 R 5,063 1,782   0:02.07 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m[1m 5449 root      20   0  119136  45576   2044 R 2,848 1,978   0:02.51 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m 5451 root      20   0  119136  42984   2140 D 1,899 1,866   0:02.28 systemd-coredum                                                                            [0;10m[39;49m[K[/b]
**[0;10m 5453 root      20   0  119136  42084   2148 D 1,266 1,827   0:02.19 systemd-coredum  [/b]                                                                          0;10m39;49mK
0;10m1m 5423 aleksej   20   0   41848   4428   3412 R 0,949 0,192   0:00.68 top                                                                                        0;10m39;49mK
0;10m1m    7 root      20   0       0      0      0 R 0,633 0,000   0:03.02 rcu_preempt                                                                                0;10m39;49mK
0;10m  344 root       0 -20       0      0      0 S 0,316 0,000   0:00.92 kworker/0:1H                                                                               0;10m39;49mK
0;10m 1696 root      20   0  296080  23304  12536 S 0,316 1,011   3:09.47 Xorg                                                                                       0;10m39;49mK
0;10m 1863 aleksej   20   0 1375144  14764   9256 D 0,316 0,641   0:02.43 kded5                                                                                      0;10m39;49mK
0;10m 1984 aleksej   20   0  449956    356     12 D 0,316 0,015   0:00.42 xembedsniproxy                                                                             0;10m39;49mK
0;10m 2079 aleksej   20   0  449956   2700   2244 D 0,316 0,117   0:00.41 xembedsniproxy                                                                             0;10m39;49mK
0;10m 2155 aleksej   20   0  449956    428      0 D 0,316 0,019   0:00.39 xembedsniproxy                                                                             0;10m39;49mK
0;10m 2173 aleksej   20   0  449956   1560   1072 D 0,316 0,068   0:00.38 xembedsniproxy                                                                             0;10m39;49mK
0;10m 2325 aleksej   20   0  449956   3420   2880 D 0,316 0,148   0:00.35 xembedsniproxy                                                                             0;10m39;49mK
0;10m 2373 aleksej   20   0  449956   1536   1124 D 0,316 0,067   0:00.34 xembedsniproxy                                                                             0;10m39;49mK
0;10m 2435 aleksej   20   0  449956   1480   1116 D 0,316 0,064   0:00.34 xembedsniproxy                                                                             0;10m39;49mK
0;10m 2474 aleksej   20   0 1142044 107660  18704 D 0,316 4,673   1:05.48 thunderbird-bin                                                                            0;10m39;49mK
0;10m 2878 aleksej   20   0 1000772  37564  14024 S 0,316 1,630   0:29.96 chromium                                                                                   0;10m39;49mK
0;10m 4908 root      20   0       0      0      0 S 0,316 0,000   0:01.44 kworker/u8:1                                                                               0;10m39;49mK
0;10m 4916 root      20   0       0      0      0 S 0,316 0,000   0:00.80 kworker/1:2                                                                                0;10m39;49mK
0;10m    1 root      20   0  124084   1656    660 S 0,000 0,072   0:03.29 systemd                                                                                    0;10m39;49mK
0;10m    2 root      20   0       0      0      0 S 0,000 0,000   0:00.05 kthreadd                                                                                   0;10m39;49mK
0;10m    3 root      20   0       0      0      0 S 0,000 0,000   0:00.20 ksoftirqd/0                                                                                0;10m39;49mK
0;10m    5 root       0 -20       0      0      0 S 0,000 0,000   0:00.00 kworker/0:0H                                                                               0;10m39;49mK
0;10m    8 root      20   0       0      0      0 S 0,000 0,000   0:00.00 rcu_sched                                                                                  0;10m39;49mK
0;10m    9 root      20   0       0      0      0 S 0,000 0,000   0:00.00 rcu_bh                                                                                     0;10m39;49mK
0;10m   10 root      rt   0       0      0      0 S 0,000 0,000   0:00.01 migration/0                                                                                0;10m39;49mK
0;10m   11 root      rt   0       0      0      0 S 0,000 0,000   0:00.00 watchdog/0                                                                                 0;10m39;49mK
0;10m   12 root      rt   0       0      0      0 S 0,000 0,000   0:00.00 watchdog/1                                                                                 0;10m39;49mK
0;10m   13 root      rt   0       0      0      0 S 0,000 0,000   0:00.05 migration/1                                                                                0;10m39;49mK
0;10m   14 root      20   0       0      0      0 S 0,000 0,000   0:00.20 ksoftirqd/1                                                                                0;10m39;49mK
0;10m   16 root       0 -20       0      0      0 S 0,000 0,000   0:00.00 kworker/1:0H                                                                               0;10m39;49mK
0;10m   18 root      20   0       0      0      0 S 0,000 0,000   0:00.00 kdevtmpfs                                                                                  0;10m39;49mK
0;10m   19 root       0 -20       0      0      0 S 0,000 0,000   0:00.00 netns                                                                                      0;10m39;49mK
0;10m   20 root       0 -20       0      0      0 S 0,000 0,000   0:00.00 perf                                                                                       0;10m39;49mK
0;10m   21 root      20   0       0      0      0 S 0,000 0,000   0:00.00 khungtaskd                                                                                 0;10m39;49mK
0;10m   22 root       0 -20       0      0      0 S 0,000 0,000   0:00.00 writeback                                                                                  0;10m39;49mK
0;10m   23 root      25   5       0      0      0 S 0,000 0,000   0:00.00 ksmd                                                                                       0;10m39;49mK
0;10m   25 root      39  19       0      0      0 S 0,000 0,000   0:00.28 khugepaged                                                                                 0;10m39;49mK
0;10m   26 root       0 -20       0      0      0 S 0,000 0,000   0:00.00 crypto                                                                                     0;10m39;49mK65;1H
?25h?0cK


Any ideas?
I switched to IceWM, IceWM doesn’t have this problem.
Is it problem KDE only?
What is it, xembedsniproxy ?

That’s something you would have to answer, no? :wink:

What is it, xembedsniproxy ?

It’s a (KDE) service that converts old-style XEmbed system tray icons to new style SNI ones.
And it is necessary to have old-style system tray icons show up at all in Plasma5.

That said, for some reason Tumbleweed still contains a very old version that has two bugs in particular:

  • it doesn’t disable session management, so the previously running instance gets restarted on login in addition to a new, auto-started, one
  • it doesn’t check whether it (or another old-style system tray implementation) is already running, and starts anyway, so you can get thousands of processes running over time

Especially with the nvidia driver, it might take huge amounts of RAM then.
And in your case it seems that you are not able to run any graphical application any more because the maximum number of X applications is reached…

This has been fixed two months ago, but an update wasn’t submitted to Tumbleweed apparently. It should be fixed in Plasma 5.5 though.

Just kill all instances of xembedsniproxy and logout/login, and the problem should be “solved”.
To prevent it from happening again, you basically have two options:

  • exclude xembedsniproxy from session management by entering it in the corresponding text field in “Configure Desktop” (systemsettings5)->Startup and Shutdown->Session Management
  • install the latest version from KDE:Frameworks5
sudo rpm -U http://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Factory/x86_64/xembed-sni-proxy-0.0.1git~20151104~ded1538-10.1.x86_64.rpm

Right.
A lot of thanks, wolfi323!
Its work.

Just a heads-up, although you probably noticed anyway:
Plasma 5.5.1 is available in the Tumbleweed standard repos now since a few days, which includes the latest version of xembed-sni-proxy.
So you don’t need the additional package anymore and if you installed it, it should get removed if you update your system, which is nothing you have to worry about… :wink:
If you actually added “xembedsniproxy” to the exclude list in the session management settings, you can remove it now.