Mir

Wiggling the mouse can make the whole display freeze

Bug #1452579 reported by Daniel van Vugt
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
Expired
High
Unassigned

Bug Description

Having spent a lot of time observing input latency I've also noticed a bug:

1. Run an input-driven client like mir_demo_client_eglsquare or mir_demo_client_target.
2. Wiggle the mouse around constantly for a minute or so.

Expected: Mouse always moves and client responds.
Observed: Roughly a couple of times per minute the cursor and the client freezes for about one second.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Actually, as the cursor is freezing too it would be the Mir server that's introducing the pause.

tags: added: input
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The problem appears to get a bit worse with a higher input event rate (kernel parameter usbhid.mousepoll=1).

summary: - Input-heavy clients occasionally freeze for a second
+ Input-heavy servers occasionally freeze for a second
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Input-heavy servers occasionally freeze for a second

This is happening a lot with mir_demo_client_eglsquare now. Strangely no longer happening in mir_demo_client_target.

summary: - Input-heavy servers occasionally freeze for a second
+ Input-intensive configurations occasionally freeze for a second
Changed in mir:
status: New → Confirmed
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote : Re: Input-intensive configurations occasionally freeze for a second

We recently changed the way mir does pointer confinement .. this could have a positive effect on this issue.

Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

.. but the hickups still exist and they are sometimes longer than a second.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Found a reliable way to make this bug really obvious, bordering on unusable:

Start mir_demo_client_animated_cursor and Alt+drag it around (from the middle of the window), such that the cursor is animating while you're dragging. Mir will spend more time freezing than animating.

Maybe it's a different issue, but seems like something that should be investigated first.

summary: - Input-intensive configurations occasionally freeze for a second
+ Input-intensive configurations occasionally freeze the whole Mir display
+ for a second
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Input-intensive configurations occasionally freeze the whole Mir display for a second

Also just noticed this happens very easily during mir_glmark2_performance_test. If you wiggle the mouse, the display freezes and even the test fails as a result.

Changed in mir:
importance: Undecided → High
summary: - Input-intensive configurations occasionally freeze the whole Mir display
- for a second
+ Wiggling the mouse can make the whole display freeze
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

All of the test cases mentioned now work, and never freeze.

I'm bisecting to see if we fixed this in Mir, by accident (!).

Changed in mir:
status: Confirmed → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Reopened due to a duplicate bug report.

Changed in mir:
status: Incomplete → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears kernel bug 1625912 might explain why I can't reproduce this any more.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

I can't reproduce this. Did we no notice it getting fixed?

Changed in mir:
status: Confirmed → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Not sure, but kernel bug 1625912 certainly made it more difficult to reproduce. The problem used to be easy to reproduce with a high rate of input but now that option is broken, so it's hard to tell.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mir because there has been no activity for 60 days.]

Changed in mir:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.