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

Deadlock on create json - windows only #3129

Closed
gabrielOttopia opened this issue Nov 7, 2021 · 2 comments
Closed

Deadlock on create json - windows only #3129

gabrielOttopia opened this issue Nov 7, 2021 · 2 comments
Labels
kind: bug state: needs more info the author of the issue needs to provide more details

Comments

@gabrielOttopia
Copy link

gabrielOttopia commented Nov 7, 2021

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.

@nlohmann
Copy link
Owner

nlohmann commented Nov 7, 2021

In order to asses your issue, we need the following information:

  • Which compiler and operating system are you using? Is it a supported compiler?

  • Did you use a released version of the library or the version from the develop branch?

  • If you experience a compilation error: can you compile and run the unit tests?

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Nov 7, 2021
@nlohmann
Copy link
Owner

@gabrielOttopia Can you please provide more information on the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

2 participants