cosmic-settings icon indicating copy to clipboard operation
cosmic-settings copied to clipboard

ERROR error fetching displays, why: Spawn(Os { code: 24, kind: Uncategorized, message: "Too many open files" })

Open wiiznokes opened this issue 1 year ago • 5 comments

ERROR  error fetching displays, why: Spawn(Os { code: 24, kind: Uncategorized, message: "Too many open files" })
    at cosmic-settings/src/pages/display/mod.rs:455 on main

I get a bunch of this error when switching between pages

wiiznokes avatar Jul 28 '24 22:07 wiiznokes

This make the app freeze, often less that 1 sec, sometime more

wiiznokes avatar Jul 28 '24 22:07 wiiznokes

What's your limit for max open files? sysctl fs.file-max and prlimit

mmstick avatar Jul 29 '24 04:07 mmstick

File limit aside, this seems related to #318

  • [ ] https://github.com/pop-os/cosmic-settings/issues/318

joshuamegnauth54 avatar Jul 30 '24 01:07 joshuamegnauth54

What's your limit for max open files? sysctl fs.file-max and prlimit

fedasus@fedasus ~/D/note-pv (main)> sysctl fs.file-max
fs.file-max = 9223372036854775807
fedasus@fedasus ~/D/note-pv (main)> prlimit
RESOURCE   DESCRIPTION                             SOFT      HARD UNITS
AS         address space limit                unlimited unlimited bytes
CORE       max core file size                 unlimited unlimited bytes
CPU        CPU time                           unlimited unlimited seconds
DATA       max data size                      unlimited unlimited bytes
FSIZE      max file size                      unlimited unlimited bytes
LOCKS      max number of file locks held      unlimited unlimited locks
MEMLOCK    max locked-in-memory address space   8388608   8388608 bytes
MSGQUEUE   max bytes in POSIX mqueues            819200    819200 bytes
NICE       max nice prio allowed to raise             0         0 
NOFILE     max number of open files                1024    524288 files
NPROC      max number of processes                63264     63264 processes
RSS        max resident set size              unlimited unlimited bytes
RTPRIO     max real-time priority                     0         0 
RTTIME     timeout for real-time tasks        unlimited unlimited microsecs
SIGPENDING max number of pending signals          63264     63264 signals
STACK      max stack size                       8388608 unlimited bytes

wiiznokes avatar Jul 30 '24 10:07 wiiznokes

File limit aside, this seems related to #318

* [ ]  [Clicking on "Displays" on cosmic-settings repeatedly creates so many cosmic-randr processes #318](https://github.com/pop-os/cosmic-settings/issues/318)

Yeah probably. I also can't recreate this issue, maybe it wasn't even related to the freeze

wiiznokes avatar Jul 30 '24 10:07 wiiznokes