Questions tagged [isolate]
41 questions
0
votes
1 answer
Build a Flutter Web App and run the same web app in Flutter Desktop programs
I am new to flutter programming. I want to create a flutter web app which can be run in web view in a Flutter desktop application for all desktop platforms (Linux, Windows and MacOS). The web-app will be running on the main thread. And desktop…

Iniyan Kanmani
- 79
- 5
0
votes
1 answer
Is DartDocs about the entry of `Isolate.spawn` wrong or something?
I'm using Dart 2.18.0 now. Here's what the docs say about
the entry of Isolate.spawn.
The function must be a top-level function or a static method that can be called with a single argument, that is, a compile-time constant function value which…

yancaico
- 1,145
- 11
- 21
0
votes
1 answer
DartPluginRegistrant.ensureInitialized not fixing use of path_provider in Isolate
Attempts to use path_provider in an Isolate are not working.
I have followed the recommendations from this Flutter issue.
It appears WidgetsFlutterBinding.ensureInitialized() is not working as intended.
Flutter 3.3.1 • channel stable •…

Sound Conception
- 5,263
- 5
- 30
- 47
0
votes
0 answers
Dart isolate never completes despite completing all its work
I have an isolate that works as expected except that execution never progresses beyond the for loop marked <--HERE. I am just learning Isolates, but it seems that even though Isolate.exit(sp,0) has been called, the isolate does not complete. After…

SSMSJM
- 149
- 6
0
votes
1 answer
dart compute Illegal argument in isolate message
I am using compute to do some work while keeping the UI running. The compute was working until I added another http call before it.
The working code is as follow
final ListRequest request =
ListRequest(baseUrl: env['SERVER_URL']!, path:…

Ben
- 957
- 1
- 11
- 37
0
votes
0 answers
Flutter app on MacOS stops when trying to get list of usb connected devices
I use hid package for getting list of connected devices and receiving data from them. This code blocks UI if executes in main isolate, after wrapping it into compute() it may close app without any error message, there will be only message "Lost…
0
votes
1 answer
NodeJS `isolated-vm`: How to reference a function inside the isolate
The following code:
const ivm = require('isolated-vm');
const isolate = new ivm.Isolate();
const context = isolate.createContextSync();
context.setSync('log', new ivm.Callback(x => console.log(x)));
// receives a function and triggers it on an…

Matan Tsuberi
- 461
- 3
- 11
0
votes
1 answer
I am trying to use flutter Isolate with database data. But it's throwing an error. I don't know why is it happening?
I'm using the hive database. My code is:
HiveStocktaking? stocktaking =
_database.getStocktakingById(_stocktakingId);
StocktakingStats stocktakingStats =
_database.getStocktakingStats(_stocktakingId, true);
…

Bahrom Jabborov
- 13
- 2
0
votes
1 answer
what is the threading system of flutter
I have coded in dart and flutter for the past 3 months. I have one app in the play store. But I still don't understand how threading system of flutter works.
To make things simple let's take the most basic counter app that you get when you do…

noah abe
- 37
- 5
0
votes
0 answers
subprocess.CalledProcessError: Command '['isolate', '--cg', '--box-id=12', '--cleanup']' returned non-zero exit status 2
While trying to setup following CMS: https://github.com/cms-dev/cms/tree/v1.4, I used cmsWorker inside Terminal to start the Worker process.
After Worker received a submission, it threw following error:
Traceback (most recent call last):
File…

user10420480
- 41
- 1
- 5
0
votes
1 answer
rootBundle.loadString hanging for large-ish (50k+) files due to isolate?
I'm trying to load a large-ish (1000 lines, 68k) text file using
final String enString = await rootBundle.loadString('res/string/string_en.json');
The Dart class function AssetBundle.loadString that loads the string is
Future…

buttonsrtoys
- 2,359
- 3
- 32
- 52