Skip to content

Project saved on linux debug build serialize lowercase string instead of String #2003

@ogauthiersat

Description

@ogauthiersat

Project file saved using a debug build under linux does not load properly under release build.

It appears that JSON key for strings type is incorrectly serialized as lowercase "string" instead of of uppercase "String" when running from a debug build. It breaks loading projects into a release build as strings are not deserialized correctly.

Under debug build, saving a Text process serialize as {"string":"Greetings from Oscar !"}.

Under release build it normally serialize as {"String":"Greetings from Oscar !"}.

I could also reproduce when copying a Text process to clipboard. Copy-pasting process across debug and release builds result in text property been missing. I observe same behavior when pasting Text process in a text editor, resulting JSON snippet have lowercase "string" identifier.

Modifying line 27 of src/plugins/score-lib-state/State/OSSIASerializationImpl.hpp to something like "foobar" instead of "String" applies only on release builds.

I could reproduce the issue on debug build using trixie host package, using SDK and also using a debug appimage.

I could not reproduce issue on windows debug build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions