Issue I want to implement something like, when I tap on a download button, it will download the data from the api and store it in the db. Currently this code is working fine, though I haven’t added any error
Continue readingTag: dart-isolates
Background isolate platform channel difference between internal and external plugins
Issue I have a background isolate trying to use a platform channel. Yes, Flutter 3.7+, channels set up according to the background isolate requirements (including calling BackgroundIsolateBinaryMessenger.ensureInitialized()). From the isolate, I can successfully call outside plugins communicating through their channels,
Continue readingInvoking Dart Callbacks from Zenoh C Threads – Isolate and Callback Error
Issue I’m currently facing a challenging issue while working on a Dart application that reads messages over the Zenoh protocol. Here’s a breakdown of my problem: My Dart code executes native C code via Dart:ffi. (without issue) The C code
Continue readingHow to get full stack trace of Dart Isolate error
Issue I’m having problems to build a Flutter app in an Android device. The error bellow happens whenever I try to override current version, downloaded from Google Play Store, with new debug version. But it is very hard to find
Continue readingAccess variables in external scope when using isolation in Dart
Issue In Isolates, I can refer to a local variable from an outer scope or a field variable of a class without passing it as a separate message. Is this implicitly copying the values into the new isolation’s memory area?
Continue readingHow to write and read data anywhere by shared_preferences on Flutter 3.7 background isolates?
Issue On Flutter 3.7 platform channels can run on any isolate. So I tried this sample, import ‘package:flutter/services.dart’; import ‘package:shared_preferences/shared_preferences.dart’; void main() { // Identify the root isolate to pass to the background isolate. // (API introduced in Flutter 3.7)
Continue readingFlutter ReceiverPort don't listen
Issue I’m using the flutter_downloader package to download files with my app. The progress notification is working nicely. but my ReceivePort is not listening to the progress. final ReceivePort port = ReceivePort(); @override void initState() { super.initState(); IsolateNameServer.registerPortWithName( port.sendPort, ‘downloader_sendport’);
Continue readingStream of millions of objects takes too much memory
Issue I’m generating a load of coordinates (made of 3 numbers) within a geographical area. However, using Streams (which should be much more efficient than Lists), fills up the app’s memory very quickly, as can be seen in this screenshot
Continue readingThe compute method is not executed completely when I use `List.generate` inside of it but when I use forloop the compute method is executed completely
Issue The below program is for understanding isolates in dart. The compute method is passed to the spawned isolate. Inside of compute method summation is performed but when List.generate is used the compute function doesn’t finish the execution because the
Continue readingWhy the exitPort hander `if` statement isn't called at the very end
Issue In the below program the printTest method must be called at the end after all Isolates have finished but why is printTest method called before the isolates have finished. This condition checks if (–liveIsolates == 0) weather isolates have
Continue reading