Mir

Input Filters fail to work when overriden through server configuration

Bug #1167133 reported by Robert Carr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Undecided
Robert Carr

Bug Description

While InputFilters appear to work in tests (tests/integration-tests/android) when overriden through the server configuration as in:

http://code.launchpad.net/~robertcarr/mir/demo-input-filters (see file examples/demo_input_filters.cpp)

they seem to not work. By the the time InputFilter is invoked by the FilterChain (in reponse to key events) somehow the shared_ptr member has become NULL. Investigation with GDB is strange, in mi::create_input_manager event_filters contains a non-NULL EventFilter member...by the time the EventFilterChain constructor is reached it's null triggering the segfault seen in the example.

You should be able to reproduce the segfault:

chmod 777 /dev/input/* // ;)
./buils/bin/mir_demo_input_filters --enable-input=true
<Type some characters>

Related branches

Revision history for this message
Robert Carr (robertcarr) wrote :

Something needs to keep a reference to the initializer_list for seemingly non identifiable reasons (there should be a reference on the stack down through the EventFilterChain constructor as described above)! See r568...does someone understand?

Changed in mir:
status: New → Incomplete
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir at revision 587, scheduled for release in mir, milestone 0.0.3

Changed in mir:
status: Incomplete → Fix Committed
Changed in mir:
milestone: none → 0.0.3
assignee: nobody → Robert Carr (robertcarr)
Changed in mir:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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