Skip to content

flutter: connect() hangs forever after an engine load failure #87

Done

Description

@akosidencio

Found by reading the code while verifying the 0.2.0 README; not reproduced on a device.

If CheckgateBindings.open() throws (for example, the native engine is not linked), CheckgateClient.connect() leaves _connecting set to true. Every later connect() then returns a future that never completes. Also, close() starts the impression and event POSTs and then immediately closes the HTTP client, which may abort them.

Acceptance criteria

  • A failing engine load makes connect() complete with an error, and _connecting is reset; a later connect() tries again. Covered by a Dart test with a bindings loader that throws.
  • close() awaits its final impression/event sends (with a bounded timeout) before closing the HTTP client, or the README says the send is best-effort. Covered by a test against a local HTTP server.

Activity

  1. added this to the v0.2.1 milestone on Nov 22, 2026
  2. added
    bug
    on Nov 22, 2026
  3. added a commit that references this issue on Nov 30, 2026
  4. akosidencio commented on Nov 30, 2026

    @akosidencio
    MemberAuthor

    Fixed in 0.2.1 by #99, #108 (merged to dev; part of the 0.2.1 release).

    Verification: Flutter unit tests and the shared conformance suite in CI; verified in an iOS simulator app with the native engine linked (targeting, live updates, await close() delivering final reports, invalid key).

    Details are in the 0.2.1 changelog.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions