我的应用在我的两个客户端设备(均为三星)上崩溃。 直到我上一次更新之前,它都可以正常运行。
我怀疑它与我的任何代码都不相关,而是与以下问题有关: Note: “Cloud Firestore Overrides a deprecated API”
(来自Android和iOS的崩溃日志)提及 Firestore和FieldPath (无法完全理解)...
崩溃日志(来自Google Play开发者控制台):
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from . models import Profile
@receiver(post_save, sender=User)
def create_profile(sender, instance, created, **kwargs):
if created:
Profile.objects.create(user=instance)
else:
pass
@receiver(post_save, sender=User)
def save_profile(sender, instance, **kwargs):
instance.profile.save()
更新: 我现在也有来自iOS(Xcode)的崩溃日志:
java.lang.RuntimeException: at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$5(com.google.firebase:firebase-firestore@@19.0.0:379)
at com.google.firebase.firestore.util.AsyncQueue$$Lambda$5.run (Unknown Source:2)
at android.os.Handler.handleCallback (Handler.java:794)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:176)
at android.app.ActivityThread.main (ActivityThread.java:6651)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:824)
Caused by: java.lang.RuntimeException:
at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$3
at com.google.firebase.firestore.util.AsyncQueue$$Lambda$3.run (Unknown Source:4)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:457)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:636)
at com.google.firebase.firestore.util.AsyncQueue$DelayedStartFactory.run
at java.lang.Thread.run (Thread.java:764)
Caused by: java.lang.IllegalArgumentException:
at com.google.firebase.firestore.model.FieldPath.fromServerFormat
at com.google.firebase.firestore.remote.RemoteSerializer.decodeDocumentMask
at com.google.firebase.firestore.remote.RemoteSerializer.decodeMutation
at com.google.firebase.firestore.local.LocalSerializer.decodeMutationBatch
at com.google.firebase.firestore.local.SQLiteMutationQueue.decodeInlineMutationBatch
at com.google.firebase.firestore.local.SQLiteMutationQueue.lambda$getNextMutationBatchAfterBatchId$4
at com.google.firebase.firestore.local.SQLiteMutationQueue$$Lambda$5.apply (Unknown Source:4)
at com.google.firebase.firestore.local.SQLitePersistence$Query.firstValue
at com.google.firebase.firestore.local.SQLiteMutationQueue.getNextMutationBatchAfterBatchId
at com.google.firebase.firestore.local.LocalStore.getNextMutationBatch
at com.google.firebase.firestore.remote.RemoteStore.fillWritePipeline
at com.google.firebase.firestore.remote.RemoteStore.enableNetwork
at com.google.firebase.firestore.remote.RemoteStore.start
at com.google.firebase.firestore.core.FirestoreClient.initialize
at com.google.firebase.firestore.core.FirestoreClient.lambda$new$2
at com.google.firebase.firestore.core.FirestoreClient$$Lambda$2.run (Unknown Source:8)
at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$4
at com.google.firebase.firestore.util.AsyncQueue$$Lambda$4.call (Unknown Source:2)
at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$3