Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolates run into main thread #145

Open
lethanhclub opened this issue Nov 5, 2023 · 4 comments
Open

Isolates run into main thread #145

lethanhclub opened this issue Nov 5, 2023 · 4 comments

Comments

@lethanhclub
Copy link

lethanhclub commented Nov 5, 2023

I created some isolates by FlutterIsolate.spawn or flutterCompute, but all isolates were running into main thread. Also, This is only happened in android, iOS fine

Screenshot 2023-11-05 at 14 53 03

Does anyone know why?

@nmfisher
Copy link
Collaborator

Not sure what's going on here, will investigate when I get a chance.

@Akhil-Sai-Prasad
Copy link

@lethanhclub or @nmfisher Any update on this? I'm facing the same issue.

@nmfisher
Copy link
Collaborator

nmfisher commented Oct 8, 2024

@Akhil-Sai-Prasad what do you mean by "main thread", how are you determining which thread the isolate is running on?

There's no way (currently) to pin an isolate to a specific thread so I suppose it is possible for an isolate to run on the Flutter UI thread.

@Akhil-Sai-Prasad
Copy link

Akhil-Sai-Prasad commented Oct 8, 2024

@nmfisher Previously, I assumed that everything was running on the main thread based on the call stack. However, I now realise that my assumption was incorrect. Thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants