Replies: 1 comment 1 reply
-
Can you see which dependencies prevent you from using the latest drift version? Drift 2.16 substantially improves the stack trace here. The problem is that the actual error might well be happening on another isolate, which just reports the error back to the one making the request. We capture the stack trace at the time the request was made to provide some context, but that means that you'll see
My guess is that it's probably a write in drift which then throws without being awaited. That error will bubble up and get reported without crashing the app. |
Beta Was this translation helpful? Give feedback.
-
My team has been flummoxed by an error in drift that we're hitting... if anyone's curious and available to look through these details, thanks in advance!
We're seeing an error logged repeatedly in production (via Crashlytics), and having a bunch of trouble recreating the issue locally or even understanding what the stack trace represents. Our production version is using drift v2.12.1, along with Flutter 3.10.7 (we were stuck on that older Flutter release for a while due to a particular iOS bug in 3.13). We see this issue on both iOS and Android.
The Flutter error message recorded is one of:
Here's line 113 in communication.dart in v2.12.1: https://github.com/simolus3/drift/blob/drift-2.12.1/drift/lib/src/remote/communication.dart#L113
Though Crashlytics records this as a "Fatal" error, we don't believe this to be an error that would crash the app--when we see the errors logged, the same user will often have several instances of these errors logged in a row, separated by seconds. And we have had so many instances of this supposedly "fatal" error logged that our service department would have been flooded with reports if they were actual crashes (which we've experienced in the past for other bugs, unfortunately).
Any ideas on what this error might represent or imply? Thanks again for any ideas.
Beta Was this translation helpful? Give feedback.
All reactions