Skip to content

Deadlock on create json - windows only #3129

Description

@gabrielOttopia

I am creating a json object that has both nested and non nested fields ie.

nlohmann::json j;
j["first"] = "something";
j["second"]["more"] = "something_else";

If i create this object, the program gets stuck/in a deadlock. If i reverse the order so that the simple object is after the nested, there is no deadlock.

My solution was:

nlohmann::json j;
j["second"]["more"] = "something_else";
j["first"] = "something";

This was only reproduced on windows, did not occur in linux.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions