Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while launching Flutter app on iOS emulator: "Error retrieving thread information: (ipc/send) invalid destination port"

Tags:

ios

flutter

On macOS Big Sur (Macbook Air with M1 chipset), I installed Android Studio and the Flutter and Dart plugins.

I created a brand new Flutter project with nothing in it, and just launched it on an iPhone emulator. It works fine, but I have the following log that appears multiple times per second:

[VERBOSE-2:profiler_metrics_ios_mm(184)] Error retrieving thread information: (ipc/send) invalid destination port

It looks like it's a known bug, but I can't find any fix for that.

Does anyone knows how to get rid of that log?

Thanks.

like image 348
matteoh Avatar asked Nov 25 '20 13:11

matteoh


2 Answers

This issue is related to the new MacBook with M1 processor with flutter 1 just try to run the app with this command will help running the app in Flutter #1

flutter run | grep -v "Error retrieving thread information"

or you can use the command below to upgrade to Flutter #2 and fix the problem

flutter upgrade
like image 143
Amin Al-jebbeh Avatar answered Oct 19 '22 22:10

Amin Al-jebbeh


Updating to Flutter 2 by doing flutter upgrade solved the problem.

like image 32
matteoh Avatar answered Oct 19 '22 22:10

matteoh