Illegal argument in isolate message #1590
Unanswered
frankvollebregt
asked this question in
Q&A
Replies: 1 comment 3 replies
-
How do you clear the database?
This is actually based on a Dart 2.15 change which allows passing non-primitive Dart objects between isolates. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Since updating to the latest version of Drift (which resolved my previous issue) I get the following error when I run a background function. I struggle a bit to more minimally reproduce what's wrong here, and I hope it is possible to determine from the stack trace below whether this is a mistake in my code, in Drift or even a version mismatch between some of these...
I have two different methods (one which fetches specific updates over http and upserts them, the other which just clears and re-fills the whole database with fetched data). In both cases, I use Drift from a
DriftIsolate
(connectport is provided byProvider
from main).In the case of throwing away the whole thing, I get the following stacktrace:
full reset stack trace
small updates stack trace
Intuitively, it seems like this might have something to do with the last point in the most recent changelog, namely
Versions
Flutter 2.8.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 77d935af4d (4 days ago) • 2021-12-16 08:37:33 -0800
Engine • revision 890a5fca2e
Tools • Dart 2.15.1
Drift 1.1.0
Debug log
I just set
isolateDebugLog
to true in theisolate.connect()
and got the following additional output that occurs before the error (from when the table is updated through the Drift isolate)Beta Was this translation helpful? Give feedback.
All reactions