Comments (2)
I looked at where doInBackground
is used, I can say that I use Transaction#set/update/get
but never delete
. I have no idea what part of my Dart code is causing these issues.
Luckily this crash happens a lot in Play Store pre-launch reports and seeing that this happens right after start up when first loading content (UI is already displayed), I think it can only be Transaction#set
.
Update: I suppose what I described here could be #79.
The `transaction.set` calls I am looking at use `FieldValue.serverTimestamp()`, so maybe it has something to do with multiple of these transactions piling up? Reason I say this: Sometimes, I see my app crash when there is bad connection and I try to perform an action like "incrementing a value", which is a transaction, and if the bad connection causes the transaction to not update the value (immediately), I will trigger it again manually, and again and after some of these actions "pile" up, the app will crash - so I imagine that this issue is **similar** or that one of these stack traces actually is exactly what I described.Most likely it is what I can see in pre-launch recordings: right after start up with Transaction#set
's that have FieldValue.serverTimestamp()
.
I cannot replicate it in debug mode (probably because I have a stable connection?) and it does not happen to every user, i.e. just a few percent.
from flutterfire.
Another "version" of this crash:
Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done + 353(AsyncTask.java:353)
at java.util.concurrent.FutureTask.finishCompletion + 383(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException + 252(FutureTask.java:252)
at java.util.concurrent.FutureTask.run + 271(FutureTask.java:271)
at android.os.AsyncTask$SerialExecutor$1.run + 245(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker + 1162(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run + 636(ThreadPoolExecutor.java:636)
at java.lang.Thread.run + 764(Thread.java:764)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.firebase.firestore.ak com.google.firebase.firestore.ak.a(com.google.firebase.firestore.d, java.lang.Object)' on a null object reference
at io.flutter.plugins.firebase.cloudfirestore.CloudFirestorePlugin$7.doInBackground + 20(CloudFirestorePlugin.java:20)
at io.flutter.plugins.firebase.cloudfirestore.CloudFirestorePlugin$7.doInBackground + 2(CloudFirestorePlugin.java:2)
at android.os.AsyncTask$2.call + 333(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run + 266(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run + 245(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker + 1162(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run + 636(ThreadPoolExecutor.java:636)
at java.lang.Thread.run + 764(Thread.java:764)
I think adding all the devices it occured on is not useful here, but I can do that if it helps.
from flutterfire.
Related Issues (20)
- storage: file storage with dynamic directory not visible in gcsfuse HOT 1
- [📚] Your documentation feedback title (CHANGE ME)
- cloud_firestore: iOS includeMetadataChanges does not recieve isFromCache false after first run HOT 14
- [firebase_auth]: [firebase_auth/unknown-error] An internal error has occurred. (when calling signinwithemailandpassword on windows) HOT 9
- [FileSystemEntity]: <Is it a bug? I can't read json file via File.readAsStringSync or File.readAsString> HOT 1
- [firebase_auth]: <Requests from this Android client application <empty> are blocked.> HOT 2
- FirebaseAuth.instance.currentUser always null on windows app flutter !! HOT 2
- Firebase Auth: reCaptcha shows up even after configuring Silent APN correctly HOT 2
- Google SignIn Crashing on iOS
- [firebase_core]: not working with cocoapods 1.15.2 HOT 4
- [BUG]: Error: Unable to get Xcode project information ... Unable to read project 'Runner.xcodeproj'. After Running Flutterfire Configure on MACOS HOT 1
- [firebase_messaging]: iOS Background receive Message HOT 1
- [firebase_core]: 'pod update' cannot be done when 'firebase core' is updated to the latest version HOT 5
- Lost connection to device in desktop flutter app Firebase Storage ! HOT 3
- [remote_config]: setConfigSettings on windows raises an exception HOT 1
- Problem with GoogleUtilities after Declaring :linkage => :static in Podfile HOT 3
- [📚] Your documentation feedback title (CHANGE ME)
- [Firebase auth]: about:blank page firebase auth verifyPhoneNumber HOT 3
- [firebaseAnalytics]: logScreenView doesn't send the name and class to GA4 in flutter web HOT 12
- [firestore]: Firestore snapshot does return empty data for existing doc HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutterfire.