[Bug Report] Stack overflow when deleting hub variable connectors


Please provide your hub model (C7, C8, etc.) and its platform version from Settings>Hub Details.

Check out the following post for help troubleshooting problems and gathering details that will help others to identify and solve the problem you are experiencing: ‼ READ FIRST - Before Posting in Get Help


Hub: C-8 (model 000D), firmware 2.5.0.143

Summary: Removing a hub-variable connector device throws a java.lang.StackOverflowError in the built-in "Variable
Connectors" component driver's childRemoved() method. The connector is removed, but the child device's uninstalled()
fires ~10 times (recursion) before the stack overflows. It happens through the stock UI — no custom app involved.

Repro:

  1. Settings → Hub Variables → add a String variable repro_var, initial value y, save.
  2. In that variable's row, click the Connector control to create its connector device.
  3. Devices → open the repro_var connector device → Remove → confirm.
  4. Check Logs:
    WARN dev: repro_var uninstalled repro_var (×~10)
    ERROR dev: Variable Connectors java.lang.StackOverflowError: null on line 30 (method childRemoved)

Impact: Removal succeeds, but every connector deletion dumps a StackOverflow + a flood of uninstalled lines into the
log. Looks like childRemoved() re-enters child teardown recursively.

1 Like