Comments (7)
Welcome and thanks for contributing! Make sure to leave a detailed explanation of the issue.
from serialization-parcelable.
Thanks for bringing this up. I'll try and take a look at this tonight and see if I can track down the issue. Please test on the latest version as there was some fixes that may have resolved it.
from serialization-parcelable.
I have tested on a Pixel 3a emulator with API 31 (Android 12) and I wasn't able to reproduce the issue. Can you provide some additional context to help debug/track down the issue? What is the Type that you are trying to serialize/deserialize? I'm seeing the following in your provided stacktrace:
at android.os.Parcel.readValue(Parcel.java:3305)
at android.os.Parcel.readArrayMapInternal(Parcel.java:3623)
So I'm assuming that the type may have been either an Array
or a Map
?
Also, can you provide some example code, if you are able to reproduce the issue?
from serialization-parcelable.
Relevant Android source code:
ArrayMap: https://android.googlesource.com/platform/frameworks/base/+/27f592d/core/java/android/util/ArrayMap.java
Parcel.readArrayMapInternal: https://android.googlesource.com/platform/frameworks/base/+/27f592d/core/java/android/os/Parcel.java#2303
from serialization-parcelable.
Sorry it took so long to reply.
Besides all Pixels (since 3a - pro, xl, regular) it has also happened on Redmi Note 8T and POCO X3 NFC, both xiaomi.
Version 0.4.1 has not fixed it.
As I said, we are unable to reproduce it either. It seems to be random based on type code number that might be conflicting with some number of yours?
The best I could find in our code would be simple usecase
@Serializable
class TextToBeFormatted(
val text: String,
val actions: Map<String, AppAction>,
)
@Serializable
data class AppAction(
internal val appLink: String,
internal val href: String? = null,
internal val enabled: Boolean? = null,
)
using putExtra(key, value, Parcelable.Default)
from serialization-parcelable.
I made custom serializer for this data class, which is the only one with map.
So there is no map now anymore in serialization, but it still crashes the same. With readMapInternal.
It has to be some bad shift inside your library.
from serialization-parcelable.
@lepicekmichal Without any more information, and being unable to reproduce this issue, there's no way to solve it. Also, what do you mean by "bad shift"? The code is open source, you can fork the library and try and track down the issue yourself. I will keep this ticket open until more details are provided or the issue is resolved.
from serialization-parcelable.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serialization-parcelable.