You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On version 8.0.3 you are not able to download tracked memory leaks.
The problem is here: (_protocol.dart)
As you can see there is 7 types of envelopes, but type that is looked for is Future<Leaks> . Envelope is not found, null from map and then is forced to be not a null, that's why is crashing.
Class class ResponseFromApp<T extends Object> allows passing any object as message. So in case of leaks, as a message is passed Future instead of Leaks itself.
Solution:
In file _registration.dart at line 50 add await before creating ResponseFromApp object
if (request is RequestForLeakDetails) {
return ResponseFromApp(await theLeakProvider.collectLeaks())
.toServiceResponse();
}
The text was updated successfully, but these errors were encountered:
On version 8.0.3 you are not able to download tracked memory leaks.
The problem is here: (
_protocol.dart
)As you can see there is 7 types of envelopes, but type that is looked for is
Future<Leaks>
. Envelope is not found, null from map and then is forced to be not a null, that's why is crashing.Class
class ResponseFromApp<T extends Object>
allows passing any object as message. So in case of leaks, as a message is passed Future instead of Leaks itself.Solution:
In file
_registration.dart
at line 50 addawait
before creatingResponseFromApp
objectThe text was updated successfully, but these errors were encountered: