Skip to content

Retire mobile picker requests on worker failure and preserve same-frame request options #2206

Closed

Description

@giswqs

The mobile shell retains two request-lifecycle gaps on current main:

  • open_waiting moves reads into a worker. If Builder::spawn fails, it deletes unread copies and reports each failure, but never sends the empty DXF answer that terminates the outstanding dxf:N dialog request. The dialog can remain waiting and retain a request slot.
  • raw_input_hook snapshots Kept only when a picker is already up before the frame. If two picker requests occur in one UI frame, the first may be accepted and the second refused while kept is still None. The second request can overwrite the first request's pending options with nothing to restore afterward.

Capture accepted request options when admission occurs and retire every accepted DXF request on worker-start failure. Use a fake Phone/request harness to test two same-frame requests and an injected worker-start failure, asserting the first options survive, every request terminates, and no temporary copies remain.

Verified on ce40749 in apps/rustgis-mobile/src/shell.rs:292-310,432-436,489.

Source discussions: #2072 (comment); #2072 (comment) Duplicate search: all-state picker DXF spawn found no dedicated issue; #1902 broadly tracks mobile work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions