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

Realm exception in background thread #4

Open
1407arjun opened this issue Jul 1, 2021 · 0 comments
Open

Realm exception in background thread #4

1407arjun opened this issue Jul 1, 2021 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@1407arjun
Copy link
Member

The error is caused in the onError callback section of the Realm.getInstanceAsync in SplashActivity.java even though the downloads are completed.

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.tfd.ffcsez, PID: 16702
    io.realm.exceptions.RealmException: Exception happens when initializing Realm in the background thread.
        at io.realm.BaseRealm$InstanceCallback.onError(BaseRealm.java:1029)
        at io.realm.Realm$Callback.onError(Realm.java:1992)
        at com.tfd.ffcsez.SplashActivity$1$2.onError(SplashActivity.java:144)
        at io.realm.RealmCache$CreateRealmRunnable$2.run(RealmCache.java:301)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7078)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
     Caused by: UNKNOWN(unknown:-1): Operation Canceled
        at io.realm.internal.objectstore.OsAsyncOpenTask.start(OsAsyncOpenTask.java:43)
        at io.realm.internal.SyncObjectServerFacade.downloadInitialFullRealm(SyncObjectServerFacade.java:207)
        at io.realm.internal.SyncObjectServerFacade.downloadInitialRemoteChanges(SyncObjectServerFacade.java:199)
        at io.realm.RealmCache.doCreateRealmOrGetFromCache(RealmCache.java:437)
        at io.realm.RealmCache.createRealmOrGetFromCache(RealmCache.java:412)
        at io.realm.RealmCache$CreateRealmRunnable.run(RealmCache.java:247)
        at io.realm.internal.async.BgPriorityRunnable.run(BgPriorityRunnable.java:34)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:459)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
@1407arjun 1407arjun added bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant