LogCat Error & Invitation Code Setup in SpeziKt for Android #81
Unanswered
melferreira21
asked this question in
Challenges and Help
Replies: 1 comment
-
@eldcn @pauljohanneskraft Tagging you here for a first set of follow-up questions and insights 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What Stanford Spezi module is your challenge related to?
Spezi
Description
Hi Spezi Team,
I’m currently working with the Spezi Framework, where my goal is to understand its structure and functionality so that our team can explore the possibility of using it to develop an application.
So far, I’ve successfully set up the backend and connected to the Firebase emulator locally. However, I keep encountering an error in the Android Studio LogCat, as shown below. Initially, I though this error might be problamatic, but after setting up Firebase correctly, the app ran anyway. I’d like to understand what this error means and whether it could cause issues later in the development process.
Invitation Code Setup
Additionally, I was wondering if I could get more information on how to set up the Invitation Code page. Specifically:
To bypass the Invitation Code requirement and proceed further, I changed the following code by setting
hasInvitationCodeConfirmed = true
:After making this change, another error was encountered, which appears multiple times in LogCat for different measurements/data (examples shown below):
Questions:
LogCat Error – Could you provide insight into what this error means and whether it might affect development?
Invitation Code Handling – How is the invitation code supposed to work? Are there specific configurations required?
Bypass Effects – Did changing hasInvitationCodeConfirmed affect other parts of the app, leading to the second error? If so, what would be the proper way to handle this?
Reproduction
Initial Setup
Note: The first LogCat error starts to appear right after the first modification.
Invitation Code - Changes are explained above.
Expected behavior
The app should run without unexpected LogCat errors, like the one in the first image.
Additional context
I'm including the errors below, in text format.
Inicial - LogCat:
Failed to get service from broker.
java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at asbb.a(:com.google.android.gms@250335032@25.03.35 (190800-720971461):36)
at arzi.z(:com.google.android.gms@250335032@25.03.35 (190800-720971461):143)
at arhb.run(:com.google.android.gms@250335032@25.03.35 (190800-720971461):54)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at bysz.mw(:com.google.android.gms@250335032@25.03.35 (190800-720971461):1)
at bysz.dispatchMessage(:com.google.android.gms@250335032@25.03.35 (190800-720971461):5)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.os.HandlerThread.run(HandlerThread.java:67)
Permission Denied:
Error listening for latest observation in collection: BLOOD_PRESSURE
com.google.firebase.firestore.FirebaseFirestoreException: PERMISSION_DENIED:
false for 'list' @ L6
at com.google.firebase.firestore.util.Util.exceptionFromStatus(Util.java:113)
at com.google.firebase.firestore.core.EventManager.onError(EventManager.java:247)
at com.google.firebase.firestore.core.SyncEngine.removeAndCleanupTarget(SyncEngine.java:642)
at com.google.firebase.firestore.core.SyncEngine.handleRejectedListen(SyncEngine.java:478)
at com.google.firebase.firestore.core.MemoryComponentProvider$RemoteStoreCallback.handleRejectedListen(MemoryComponentProvider.java:130)
at com.google.firebase.firestore.remote.RemoteStore.processTargetError(RemoteStore.java:591)
at com.google.firebase.firestore.remote.RemoteStore.handleWatchChange(RemoteStore.java:474)
at com.google.firebase.firestore.remote.RemoteStore.access$100(RemoteStore.java:60)
at com.google.firebase.firestore.remote.RemoteStore$1.onWatchChange(RemoteStore.java:183)
at com.google.firebase.firestore.remote.WatchStream.onNext(WatchStream.java:109)
at com.google.firebase.firestore.remote.WatchStream.onNext(WatchStream.java:38)
at com.google.firebase.firestore.remote.AbstractStream$StreamObserver.lambda$onNext$1$com-google-firebase-firestore-remote-AbstractStream$StreamObserver(AbstractStream.java:119)
at com.google.firebase.firestore.remote.AbstractStream$StreamObserver$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
at com.google.firebase.firestore.remote.AbstractStream$CloseGuardedRunner.run(AbstractStream.java:67)
at com.google.firebase.firestore.remote.AbstractStream$StreamObserver.onNext(AbstractStream.java:110)
at com.google.firebase.firestore.remote.FirestoreChannel$1.onMessage(FirestoreChannel.java:140)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInternal(ClientCallImpl.java:660)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessagesAvailable.runInContext(ClientCallImpl.java:647)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run(AsyncQueue.java:235)
at java.lang.Thread.run(Thread.java:1012)
Caused by: io.grpc.StatusException: PERMISSION_DENIED:
false for 'list' @ L6
at io.grpc.Status.asException(Status.java:545)
at com.google.firebase.firestore.util.Util.exceptionFromStatus(Util.java:111)
... 26 more ... 26 more
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions