Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple call stack main threads in VSCode when running debug

I'm running an android emulator with Flutter in VSCode on Windows. When I run debug the call stack runs 2 main threads. Is this abnormal? I am getting emulator connections dropouts. With other (smaller) Flutter projects it doesn't run any threads.

enter image description here

like image 405
emile_o_ Avatar asked May 30 '26 11:05

emile_o_


1 Answers

Are you using any background service that initialize in your main like FirebaseMessagingService? that might be the cause.

An yes that is abnormal, it actually an open issue being discussed here https://github.com/firebase/flutterfire/issues/9964.

enter image description here

like image 131
AinulBedjo Avatar answered Jun 02 '26 02:06

AinulBedjo