GithubHelp home page GithubHelp logo

Comments (2)

creativecreatorormaybenot avatar creativecreatorormaybenot commented on May 12, 2024 1

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.

creativecreatorormaybenot avatar creativecreatorormaybenot commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.