Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

I have a puzzling issue which may or may not be Linux/CMX

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
broadstairs
Posts: 797
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Linux openSUSE
Location: Broadstairs, Kent, UK
Contact:

I have a puzzling issue which may or may not be Linux/CMX

Post by broadstairs »

Now I don't know how many (if any) run CMX using Linux not on an RPi. I have been running now for a while using a Gigabyte Brix BABT 1900 Celeron powered mini PC with Baytrail graphics and Linux using openSUSE Leap 15.4. I also started to get WXSim running under Linux using Wine on the same PC. Initially I thought that my issue was related to WXSim/Wine but now I'm not sure, hence asking others here.

Now to the issue. Over time the number of clients connected to the display increases to a point where I get

Code: Select all

Maximum number of clients reached
Maximum number of clients reached0024:err:winediag:x11drv_init_thread_data x11drv: Can't open display: :0.
where my OS has a limit of 255 clients. Now since this still happens albeit more slowly running only CMX it is puzzling since in theory CMX or Mono do not open any display connections. I do not want to up the number of possible clients since this only delays the inevitable!

Has anyone else seen this issue? Has anyone any ideas about this?

Stuart
Currently running CMX V4 4022
freddie
Posts: 2496
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by freddie »

I use Linux and know a bit about it.

It's generally due to buggy Wine applications not clearing up their resources properly. Depending on how often you experience this error, it might be an idea to have a scheduled reboot - perhaps daily.

If you Google the error (wine Maximum number of clients reached) you get some examples of workarounds, but they can be application-specific.
Freddie
Image
broadstairs
Posts: 797
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Linux openSUSE
Location: Broadstairs, Kent, UK
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by broadstairs »

You missed my point, this is still happening without wine being used. Only Mono/CMX running. Yes Wine may make it worse but right now after a reboot is still happening.

Stuart
Currently running CMX V4 4022
freddie
Posts: 2496
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by freddie »

The error message you supplied suggests wine is still running somehow...

MX doesn't touch x11 code.
Freddie
Image
broadstairs
Posts: 797
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Linux openSUSE
Location: Broadstairs, Kent, UK
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by broadstairs »

Yes but the point is that I am still seeing display clients increasing despite not now running Wine with anything. Obviously the error will only show up if something tries to open the display so now I'm waiting for it to hit 255 again and see what happens. You can monitor display clients by command in Linux which is what I'm doing and with no visible open windows it has hit now 130 from less that 90 first thing this morning.

I just wanted to know if anyone had seen such an error from any application while running Mono/CMX or if anyone else was using similar hardware.

Stuart
Currently running CMX V4 4022
freddie
Posts: 2496
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by freddie »

I've been running MX for 8 years and have never seen a single display client listed. I don't use Wine so don't have the x11 libraries installed.
Freddie
Image
User avatar
HansR
Posts: 6021
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by HansR »

broadstairs wrote: Wed 12 Jul 2023 9:16 pm Yes but the point is that I am still seeing display clients increasing despite not now running Wine with anything. Obviously the error will only show up if something tries to open the display so now I'm waiting for it to hit 255 again and see what happens. You can monitor display clients by command in Linux which is what I'm doing and with no visible open windows it has hit now 130 from less that 90 first thing this morning.

I just wanted to know if anyone had seen such an error from any application while running Mono/CMX or if anyone else was using similar hardware.

Stuart
I think your config is pretty unique so don't count too much on others.

What you can do is find out which process is the parent process of those display clients (use pstree and pid and ppid when necessary)
See also: https://en.wikipedia.org/wiki/Pstree

The parent of the display clients should tell your where it comes from.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
broadstairs
Posts: 797
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Linux openSUSE
Location: Broadstairs, Kent, UK
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by broadstairs »

The issue is that xrestop displays the active clients but does not show the PID values for those marked unknown so I have no PID to compare to either pstree or anything else which shows active tasks. Also xlsclients does not list any active clients at all even when I get the error message!

The more I think about this I believe it is a problem in this version of Linux with this hardware and nothing to do with either CMX or Wine.

Stuart
Currently running CMX V4 4022
User avatar
HansR
Posts: 6021
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by HansR »

broadstairs wrote: Thu 13 Jul 2023 8:46 am The more I think about this I believe it is a problem in this version of Linux with this hardware and nothing to do with either CMX or Wine.
Definitely not with CMX :D
Anyway, you will need to research what spawns the client processes and then try to inhibit that.
Good luck !
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
jlmr731
Posts: 225
Joined: Sat 27 Aug 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Wickliffe, Ohio
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by jlmr731 »

you can try lsof -U (might have to pipe it to less to page through it all like lsof -U|less )
you should be able to see what process taking it all up, then whatever process is is you can use killall nameofprocess

once you know what it is then you can look into why it doing bad things
broadstairs
Posts: 797
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW1003/GW1103/GW2000
Operating System: Linux openSUSE
Location: Broadstairs, Kent, UK
Contact:

Re: I have a puzzling issue which may or may not be Linux/CMX

Post by broadstairs »

For those who might have a passing interest.....
I decided last evening to update to the latest stable openSUSE 15.5 to see if it made any difference and the answer so far is yes. So far today the number of display clients connected has been stable around 30 since the update. So it is hopeful that this might be solved, although there were no reports of the issue on the forums or bugzilla database. Now to let it run including Wine/WXSim for 24 hours to see how things go.

Stuart
Currently running CMX V4 4022
Post Reply