devtools icon indicating copy to clipboard operation
devtools copied to clipboard

When disconnected, connectedState.value.connected is still true.

Open polina-c opened this issue 1 year ago • 0 comments

To repro:

  1. Connect devtools to counter app on android emulator
  2. Open memory chart (with enabled android chart)
  3. Kill the emulator
  4. See exception

Code:

        try {
          await _memoryTracker.pollMemory();
        } catch (e) {
          print('Error polling memory: $e');
          if (serviceConnection.serviceManager.connectedState.value.connected) {
            rethrow;
          }
        }

Video:

https://github.com/flutter/devtools/assets/12115586/0c6d1904-6f9d-4942-922d-8d0fd89ea6ed

polina-c avatar May 23 '24 15:05 polina-c