-
-
Notifications
You must be signed in to change notification settings - Fork 442
Description
Problem description
The RSS memory of surfaceflinger grows (>10M) each time one switches termux-x11 to another app and back, or turns screen off and back on. After a few days of normal usuage, surfaceflinger could comsume a few GB RSS memory and renders the whole system unstable.
This seems to happen only when termux-x11 is running.
I check termux-x11 log, some errors are notable and may be related to the issue:
12-20 10:13:44.804 29946 30029 E BufferQueueProducer: query: BufferQueue has been abandoned
12-20 10:13:44.804 29946 30029 E BufferQueueProducer: query: BufferQueue has been abandoned
12-20 10:13:44.805 29946 30029 E BufferQueueProducer: SurfaceView[com.termux.x11/com.termux.x11.MainActivity]#25(BLAST Consumer)25 connect: BufferQueue has been abandoned
12-20 10:13:44.846 29946 29992 E BufferQueueProducer: SurfaceView[com.termux.x11/com.termux.x11.MainActivity]#26(BLAST Consumer)26 query: BufferQueue has been abandoned
12-20 10:13:44.847 29946 31356 E BufferQueueProducer: SurfaceView[com.termux.x11/com.termux.x11.MainActivity]#26(BLAST Consumer)26 setAsyncMode: BufferQueue has been abandoned
12-20 10:13:44.848 29946 31356 E BufferQueueProducer: SurfaceView[com.termux.x11/com.termux.x11.MainActivity]#26(BLAST Consumer)26 dequeueBuffer: BufferQueue has been abandoned
12-20 10:13:44.849 29946 31356 E BufferQueueProducer: SurfaceView[com.termux.x11/com.termux.x11.MainActivity]#26(BLAST Consumer)26 query: BufferQueue has been abandoned
x11.log
I am running Androud 12 in a Boox Tab10C Pro. The version of apk is Nightly Release 20231006 download from github, and the termux package is termux-x11-nightly 1.03.00-3.
What steps will reproduce the bug?
- Start termux-x11
- In a terminal, check memory ususage using "dumpsys meminfo"
- Switch to another app, or turn off the screen
- Switch back to termux-x11, or turn on screen
- Check memory usuage again.
What is the expected behavior?
The memory consumption of surfaceflinger does not keep growing, and one can continue running termux-x11 for a long period of time.