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

🐞 Fix Glance not working issue #397

Merged
merged 1 commit into from
Dec 21, 2022
Merged

🐞 Fix Glance not working issue #397

merged 1 commit into from
Dec 21, 2022

Conversation

igorescodro
Copy link
Owner

@igorescodro igorescodro commented Dec 21, 2022

After moving from List to ImmutableList the Glance stopped working. It seems that serialization and/or encoding does not work very well with this library. For now, the Serializer was reverted to List and the conversion to ImmutableList will happen in the UI before rendering it.

I just found the following Exception on the stacktrace:

 java.util.concurrent.ExecutionException: kotlinx.serialization.SerializationException: Class 'SmallPersistentVector' is not registered for polymorphic serialization in the scope of 'ImmutableList'.
    Mark the base class as 'sealed' or register the serializer explicitly.
        at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:516)
        at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475)
        at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:311)
        at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
        at java.lang.Thread.run(Thread.java:1012)
     Caused by: kotlinx.serialization.SerializationException: Class 'SmallPersistentVector' is not registered for polymorphic serialization in the scope of 'ImmutableList'.

After moving from `List` to `ImmutableList` the Glance stopped working.
It seems that serialization and/or encoding does not work very well with
this library. For now, the Serializer was reverted to `List` and the
conversion to ImmutableList will happen in the UI before rendering it.
@igorescodro igorescodro merged commit 9ea627a into main Dec 21, 2022
@igorescodro igorescodro deleted the fix-glance branch December 21, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant