flutter / flutter/devtools

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

Aperta
#7,808 0 commenti 0 reazioni 1 assegnatario Rivendicata da @kenzieschmoll Vedi su GitHub
cross-screen P2
Lingua principale
Dart
Stelle
1.7k
Fork
404
Merge medio
6g 17h
PR unite (30g)
18

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.