Skip to content

ESPProvisionManager crash: stopESPDevicesSearch() unexpected found nil #36

Closed

Description

@MartinaeyNL

Description

One of the issues specific to the iOS version of the ESPProvisionProvider is that it crashes during stopESPDevicesSearch().
It occurs when the provider is initialized, and the first command is STOP_BLE_SCAN before START_BLE_SCAN is sent.
The app crashes in full immediately, without any error message etc.

This is because the Web UI sends STOP_BLE_SCAN when exiting the onboarding flow, whatever step they are in.
It is working OK on Android, but fails with a null exception on iOS.

Expected behavior

The lib doesn't crash the app, doesn't show anything to the user (silent approach), and simply sends an errorCode back using the ConsoleProvider.

Activity

  1. added theissue type on Aug 4, 2026
  2. self-assigned this
    on Aug 4, 2026
  3. ebariaux commented on Aug 4, 2026

    @ebariaux
    Contributor

    ESPProvisionProvider is Espressif code and the crash is due to a force unwrapping of a nil value.

  4. self-assigned this
    on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugError or issue in the system

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions