Keep Wine editor feedback responsive during reader reply stalls
PresentAccessibleEvent previously waited synchronously for the reader on Wine Access's message-loop thread. A slow D-Bus acknowledgment prevented that thread from receiving subsequent WM_COPYDATA editor notifications. The hooks time out after 50 ms, so feedback disappeared even though the application accepted the input. With a 350 ms delayed focus reply, the original helper inserted all of abbacdef but forwarded only e and f. Move menu, editor and standard-control event delivery to one reader worker. Keep a FIFO of at most 128 pending events, retain each variant and the bus connection until delivery completes, and preserve focus-before-text order. Keep the 500 ms reply deadline and cancel outstanding calls during normal shutdown without making the event thread wait for the reader. Event-thread success now means queued; controller RPC calls retain their synchronous reader status behavior. Retain the most recent focus dependency on the worker. After a transport failure, re-establish that focus before sending dependent editor actions. Treat a successful false reply as a completed exchange because filtering can suppress presentation while still establishing focus. Never replay a timed-out text action. Report transport failures, recovery and queue overflow without including event contents in diagnostics. Add a native editor fixture and a private-session D-Bus integration runner for delayed replies, reply timeouts, failed initial focus, repeated typing, event order, unchanged native text/caret, and shutdown with a withheld reply. Wait for editor-hook attachment before triggering typing so the 32-bit companion is exercised reliably. Document queue behavior, limits, regression commands and remaining live acceptance checks. Validation performed sequentially on a private Xorg dummy display with disposable Wine prefixes and recording reader services: - cmake --build build --parallel - python3 tests/reader_stall_integration.py --build-dir build - The reader-stall check with --32-bit, --timeout, --focus-error, and --32-bit --focus-error - ctest --test-dir build --output-on-failure: all four checks passed - python3 tests/menu_integration.py --build-dir build with --fixture menu, edit, edit --32-bit, edit --restart-helper, notepad, controls, and list --32-bit - python3 tests/event_stall_integration.py --build-dir build - python3 tests/controller_integration.py --build-dir build - git diff --check The delayed-reply regression failed against the original synchronous helper and passed after the worker change. The failed-focus scenario also failed before dependency recovery was added and passed afterward. These recordings establish the shared failure paths, not the cause of every live MUSHclient pause or audible speech and physical braille acceptance. Live checks remain for command typing, incoming plugin speech, output-buffer arrows, menus, switching between Wine and Linux, reader restart, and protected fields. An unavailable reader can still cause feedback loss or bounded queue overflow.
This commit is contained in:
1 parent
27203b0512
commit
7d3ac09ea1
8 files changed
+399
-4
No files matched your search
@@ -1,5 +1,32 @@
|
||||
# Wine control integration
|
||||
|
||||
## Reader reply stalls
|
||||
|
||||
Run sequentially on a private X display:
|
||||
|
||||
```sh
|
||||
xvfb-run -a python3 tests/reader_stall_integration.py --build-dir build
|
||||
xvfb-run -a python3 tests/reader_stall_integration.py --build-dir build --32-bit
|
||||
xvfb-run -a python3 tests/reader_stall_integration.py --build-dir build --timeout
|
||||
xvfb-run -a python3 tests/reader_stall_integration.py --build-dir build --focus-error
|
||||
```
|
||||
|
||||
The recording reader delays an editor focus reply for 350 ms while its Wine
|
||||
control types `abbacdef`. All eight actions, including repeated letters, must
|
||||
arrive in order with focus established first, and native text and caret must
|
||||
remain correct. `--timeout` extends the delay past the helper's D-Bus deadline;
|
||||
`--focus-error` rejects the initial focus exchange and requires recovery before
|
||||
later text. A second withheld reply checks normal helper shutdown. The fixture
|
||||
waits for editor-hook attachment before typing, including the 32-bit host.
|
||||
|
||||
The original synchronous helper dropped six of the eight characters during
|
||||
the delayed-reply check. These private recordings establish that shared failure
|
||||
path; they do not establish the cause of every live MUSHclient speech pause.
|
||||
After installing the helper and restarting it, check command typing, incoming
|
||||
plugin speech, output-buffer arrows, menus, return from Linux applications and
|
||||
reader restart in MUSHclient. Check ordinary Notepad editing and password
|
||||
exclusion too. Audible speech and physical braille need separate live checks.
|
||||
|
||||
## MSAA event stalls
|
||||
|
||||
Run sequentially on a private X display, for example with `xvfb-run -a`:
|
||||
|
||||
Reference in new issue
Block a user