Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException while waiting for the synchronization of a subscription. #1671

Closed
clementetb opened this issue Feb 29, 2024 · 2 comments · Fixed by #1672
Closed

NullPointerException while waiting for the synchronization of a subscription. #1671

clementetb opened this issue Feb 29, 2024 · 2 comments · Fixed by #1672

Comments

@clementetb
Copy link
Contributor

How frequently does the bug occur?

Always

Description

While waiting for the synchronization of a subscription set a null pointer is thrown.

Stacktrace & log output

Fatal Exception: java.lang.NullPointerException:
       at io.realm.kotlin.mongodb.internal.SubscriptionSetImpl.waitForSynchronization-VtjQ1oo(SubscriptionSetImpl.java:215)
       at io.realm.kotlin.mongodb.internal.SubscriptionSetImpl$waitForSynchronization$1.invokeSuspend(SubscriptionSetImpl.java:13)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:13)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:111)
       at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.java:34)
       at kotlinx.coroutines.scheduling.TaskImpl.run(TaskImpl.java:2)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:93)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.java:93)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.java:93)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java:93)

Can you reproduce the bug?

Always

Reproduction Steps

No response

Version

1.13.0

What Atlas App Services are you using?

Atlas Device Sync

Are you using encryption?

No

Platform OS and version(s)

Build environment

No response

Copy link

sync-by-unito bot commented Feb 29, 2024

➤ PM Bot commented:

Jira ticket: RKOTLIN-1027

@clementetb
Copy link
Contributor Author

The cause is a missing state AwaitingMark at the CoreSubscriptionSetState.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant