Mir

[arale] Software clients can rapidly cause a Mir server to exhaust all fd handles

Bug #1498806 reported by Daniel van Vugt on 2015-09-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Won't Fix
High
Unassigned
mir-android-platform
Undecided
Unassigned

Bug Description

[arale] Software clients can rapidly cause a Mir server to exhaust all fd handles.

On arale, start a Mir server and run client: mir_demo_client_flicker.

Now monitoring /proc/`pidof mr_demo_server`/fd/ you will find the server quickly exhausts all fds. It peaks at 1024.

Interestingly once you kill a client, it stays on screen and the fd count slowly decreases. When the fd count gets close to the original level then the client finally vanishes.

You will also notice corruption but that's bug 1406725.

summary: - [arale] Software clients can rapidly cause a Mir server to use exhaust
- all fd handles
+ [arale] Software clients can rapidly cause a Mir server to exhaust all
+ fd handles
description: updated
Daniel van Vugt (vanvugt) wrote :

The problem only happens with high framerate software clients (flicker and fingerpaint). Given bug 1406725, it appears that Mir might be producing frames (and sync_fence fds) much faster than the display can consume them. So the backlog grows without bounds, until such time as the client slows down or is stopped.

Daniel van Vugt (vanvugt) wrote :

The Android platform was deleted from lp:mir at revision 4155.

Changed in mir:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers