Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i3 causes xorg to leak memory #4310

Open
sander85 opened this issue Jan 4, 2021 · 3 comments
Open

i3 causes xorg to leak memory #4310

sander85 opened this issue Jan 4, 2021 · 3 comments
Labels
4.19 bug missing-log Read the CONTRIBUTING.md file for instructions needs info

Comments

@sander85
Copy link

sander85 commented Jan 4, 2021

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

Over time I see xorg memory usage grow into huge numbers (10GB+)

Expected Behavior

X should never take so much memory.

Reproduction Instructions

I'm not quite sure how to reproduce it. I'm just running the latest (4.19) i3 and see the problem happening on 2 systems.

Environment

Output of i3 --moreversion 2>&-:

i3 version: 
Binary i3 version:  4.19 (2020-11-15) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.19 (2020-11-15) (pid 5322)
Loaded i3 config: /home/sander/.config/i3/config (Last modified: E 04 jaan  2021 08:13:52 EET, 14953 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3
Config file
Doesn't look like a config problem, it started happening after upgrade to new version (from 4.17).
Logfile URL:
- Linux Distribution & Version: Mageia 7/Cauldron
- Are you using a compositor (e.g., xcompmgr or compton): bot that I know...

I didn't see this problem in 4.17. I first upgraded my Mageia cauldron to use 4.18 and the problem started there. At that time I didn't connect it to i3 as xrestop doesn't show anything interesting. About a week ago I upgraded both systems (Mageia 7 and Mageia cauldron) to 4.19 and can now see the memory problem on both.

pmap of the xorg process is showing mi this line:

0000000002147000 1460256K rw--- [ anon ] (overall memory usage at the time is ~1,8GB).

I need some guiding on how to debug this further.

@i3bot
Copy link

i3bot commented Jan 4, 2021

I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.)

@i3bot i3bot added bug missing-log Read the CONTRIBUTING.md file for instructions 4.19 labels Jan 4, 2021
@snprajwal
Copy link

Please provide a link to both the i3 and Xorg log files (You can find X logs at .local/share/xorg/Xorg.0.log). Also, I am running the same version of i3 and am not facing any such issue. Please try reinstalling the xorg and i3 packages on your system.

@psychon
Copy link
Contributor

psychon commented Mar 5, 2021

Another idea is: What does xrestop say why memory is used? Does it perhaps even include the "large" memory?
For me (i3 4.19.1-non-git), i3 causes 64 MiB of pixmap memory to be used, way more than everything else together. I think this is because of #3479 (at least in my case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.19 bug missing-log Read the CONTRIBUTING.md file for instructions needs info
Projects
None yet
Development

No branches or pull requests

5 participants