33,525 questions
Advice
0
votes
2
replies
24
views
How can Unity YAML scene files be interpreted in an external runtime?
I'm working on an experimental project called NextLiber VRM, which attempts to interpret Unity scene files outside the Unity runtime.
Unity stores scenes in YAML format, including transforms, ...
-3
votes
0
answers
29
views
kotlin-serialization and with retrofit kotlin serialization converter throws java.lang.IllegalArgumentException: source must not be null [closed]
This error occurs when there is mismatch between kotlin-serialization included in retrofit kotlin serialization converter's and directly provided kotlin-serialization version.
2
votes
1
answer
120
views
C# XML Serialization: Merging multiple lists before saving
I am currently working on a small financial management application and use XmlSerializer to persist my data. I maintain a main list (allRecords) holding all data, and two separate lists (incomeList ...
0
votes
0
answers
34
views
Serialization with MSR 010B [Flush Command] in AMD CPUs for execution time measure
AMD Processor Programming Reference (PPR) for AMD Family 19h Model 70h, Revision A0 Processors says:
MSR0000_010B [Flush Command] (Core::X86::Msr::FLUSH_CMD)
Writes to this register do not execute ...
2
votes
1
answer
142
views
Newtonsoft for ISerializable classes with a reference loop - use GetObjectData for serialization and ordinary constructor for deserialization
I have a couple of ISerializable classes (simplified):
internal interface IBase : ISerializable
{
int Number { get; }
}
internal interface ITable : IBase
{
ISection Section { get; }
}
[...
3
votes
1
answer
160
views
Deserialization via Newtonsoft for classes with a reference loop, private constructors and private/internal properties setters
I have a couple of classes (simplified):
internal interface ITable
{
int Number { get; }
ISection Section { get; }
}
internal class Table : ITable
{
public int Number { get; private init; ...
2
votes
1
answer
68
views
Django / Serializer - How to pass label attached to choice field in API?
I am trying to get the label attached to the relevant interger for the choice field. Although the API returns the interger, I cannot seem to be able to return the actual label value.
This is the ...
1
vote
1
answer
242
views
Serializing of polymorphic json in ASP.NET Core 10
I want to use polymorphic JSON for the RichText type in .NET 10 because I plan migrating from one richtext format to another and I am stuck with a problem: when the object is automatically serialized ...
-1
votes
1
answer
54
views
Unity UWP build: “A scripted object probably BlankScene has a different serialization layout” when using [SerializeField]
I'm encountering a serialization error when building a Unity project for UWP and running it in Visual Studio:
A scripted object probably BlankScene has a different serialization layout when loading (...
1
vote
1
answer
235
views
kotlinx-serialization-json 1.9.0 library causes compile error "Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin."
After adding the dependency org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0 I tried using it like this:
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
@...
0
votes
1
answer
46
views
KafkaAvroSerializer UnresolvedUnionException with nullable timestamp-millis field
I'm using confluent's KafkaAvroSerializer with a schema that includes a nullable timestamp-millis field. The field maps to Instant in Java, but when I send a non-null I get an UnresolvedUnionException....
1
vote
1
answer
119
views
Callback methods with ProtoBeforeSerialization/ProtoAfterDeserialization donot work in protobuf-net 3.2.26, even when assigned explicitly to MetaType
I'm upgrading from protobuf-net 2.2.1.0 to 3.2.26, and I've noticed that callback methods decorated with [ProtoBeforeSerialization] and [ProtoAfterDeserialization] are no longer invoked during ...
7
votes
1
answer
155
views
Records don't deserialize cycles
I stumbled upon something that got me curious. Apparently, serializing a record with a cyclic reference does not retain the cycle when deserializing it again, it becomes null. When doing the same ...
0
votes
0
answers
102
views
pywebview: error maximum recursion depth exceeded before pressing button when passing pandas/model objects in js_api
I’m embedding a small UI with pywebview and want Python to JS live updates. I created a GPSSpoofingDetector class that loads a pickled sklearn model and a pandas test CSV. I want a JavaScript “Start” ...
0
votes
0
answers
75
views
DiskReadViolation on Ktor with json negotiation
My StrickMode and Ktor HttpClient setup on Android
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.serialization.kotlinx.json.json
override fun onCreate(...